我正在尝试在发布模式下编译我的CUDA / C ++程序,但是我收到以下错误:
make all
Building file: ../matching.cu
Invoking: NVCC Compiler
nvcc -O3 -gencode arch=compute_30,code=sm_30 -odir "" -M -o "matching.d" "../matching.cu"
nvcc --compile -O3 -gencode arch=compute_30,code=compute_30 -gencode arch=compute_30,code=sm_30 -x cu -o "matching.o" "../matching.cu"
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/xmmintrin.h(1015): error: identifier "__builtin_ia32_vec_set_v4hi" is undefined
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/xmmintrin.h(1116): error: identifier "__builtin_ia32_pshufw" is undefined
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/emmintrin.h(1312): error: identifier "__builtin_ia32_vec_ext_v8hi" is undefined
/usr/lib/gcc/x86_64-linux-gnu/4.6/include/emmintrin.h(1318): error: identifier "__builtin_ia32_vec_set_v8hi" is undefined
../matching.cu(104): warning: variable "device" is used before its value is set
../matching.cu(209): warning: variable "min" was declared but never referenced
4 errors detected in the compilation of "/tmp/tmpxft_00000af7_00000000-6_matching.cpp1.ii".
make: *** [matching.o] Error 2
**** Build Finished ****
你们知道这些消息的原因是什么吗?谢谢。
我在Ubuntu 14.04 LTS中使用带有CUDA工具包5.0的NVIDIA Nsight eclipse版本。
答案 0 :(得分:0)
我的问题解决了。这是因为Ubuntu 14.04 LTS不支持CUDA工具包5.0。我已经更改了我的硬件(更新的显卡)以便能够升级我的NVIDIA驱动程序,这允许我安装CUDA takeit 6.0(到目前为止在14.04尚未正式支持,但具有更好的兼容性)