msProf工具的仿真功能仅支持单卡场景,无法仿真多卡环境,代码中也只能设置0卡。若修改可见卡号,则会导致仿真失败。
export LD_LIBRARY_PATH=${INSTALL_DIR}/tools/simulator/Ascendxxxyy/lib:$LD_LIBRARY_PATH
请根据CANN软件包实际安装路径和昇腾AI处理器的型号对以上环境变量进行修改。
1 | add_ops_compile_options(ALL OPTIONS -g) |
git clone https://gitee.com/ascend/samples.git -b v1.0-8.1.RC1.alpha001
ascendc_compile_options(ascendc_kernels_${RUN_MODE} PRIVATE -g -O2 )
${INSTALL_DIR}/tools/simulator/Ascendxxxyy/lib/davinci_vec_core.spec。
当前msProf不支持-O0编译选项。