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?