链接到CUDA时未解析的外部符号

时间:2016-10-24 08:27:55

标签: c++ cuda gpgpu cusolver

这是我的代码:

// --- CUDA solver initialization
cusolverDnHandle_t solver_handle = NULL;
cusolverDnCreate(&solver_handle);

cusolverDnDgesvd_bufferSize(solver_handle, Nrows, Ncols, &work_size));

cusolverDnDgesvd(solver_handle, 'A', 'A', Nrows, Ncols, d_A, Nrows, d_S, d_U, Nrows, d_V, Ncols, work, work_size, NULL, devInfo));

链接时出现以下错误:

error LNK2019: unresolved external symbol cusolverDnCreate referenced in function main
error LNK2019: unresolved external symbol cusolverDnDgesvd_bufferSize referenced in function main   
error LNK2019:unresolved external symbol cusolverDnDgesvd referenced in function main   

我该如何解决这个问题?我必须添加一些CUDA Linker吗?

我的环境:

  • CUDA 7.5
  • Windows 64bit
  • Visual Studio2013社区

0 个答案:

没有答案