按照文档,毕昇提示 unsupported option '--soc-version=Ascend310B4', unsupported option '--soc-core-type=VecCore'
收藏回复举报
按照文档,毕昇提示 unsupported option '--soc-version=Ascend310B4', unsupported option '--soc-core-type=VecCore'
t('forum.solved') 已解决
发表于2024-05-22 18:24:51
0 查看

文档地址: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 编辑

我要发帖子