×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

使用MLU270编写一个浮点矩阵乘法函数,double不能编译 已完结 hxf02232021-05-26 16:18:28 回复 1 查看
使用MLU270编写一个浮点矩阵乘法函数,double不能编译
分享到:

如题,编写的一个函数 ptr_double *double,遇到Clang前端崩溃。

编译脚本使用的是 /meda_home/roderick/wscuda/samples/BANG/build.sh。在这个基础上添加了我们用到的一些第三方库(Eigen/FFTW3/MKL)。

请问MLU270支持double吗?



/usr/local/neuware/bin/cncc /meda_home/roderick/wscuda/mlu270/bang-mix/launch_kernel/foo1.mlu -c -o /meda_home/roderick/wscuda/mlu270/build/CMakeFiles/launch_kernel.dir/bang-mix/launch_kernel/./launch_kernel_generated_foo1.mlu.o --target=x86_64-linux-gnu -std=c++11 -DEIGEN_USE_MKL_ALL -Wall -fPIC -std=c++11 -pthread -U __GXX_EXPERIMENTAL_CXX0X__ -U _GLIBCXX_ATOMIC_BUILTINS_4 -O3 --bang-mlu-arch=MLU270 -DCNCC -I/usr/local/neuware/include -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3 -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3/unsupported -I/meda_home/toolchain/library/boost/1.72.0/include -I/meda_home/toolchain/library/mkl/2020.0.166/include
/usr/local/neuware/bin/cncc /meda_home/roderick/wscuda/mlu270/bang-mix/half_type/main.mlu -c -o /meda_home/roderick/wscuda/mlu270/build/CMakeFiles/half_type.dir/bang-mix/half_type/./half_type_generated_main.mlu.o --target=x86_64-linux-gnu -std=c++11 -DEIGEN_USE_MKL_ALL -Wall -fPIC -std=c++11 -pthread -U __GXX_EXPERIMENTAL_CXX0X__ -U _GLIBCXX_ATOMIC_BUILTINS_4 -O3 --bang-mlu-arch=MLU270 -DCNCC -I/usr/local/neuware/include -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3 -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3/unsupported -I/meda_home/toolchain/library/boost/1.72.0/include -I/meda_home/toolchain/library/mkl/2020.0.166/include
/usr/local/neuware/bin/cncc /meda_home/roderick/wscuda/mlu270/bang-mix/launch_kernel/foo2.mlu -c -o /meda_home/roderick/wscuda/mlu270/build/CMakeFiles/launch_kernel.dir/bang-mix/launch_kernel/./launch_kernel_generated_foo2.mlu.o --target=x86_64-linux-gnu -std=c++11 -DEIGEN_USE_MKL_ALL -Wall -fPIC -std=c++11 -pthread -U __GXX_EXPERIMENTAL_CXX0X__ -U _GLIBCXX_ATOMIC_BUILTINS_4 -O3 --bang-mlu-arch=MLU270 -DCNCC -I/usr/local/neuware/include -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3 -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3/unsupported -I/meda_home/toolchain/library/boost/1.72.0/include -I/meda_home/toolchain/library/mkl/2020.0.166/include
/usr/local/neuware/bin/cncc /meda_home/roderick/wscuda/mlu270/bang-mix/global_var/foo.mlu -c -o /meda_home/roderick/wscuda/mlu270/build/CMakeFiles/global_var.dir/bang-mix/global_var/./global_var_generated_foo.mlu.o --target=x86_64-linux-gnu -std=c++11 -DEIGEN_USE_MKL_ALL -Wall -fPIC -std=c++11 -pthread -U __GXX_EXPERIMENTAL_CXX0X__ -U _GLIBCXX_ATOMIC_BUILTINS_4 -O3 --bang-mlu-arch=MLU270 -DCNCC -I/usr/local/neuware/include -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3 -I/meda_home/toolchain/library/eigen/3.3.7/include/eigen3/unsupported -I/meda_home/toolchain/library/boost/1.72.0/include -I/meda_home/toolchain/library/mkl/2020.0.166/include
cncc: error: unable to execute command: Segmentation fault
cncc: error: clang frontend command failed due to signal (use -v to see invocation)
cncc 2.12.102 clang version 5.0.1 (tags/RELEASE_501/final) ( d on LLVM 5.0.1)
Target: x86_64--linux-gnu
Thread model: posix
InstalledDir: /usr/local/neuware/bin
cncc: note: diagnostic msg: PLEASE submit a bug report to http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and associated run  .
cncc: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run  (s) are located at:
cncc: note: diagnostic msg: /tmp/foo-oNyyx1.mlu
cncc: note: diagnostic msg: /tmp/foo-aORzfX.mlu
cncc: note: diagnostic msg: /tmp/foo-oNyyx1.sh
cncc: note: diagnostic msg:

********************




double_mul.jpg

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭