我在opensuse 13.1上安裝了cuda toolkit 6.5,並且在編譯cuda示例時遇到問題。編譯cuda示例的opensuse 13.1'
輸出使之後的命令是:
〜#使
make[1]: Entering directory `/home/user/NVIDIA_CUDA-6.5_Samples/0_Simple/simpleStreams
/usr/local/cuda-6.5/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_11,code=sm_11 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_50,code=compute_50 -o simpleStreams.o -c simpleStreams.cu
nvcc warning : The 'compute_11', 'compute_12', 'compute_13', 'sm_11', 'sm_12', and 'sm_13' architectures are deprecated, and may be removed in a future release.
g++: No such file or directory
make[1]: *** [simpleStreams.o] Error 1
make[1]: Leaving directory `/home/user/NVIDIA_CUDA-6.5_Samples/0_Simple/simpleStreams
make: *** [0_Simple/simpleStreams/Makefile.ph_build] Error 2
我NVCC和gcc的
版本:
NVCC:NVIDIA(R)Cuda的編譯器驅動程序 版權所有(C )2005-2014 NVIDIA Corporation 構建於Thu_Jul_17_21:41:27_CDT_2014 Cuda彙編工具,版本6.5,V6.5.12
gcc version 4.8.1 20130909 [gcc-4_8-branch revision 202388](SUSE Linux)
有人能幫我解決這個問題嗎?