MindStudio Ops Tuner Installation Guide
Overview
MindStudio Ops Tuner (operator Tiling optimization, msOpTuner) is a tool for optimizing the tiling parameters of operators in the CATLASS template library. It allows you to define a custom search space, instantiates all operators within that space, and performs batch on-board performance tests, providing a reference for operator tiling parameter optimization. This document describes how to install the msOpTuner tool.
Preparation Before Installation
Configuring Username and SSH Key
To avoid repeatedly entering passwords during dependency downloads, run the following command to configure Git to save user passwords:
git config --global credential.helper store
Environment Preparation
- Ascend NPU 910B hardware environment
Before starting the build, ensure that the bisheng compiler is installed and that the path to its executable is in the $PATH environment variable. (If the CANN operator toolkit is installed, you can run source set_env.sh in the toolkit installation path.)
source /path/to/Ascend/cann/set_env.sh
Installation Steps
Project Build
-
Command-line method Run the following command to download the sub-repositories required for project build and update the dependencies to the latest code:
python download_dependencies.pyRun the following command to build the software package.
mkdir build && cd build cmake .. -DBUILD_TESTS=ON make -j$(nproc) -
One-click script method Build the software package using the one-click script.
python build.py
NOTE
If you have modified the code in the dependent sub-repositories locally and do not want the update action to be executed during the build process, run python build.py local.
Testing
-
Command-line method Run the following script to download the sub-repositories required for UT build dependencies and update the dependencies to the latest code:
python download_dependencies.py testThen build and execute UT tests by running the following command:
mkdir build && cd build cmake .. -DBUILD_TESTS=ON make -j$(nproc) cd ../test/ python test_mstuner.py -
One-click script method Run the one-click script to download UT build dependencies and execute UT tests:
python build.py test