在使用调测工具前,用户需完成基础环境搭建。
安装CANN软件包,具体步骤参见《CANN软件安装指南》。
本工具路径默认为“${INSTALL_DIR}/tools/ascendc_tools/ascendebug”,其中${INSTALL_DIR}请替换为CANN软件安装后文件存储路径。若安装的Ascend-cann-toolkit软件包,以root安装举例,则安装后文件存储路径为:/usr/local/Ascend/ascend-toolkit/latest。
source /usr/local/Ascend/ascend-toolkit/set_env.sh source /usr/local/Ascend/ascend-toolkit/latest/toolkit/bin/setenv.bash
source ${HOME}/Ascend/ascend-toolkit/set_env.sh source ${HOME}/Ascend/ascend-toolkit/latest/toolkit/bin/setenv.bash
ascendebug -h
python3 >>> import ascendebug
第三方软件 |
用途 |
如何安装 |
---|---|---|
toml |
加载和转储TOML文件的功能。 |
例如:pip3 install toml |
jinja2 |
CPU调测模板使用。 |
例如:pip3 install jinja2 |
numpy |
精度比对时使用。 |
例如:pip3 install numpy |
torch |
输入、输出数据格式转换使用。 |
例如:pip3 install torch |