Could the error “external symbol _cublasDestroy_v2@4” be caused because of improper use of CUDA [closed]

StackOverflow https://stackoverflow.com/questions/10490839

  •  06-06-2021
  •  | 
  •  

I get these errors when I try to compile a matrix CUBLAS 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 anybody know if this error could be caused by using version 4.1 and not the new 4.2 of CUDA?

有帮助吗?

解决方案

Add cublas.lib to your linker dependencies.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top