error: ‘cusparseSolveAnalysisInfo_t’ does not name a type

Issue #25 resolved
Jason created an issue

It looks current magma 2.5.3 or current git still NOT compatible with CUDA 11 ?

Can anybody help to give me a hand?

Cheers

Pei

-L/usr/local/cuda/lib64 -L/opt/intel/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lpthread -lstdc++ -lm -lgfortran -lcublas -lcusparse -lcudart -lcudadevrt
g++ -O3 -fPIC -fopenmp -DNDEBUG -DADD_ -Wall -Wno-strict-aliasing -Wshadow -DMAGMA_WITH_MKL -std=c++11 -DHAVE_CUBLAS -DMIN_CUDA_ARCH=600 -I/usr/local/cuda/include -I/opt/intel/mkl/include -I./include -I./control -I./magmablas -I./sparse/include -I./sparse/control -c -o sparse/blas/magma_z_blaswrapper.o sparse/blas/magma_z_blaswrapper.cpp
In file included from ./sparse/include/magmasparse_z.h:16,
                 from ./sparse/include/magmasparse.h:20,
                 from ./sparse/control/magmasparse_internal.h:15,
                 from sparse/blas/magma_z_blaswrapper.cpp:12:
./sparse/include/magmasparse_types.h:606:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  606 |     cusparseSolveAnalysisInfo_t cuinfo;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:607:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  607 |     cusparseSolveAnalysisInfo_t cuinfoL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:608:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  608 |     cusparseSolveAnalysisInfo_t cuinfoLT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:609:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  609 |     cusparseSolveAnalysisInfo_t cuinfoU;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:610:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  610 |     cusparseSolveAnalysisInfo_t cuinfoUT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:664:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  664 |     cusparseSolveAnalysisInfo_t cuinfo;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:665:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  665 |     cusparseSolveAnalysisInfo_t cuinfoL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:666:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  666 |     cusparseSolveAnalysisInfo_t cuinfoLT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:667:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  667 |     cusparseSolveAnalysisInfo_t cuinfoU;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:668:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  668 |     cusparseSolveAnalysisInfo_t cuinfoUT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:723:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  723 |     cusparseSolveAnalysisInfo_t cuinfo;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:724:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  724 |     cusparseSolveAnalysisInfo_t cuinfoL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:725:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  725 |     cusparseSolveAnalysisInfo_t cuinfoLT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:726:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  726 |     cusparseSolveAnalysisInfo_t cuinfoU;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:727:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  727 |     cusparseSolveAnalysisInfo_t cuinfoUT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:782:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  782 |     cusparseSolveAnalysisInfo_t cuinfo;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:783:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  783 |     cusparseSolveAnalysisInfo_t cuinfoL;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:784:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  784 |     cusparseSolveAnalysisInfo_t cuinfoLT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:785:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  785 |     cusparseSolveAnalysisInfo_t cuinfoU;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
./sparse/include/magmasparse_types.h:786:5: error: ‘cusparseSolveAnalysisInfo_t’ does not name a type
  786 |     cusparseSolveAnalysisInfo_t cuinfoUT;
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from sparse/blas/magma_z_blaswrapper.cpp:12:
sparse/blas/magma_z_blaswrapper.cpp: In function ‘magma_int_t magma_z_spmv(magmaDoubleComplex, magma_z_matrix, magma_z_matrix, magmaDoubleComplex, magma_z_matrix, magma_queue_t)’:
sparse/blas/magma_z_blaswrapper.cpp:99:33: error: ‘cusparseZcsrmv’ was not declared in this scope; did you mean ‘cusparseZbsrmv’?
   99 |                 CHECK_CUSPARSE( cusparseZcsrmv( cusparseHandle,CUSPARSE_OPERATION_NON_TRANSPOSE,
      |                                 ^~~~~~~~~~~~~~
./sparse/control/magmasparse_internal.h:69:32: note: in definition of macro ‘CHECK_CUSPARSE’
   69 |         cusparseStatus_t e_ = (err);            \
      |                                ^~~
sparse/blas/magma_z_blaswrapper.cpp:112:17: error: ‘cusparseZcsrmv’ was not declared in this scope; did you mean ‘cusparseZbsrmv’?
  112 |                 cusparseZcsrmv( cusparseHandle,CUSPARSE_OPERATION_TRANSPOSE,
      |                 ^~~~~~~~~~~~~~
      |                 cusparseZbsrmv
sparse/blas/magma_z_blaswrapper.cpp:198:21: error: ‘cusparseZcsrmm’ was not declared in this scope; did you mean ‘cusparseZbsrmm’?
  198 |                     cusparseZcsrmm(cusparseHandle,
      |                     ^~~~~~~~~~~~~~
      |                     cusparseZbsrmm
sparse/blas/magma_z_blaswrapper.cpp:222:25: error: ‘cusparseZcsrmm’ was not declared in this scope; did you mean ‘cusparseZbsrmm’?
  222 |                         cusparseZcsrmm( cusparseHandle,CUSPARSE_OPERATION_TRANSPOSE,
      |                         ^~~~~~~~~~~~~~
      |                         cusparseZbsrmm
make: *** [Makefile:620: sparse/blas/magma_z_blaswrapper.o] Error 1

Cublas seems to have some difference after CUDA 11? Can anybody help to fix that?

Thank you

Pei

Comments (5)

  1. Jason reporter

    Hi, @Stan Tomov

    I notice that CUDA 10.2 move out cublas, but move it back into CUDA 11 now …

    Hmmm… When will MAGMA support CUDA 11?

    And, I still NOT quite understand what is MAGMA specialised in???

  2. Stan Tomov

    Hi Jason, this is just logistics/time - we are looking into it and will add support soon.

    MAGMA has many components. You are looking at the sparse. This specializes in Krylov solvers and preconditioners, support for different matrix formats, etc. cuSPARSE provides lower level routines that we use sometimes - as there are many matrix formats to support, and this is the problem when they discontinue something - we have to either provide it or disable support for it.

  3. Stan Tomov

    Jason,
    We fix this issue. Please try it now and if it works for you, we can close this issue? Thanks. The changes will be included in next release that we are preparing now.

  4. Log in to comment