Skip to content

Warnings in the CUDA backend #372

@nkoukpaizan

Description

@nkoukpaizan

I noticed some warnings in the CUDA backend while testing #371. Deprecated features that may be removed in future CUDA versions.

A first set of warning pertains to csrilu02Info_t

In file included from /home/97k/ReSolve/tests/functionality/testRandGmres.cpp:27:
/home/97k/ReSolve/resolve/LinSolverDirectCuSparseILU0.hpp:65:40: warning: ‘csrilu02Info_t’ is deprecated: The type will be removed in the next major release [-Wdeprecated-declarations]
   65 |     csrilu02Info_t      info_A_{nullptr};
      |                                        ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /home/97k/ReSolve/resolve/workspace/LinAlgWorkspaceCUDA.hpp:4,
                 from /home/97k/ReSolve/resolve/workspace/LinAlgWorkspace.hpp:6,
                 from /home/97k/ReSolve/tests/functionality/testRandGmres.cpp:24:
/usr/local/cuda/include/cusparse.h:238:22: note: declared here
  238 | struct csrilu02Info* csrilu02Info_t CUSPARSE_DEPRECATED_TYPE;
      |                      ^~~~~~~~~~~~~~

Another set of warnings pertains to cuSolver calls. We have found cuDSS to be less performant that cuSolver, but we will eventually need to address this if the feature is removed. E.g.,

/home/97k/ReSolve/resolve/LinSolverDirectCuSolverRf.cpp: In member function ‘virtual int ReSolve::LinSolverDirectCuSolverRf::setup(ReSolve::matrix::Sparse*, ReSolve::matrix::Sparse*, ReSolve::matrix::Sparse*, ReSolve::index_type*, ReSolve::index_type*, ReSolve::LinSolverDirectCuSolverRf::vector_type*)’:
/home/97k/ReSolve/resolve/LinSolverDirectCuSolverRf.cpp:135:47: warning: ‘cusolverStatus_t cusolverRfSetupDevice(int, int, int*, int*, double*, int, int*, int*, double*, int, int*, int*, double*, int*, int*, cusolverRfHandle_t)’ is deprecated: please use cuDSS instead [-Wdeprecated-declarations]

Build environment:

  • pdesx system
  • CUDA 12.9
  • gcc 11.4.0

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions