简体   繁体   中英

Cannot compile in release mode in Nvidia Nsight Eclipse edition

I am trying to compile my CUDA/C++ program in release mode, but i'm getting the following error:

    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 ****

Do you guys know what's the reason of these messages? thank you.

I'm using NVIDIA Nsight eclipse edition with CUDA toolkit 5.0 in Ubuntu 14.04 LTS.

My problem is solved. This is due to the fact that CUDA toolkit 5.0 is not supported in Ubuntu 14.04 LTS. I have changed my hardware (Newer graphics card) in order to be able to upgrade my NVIDIA driver which allowed me to install CUDA tookit 6.0 (Not officially supported in 14.04 so far, but has better compatibility)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM