I have tried to run a code using CUDA 9.0 toolkit on NVIDIA Tesla P100 graphic card (Ubuntu version 16.04) and CUBLAS library is used in the code. For compilation, I have used the following command to compile “my_program.cu”
nvcc -std=c++11 -L/usr/local/cuda-9.0/lib64 my_program.cu -o mu_program.o
-lcublas
But, I have got the following error:
nvlink error: Undefined reference to`cublasCreate_v2’in’/tmp/tmpxft_0000120b_0000000-10_my_program’’
I have linked the library path. Still I am getting the error. Please help me to solve this error.
Is this the linking error or compilation?
What does this error mean ?
Thanking You.