Can the error "external symbol _cublasDestroy_v2 @ 4" occur due to improper use of CUDA

I get these errors when I try to compile the CUBLAS matrix operation:

1>ClCompile:
1>  All outputs are up-to-date.
1>executionU.cu.obj : error LNK2001: unresolved external symbol _cublasDestroy_v2@4
1>executionU.cu.obj : error LNK2001: unresolved external symbol _cublasSgemm_v2@56
1>executionU.cu.obj : error LNK2001: unresolved external symbol _cublasCreate_v2@4
1>../../bin/win32/Release//executionU.exe : fatal error LNK1120: 3 unresolved externals

Does anyone know if this error can occur due to the use of version 4.1, and not the new 4.2 CUDA?

+3
source share
1 answer

Add cublas.lib to the linker dependencies.

+6
source

All Articles