I have been trying to compile my first CUDA code but I have been having a hard time with nvcc include libraries etc.
So here’s what I do:
nvcc -I /usr/local/apps/cuda/3.1/cuda/include/FileName.cu
Since I am working from my university, I do not have permissions to copy my cuda code to the include directory. Pls kindly tell me what I should be doing. Also, I got undefined references error when I tried compiling it elsewhere.
I have attached my code.
MyFirstCUDAProgram.cu (3.96 KB)