Unfortunately, after the installation, if I run “locate curand_kernel.h” (this is just one of the library that I need) from the base (“/”) I can’t find this file.
So, did something go wrong during the installation or these libraries are not included in the linux version of the toolkit?
Unfortunately, after the installation, if I run “locate curand_kernel.h” (this is just one of the library that I need) from the base (“/”) I can’t find this file.
So, did something go wrong during the installation or these libraries are not included in the linux version of the toolkit?
When you compile, just add the location of the directories with the include files (-I) and libraries (-L).
If you are using nvcc, there is no need to pass the /usr/local/cuda/include
When you compile, just add the location of the directories with the include files (-I) and libraries (-L).
If you are using nvcc, there is no need to pass the /usr/local/cuda/include
I have just tried to compile my code including the lib64 directory as you suggested but this is what I get:
nvcc unf_max_cuda_krand.cu -L/usr/local/cuda/lib64 -lcurand -o unf_cuda_rand_k
unf_max_cuda_krand.cu:6:27: error: curand_kernel.h: No such file or directory
I tried to remove the “include curand_kernel.h” but in this case I get a lot of errors.
I have just tried to compile my code including the lib64 directory as you suggested but this is what I get:
nvcc unf_max_cuda_krand.cu -L/usr/local/cuda/lib64 -lcurand -o unf_cuda_rand_k
unf_max_cuda_krand.cu:6:27: error: curand_kernel.h: No such file or directory
I tried to remove the “include curand_kernel.h” but in this case I get a lot of errors.