Cannot link CUSPARSE in PVF 15.10

Hello.

I’m trying to use Fortran interface for CUSPARSE, and I cannot compile.

MODULE CUDACMFD

USE CUDAFOR
USE CUSPARSE
USE CUBLAS
USE OPENACC
IMPLICIT NONE

CONTAINS

SUBROUTINE CUDAPowerMethod

TYPE(cusparseHandle) :: BILU, BiCGStab

END SUBROUTINE

END MODULE



오류 62 61 unresolved externals C:\Users\USER\Dropbox\nTRACER\PGI\Release\nTRACER.exe
오류 63 cannot open file C:\Users\USER\Dropbox\nTRACER\PGI\Release/nTRACER.exf
오류 5 unresolved external symbol cusparseCaxpyi_v2 referenced in function cusparse_cusparsecaxpyi_sethpm_ libcudaforblas.lib
오류 17 unresolved external symbol cusparseCbsrmv referenced in function cusparse_cusparsecbsrmv_sethpm_ libcudaforblas.lib
오류 21 unresolved external symbol cusparseCbsrxmv referenced in function cusparse_cusparsecbsrxmv_sethpm_ libcudaforblas.lib
오류 54 unresolved external symbol cusparseCcsrgeam referenced in function cusparse_cusparseccsrgeam_sethpm_ libcudaforblas.lib
오류 41 unresolved external symbol cusparseCcsrmm_v2 referenced in function cusparse_cusparseccsrmm_sethpm_ libcudaforblas.lib
오류 45 unresolved external symbol cusparseCcsrmm2 referenced in function cusparse_cusparseccsrmm2_sethpm_ libcudaforblas.lib
오류 25 unresolved external symbol cusparseCcsrmv_v2 referenced in function cusparse_cusparseccsrmv_sethpm_ libcudaforblas.lib
오류 49 unresolved external symbol cusparseCcsrsm_solve referenced in function cusparse_cusparseccsrsm_solve_sethpm_ libcudaforblas.lib
오류 29 unresolved external symbol cusparseCcsrsv_solve_v2 referenced in function cusparse_cusparseccsrsv_solve_sethpm_ libcudaforblas.lib
오류 11 unresolved external symbol cusparseCdotci referenced in function cusparse_cusparsecdotci_sethpm_ libcudaforblas.lib
오류 9 unresolved external symbol cusparseCdoti referenced in function cusparse_cusparsecdoti_sethpm_ libcudaforblas.lib
오류 33 unresolved external symbol cusparseChybmv referenced in function cusparse_cusparsechybmv_sethpm_ libcudaforblas.lib
오류 37 unresolved external symbol cusparseChybsv_solve referenced in function cusparse_cusparsechybsv_solve_sethpm_ libcudaforblas.lib
오류 60 unresolved external symbol cusparseCnnz referenced in function cusparse_cusparsecnnz_sethpm_ libcudaforblas.lib
오류 4 unresolved external symbol cusparseDaxpyi_v2 referenced in function cusparse_cusparsedaxpyi_sethpm_ libcudaforblas.lib
오류 16 unresolved external symbol cusparseDbsrmv referenced in function cusparse_cusparsedbsrmv_sethpm_ libcudaforblas.lib
오류 20 unresolved external symbol cusparseDbsrxmv referenced in function cusparse_cusparsedbsrxmv_sethpm_ libcudaforblas.lib
오류 53 unresolved external symbol cusparseDcsrgeam referenced in function cusparse_cusparsedcsrgeam_sethpm_ libcudaforblas.lib
오류 40 unresolved external symbol cusparseDcsrmm_v2 referenced in function cusparse_cusparsedcsrmm_sethpm_ libcudaforblas.lib
오류 44 unresolved external symbol cusparseDcsrmm2 referenced in function cusparse_cusparsedcsrmm2_sethpm_ libcudaforblas.lib
오류 24 unresolved external symbol cusparseDcsrmv_v2 referenced in function cusparse_cusparsedcsrmv_sethpm_ libcudaforblas.lib
오류 48 unresolved external symbol cusparseDcsrsm_solve referenced in function cusparse_cusparsedcsrsm_solve_sethpm_ libcudaforblas.lib
오류 28 unresolved external symbol cusparseDcsrsv_solve_v2 referenced in function cusparse_cusparsedcsrsv_solve_sethpm_ libcudaforblas.lib
오류 8 unresolved external symbol cusparseDdoti referenced in function cusparse_cusparseddoti_sethpm_ libcudaforblas.lib
오류 32 unresolved external symbol cusparseDhybmv referenced in function cusparse_cusparsedhybmv_sethpm_ libcudaforblas.lib
오류 36 unresolved external symbol cusparseDhybsv_solve referenced in function cusparse_cusparsedhybsv_solve_sethpm_ libcudaforblas.lib
오류 59 unresolved external symbol cusparseDnnz referenced in function cusparse_cusparsednnz_sethpm_ libcudaforblas.lib
오류 14 unresolved external symbol cusparseDroti_v2 referenced in function cusparse_cusparsedroti_sethpm_ libcudaforblas.lib
오류 1 unresolved external symbol cusparseGetPointerMode referenced in function cusparse_cusparsesaxpyi_sethpm_ libcudaforblas.lib
오류 3 unresolved external symbol cusparseSaxpyi_v2 referenced in function cusparse_cusparsesaxpyi_sethpm_ libcudaforblas.lib
오류 15 unresolved external symbol cusparseSbsrmv referenced in function cusparse_cusparsesbsrmv_sethpm_ libcudaforblas.lib
오류 19 unresolved external symbol cusparseSbsrxmv referenced in function cusparse_cusparsesbsrxmv_sethpm_ libcudaforblas.lib
오류 52 unresolved external symbol cusparseScsrgeam referenced in function cusparse_cusparsescsrgeam_sethpm_ libcudaforblas.lib
오류 39 unresolved external symbol cusparseScsrmm_v2 referenced in function cusparse_cusparsescsrmm_sethpm_ libcudaforblas.lib
오류 43 unresolved external symbol cusparseScsrmm2 referenced in function cusparse_cusparsescsrmm2_sethpm_ libcudaforblas.lib
오류 23 unresolved external symbol cusparseScsrmv_v2 referenced in function cusparse_cusparsescsrmv_sethpm_ libcudaforblas.lib
오류 47 unresolved external symbol cusparseScsrsm_solve referenced in function cusparse_cusparsescsrsm_solve_sethpm_ libcudaforblas.lib
오류 27 unresolved external symbol cusparseScsrsv_solve_v2 referenced in function cusparse_cusparsescsrsv_solve_sethpm_ libcudaforblas.lib
오류 7 unresolved external symbol cusparseSdoti referenced in function cusparse_cusparsesdoti_sethpm_ libcudaforblas.lib
오류 2 unresolved external symbol cusparseSetPointerMode referenced in function cusparse_cusparsesaxpyi_sethpm_ libcudaforblas.lib
오류 31 unresolved external symbol cusparseShybmv referenced in function cusparse_cusparseshybmv_sethpm_ libcudaforblas.lib
오류 35 unresolved external symbol cusparseShybsv_solve referenced in function cusparse_cusparseshybsv_solve_sethpm_ libcudaforblas.lib
오류 58 unresolved external symbol cusparseSnnz referenced in function cusparse_cusparsesnnz_sethpm_ libcudaforblas.lib
오류 13 unresolved external symbol cusparseSroti_v2 referenced in function cusparse_cusparsesroti_sethpm_ libcudaforblas.lib
오류 57 unresolved external symbol cusparseXcsr2bsrNnz referenced in function cusparse_cusparsexcsr2bsrnnz_sethpm_ libcudaforblas.lib
오류 51 unresolved external symbol cusparseXcsrgeamNnz referenced in function cusparse_cusparsexcsrgeamnnz_sethpm_ libcudaforblas.lib
오류 56 unresolved external symbol cusparseXcsrgemmNnz referenced in function cusparse_cusparsexcsrgemmnnz_sethpm_ libcudaforblas.lib
오류 6 unresolved external symbol cusparseZaxpyi_v2 referenced in function cusparse_cusparsezaxpyi_sethpm_ libcudaforblas.lib
오류 18 unresolved external symbol cusparseZbsrmv referenced in function cusparse_cusparsezbsrmv_sethpm_ libcudaforblas.lib
오류 22 unresolved external symbol cusparseZbsrxmv referenced in function cusparse_cusparsezbsrxmv_sethpm_ libcudaforblas.lib
오류 55 unresolved external symbol cusparseZcsrgeam referenced in function cusparse_cusparsezcsrgeam_sethpm_ libcudaforblas.lib
오류 42 unresolved external symbol cusparseZcsrmm_v2 referenced in function cusparse_cusparsezcsrmm_sethpm_ libcudaforblas.lib
오류 46 unresolved external symbol cusparseZcsrmm2 referenced in function cusparse_cusparsezcsrmm2_sethpm_ libcudaforblas.lib
오류 26 unresolved external symbol cusparseZcsrmv_v2 referenced in function cusparse_cusparsezcsrmv_sethpm_ libcudaforblas.lib
오류 50 unresolved external symbol cusparseZcsrsm_solve referenced in function cusparse_cusparsezcsrsm_solve_sethpm_ libcudaforblas.lib
오류 30 unresolved external symbol cusparseZcsrsv_solve_v2 referenced in function cusparse_cusparsezcsrsv_solve_sethpm_ libcudaforblas.lib
오류 12 unresolved external symbol cusparseZdotci referenced in function cusparse_cusparsezdotci_sethpm_ libcudaforblas.lib
오류 10 unresolved external symbol cusparseZdoti referenced in function cusparse_cusparsezdoti_sethpm_ libcudaforblas.lib
오류 34 unresolved external symbol cusparseZhybmv referenced in function cusparse_cusparsezhybmv_sethpm_ libcudaforblas.lib
오류 38 unresolved external symbol cusparseZhybsv_solve referenced in function cusparse_cusparsezhybsv_solve_sethpm_ libcudaforblas.lib
오류 61 unresolved external symbol cusparseZnnz referenced in function cusparse_cusparseznnz_sethpm_ libcudaforblas.lib

What could be wrong?

Hi CNJ,

Did you include the cuSparse library on your link line? (i.e. -Mcudalib=cusparse,cublas)

-Mat

Oh, I didn’t know that I had to do it manually.

Thank you.