Compiling using nvcc gives “No such file or directory”
问题 I'm trying to compile CUDA code using nvcc on Ubuntu. However, when I do, I get this output: > make /usr/local/cuda/bin/nvcc -m64 --ptxas-options="-v" -gencode arch=compute_11,code=sm_11 -gencode arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -o main main.cu gcc: No such file or directory make: *** [main] Error 1 Even when I'm trying to compile a file with only a main function in it, it still doesn't work: