2014-09-10 6 views
0

openuse 13.1에 cuda 툴킷 6.5가 설치되어 있으며 cuda 샘플 컴파일에 문제가 있습니다.cuda 샘플 컴파일 'opensuse 13.1'

출력 후 확인 명령은 다음과 같습니다

NVCC : NVIDIA (R) CUDA는 컴파일러 드라이버 저작권 (C

~ #

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의

버전은 을) 2005-2014 NVIDIA Corporation Thu_Jul_17_21 : 41 : 27_CDT_2014 쿠다 (Cuda) 컴파일 도구, 릴리스 6.5, V6.5.12

gcc 버전 4.8.1 20130909 [수크 리눅스 (gcc-4_8-branch revision 202388)] (수세 리눅스)

이 문제를 해결하는 데 도움이 될만한 사람이 있습니까?

답변

1

nvcccompute_1X 플래그를 좋아하지 않습니다. X1,2,3입니다. 단순히 이것을 제거하십시오 : -gencode arch=compute_11,code=sm_11 코드는 Makefile에서 올바르게 컴파일해야합니다. 이 경고는 문제를 피하기 위해 모든 경고를 수정하는 것이 좋습니다. nvcc 구성에 따라 경고가 발생할 때도 실패 할 수 있습니다.

g++ 컴파일러를 찾지 못했기 때문에이 문제가 발생할 수 있습니다. 가장 가능성있는 원인 인 c++gcc 컴파일러를 설치하지 않았을 수 있습니다. 또는 수동으로 설치했으며 PATH에없는 경우가 발생할 가능성이 있습니다.

c++gcc 컴파일러를 설치하려면 link을 따르십시오. 작동하지 않으면 컴퓨터 관련 문제가 아닙니다.