华为计算微信公众号
昇腾AI开发者公众号
华为计算微博
华为计算今日头条
文档地址:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/devguide/opdevg/BishengCompiler/atlas_bisheng_10_0001.html
平台: orangepi aipro
cann: 8.0RC2.alpra002
我的build.sh
source /home/HwHiAiUser/Ascend/ascend-toolkit/set_env.sh INSTALL_DIR=$ASCEND_TOOLKIT_HOME export RT_INC=${INSTALL_DIR}/runtime/include export RT_LIB=${INSTALL_DIR}/runtime/lib64 # 功能:Host & Device代码混合编译,生成可执行文件,仅需链接libruntime.so # 编译选项--cce-soc-version和--cce-soc-core-type指的是编译AscendXXXYY上的Vector核程序 bisheng -O2 \ --soc-version=Ascend310B4 \ --soc-core-type=VecCore \ -I$RT_INC \ -L$RT_LIB \ -lascendcl \ -lruntime \ -o QuickStartDemoVecAdd \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/ \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/impl \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/interface \ --std=c++17 \ QuickStartDemoVecAdd.cce
运行结果:
bash build.sh bisheng: error: unsupported option '--soc-version=Ascend310B4' bisheng: error: unsupported option '--soc-core-type=VecCore'
本帖最后由 匿名用户 于 2024/05/22 18:43:09 编辑
我要发帖子
文档地址:https://www.hiascend.com/document/detail/zh/CANNCommunityEdition/80RC2alpha002/devguide/opdevg/BishengCompiler/atlas_bisheng_10_0001.html
平台: orangepi aipro
cann: 8.0RC2.alpra002
我的build.sh
source /home/HwHiAiUser/Ascend/ascend-toolkit/set_env.sh INSTALL_DIR=$ASCEND_TOOLKIT_HOME export RT_INC=${INSTALL_DIR}/runtime/include export RT_LIB=${INSTALL_DIR}/runtime/lib64 # 功能:Host & Device代码混合编译,生成可执行文件,仅需链接libruntime.so # 编译选项--cce-soc-version和--cce-soc-core-type指的是编译AscendXXXYY上的Vector核程序 bisheng -O2 \ --soc-version=Ascend310B4 \ --soc-core-type=VecCore \ -I$RT_INC \ -L$RT_LIB \ -lascendcl \ -lruntime \ -o QuickStartDemoVecAdd \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/ \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/impl \ -I${INSTALL_DIR}/compiler/tikcpp/tikcfw/interface \ --std=c++17 \ QuickStartDemoVecAdd.cce运行结果: