Where is the location of curand

I am following the book “CUDA Fortran for Scientists and Engineers” In chapter 5, one needs to add the CUDA library (-lcurand) located in the cuda subdirectory of the PGI installation, p160. Where is this? I have tried /opt/pgi/linux86-64/2015/cuda/7.0/incude but that doesn’t work.

I am using PGI 15.3 and Cuda 7.0.

Malcolm

Hi Malcom,

cuRand can be found in the CUDA installation’s “lib64” directory (/opt/pgi/linux86-64/2015/cuda/7.0/lib64). The compiler will add the path to this directory on you link line when using the “-Mcuda” flag.

-Mat