这是我的代码:
// --- 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吗?
我的环境: