簡體   English   中英

在Nvidia Nsight Eclipse版本中無法以發布模式進行編譯

[英]Cannot compile in release mode in Nvidia Nsight Eclipse edition

我正在嘗試在發布模式下編譯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中將NVIDIA Nsight eclipse版本與CUDA工具包5.0一起使用。

我的問題解決了。 這是由於Ubuntu 14.04 LTS不支持CUDA工具包5.0。 我已經更改了硬件(較新的圖形卡),以便能夠升級NVIDIA驅動程序,從而使我能夠安裝CUDA Takeit 6.0(到目前為止,14.04中尚未正式支持,但具有更好的兼容性)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM