Hello all,
I would like to build the cuda-toolkit’s sample code (NVIDIA_CUDA-8.0_Samples).
When I build the NVIDIA_CUDA-8.0_Samples after DIGITS installation, the following error is happened.
There was no problem before DIGITS installation.
(DIGITS will work without problems)
ubuntu@ubuntu:~/NVIDIA_CUDA-8.0_Samples$ make
make[1]: Entering directory `/home/ubuntu/NVIDIA_CUDA-8.0_Samples/0_Simple/simplePitchLinearTexture'
"/usr/local/cuda-8.0"/bin/nvcc -ccbin g++ -I../../common/inc -m64 -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_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=compute_60 -o simplePitchLinearTexture.o -c simplePitchLinearTexture.cu
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
In file included from <command-line>:0:0:
/usr/include/stdc-predef.h:59:1: fatal error: cuda_runtime.h: No such file or directory
#endif
^
compilation terminated.
make[1]: *** [simplePitchLinearTexture.o] Error 1
make[1]: Leaving directory `/home/ubuntu/NVIDIA_CUDA-8.0_Samples/0_Simple/simplePitchLinearTexture'
make: *** [0_Simple/simplePitchLinearTexture/Makefile.ph_build] Error 2
I think, CUDA directory path has been changed by installing DIGITS. nvcc can not find include path: /usr/local/cuda-8.0/include .
(/usr/local/cuda-8.0 → /usr/local/cuda-8.0/targets/x86_64-linux ?)
Is there a way to avoid it?
Ubuntu version : ubuntu 14.04LTS
cuda-toolkit : cuda_8.0.61_375.26_linux.run
instructions on installing DIGITS : DIGITS/UbuntuInstall.md at master · NVIDIA/DIGITS · GitHub
thanks