Can't link cusolverDnCpotrfBatched.

Dear Forum,

I just started using GPU and it has been going incredibly well until now. I have used cusolverDnCpotr successfully. Now I wanted to try the batched version cusolverDnCpotrfBatched. But it doesn’t seem to be in libcusolver.so since I get the linking error:

FOI_covmat.o: In function FOI_covmat::chol(cusolverDnContext*)': tmpxft_00001191_00000000-5_FOI_covmat.compute_70.cudafe1.cpp:(.text+0x12e9): undefined reference to cusolverDnCpotrfBatched(cusolverDnContext*, cublasFillMode_t, int, float2**, int, int*, int)’
collect2: error: ld returned 1 exit status

???

Thank you
Per Zetterberg

I didn’t have any trouble linking it in CUDA 9.1:

$ cat t4.cu
#include <cusolverDn.h>
#include <cublas_v2.h>

int main(){
    cusolverDnHandle_t handle = NULL;
    cublasFillMode_t uplo = CUBLAS_FILL_MODE_UPPER;
    int n = 0;
    cuComplex **Aarray = NULL;
    int lda = 0;
    int *infoArray = NULL;
    int batchSize = 0;

cusolverDnCpotrfBatched(
    handle,
    uplo,
    n,
    Aarray,
    lda,
    infoArray,
    batchSize);
}
$ nvcc -arch=sm_35 -o t4 t4.cu -lcusolver
$

From what I can tell, this function first appeared in CUDA 9.1, so if you are attempting to use this with a prior version of CUDA, that is the problem.

OK thanks.