I am trying to compile my code with PGI-19.4 (community version). For the code I need the cublas, cusolver, and cusparse library. Therefore I provide the flag -Mcudalib=cublas,… Unfortunately, I got the error message “… could not find libcusparse_static …”. In principle it makes sense because the libcusparse_static does not exist in the cuda/10.1/lib64 folder (on the other hand the libcublas_static and libcusolver_static exists). Why does PGI even try to link against a library which does not exist?
many thanks for your reply. Yes, at some point it seems the flag -Bstatic is added.
Just another question related to missing files. Under cuda/10.0/lib64 I can find the lib libcusolver but in the include directory, there is not cusolver related header. Are the cusolver headers missing in cuda/10.0?
That is strange. I just downloaded the 19.4 community version myself and installed it locally. However, if I check the “linux86-64-llvm/2019/cuda/10.0/include” I cannot find the cusolver headers, on the other hand, I can see the cusolver library in “linux86-64-llvm/2019/cuda/10.0/lib64”?