Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Update cuSparse deprecated calls #289

Closed
seunghwak opened this issue Jul 8, 2021 · 7 comments · Fixed by #441
Closed

[BUG] Update cuSparse deprecated calls #289

seunghwak opened this issue Jul 8, 2021 · 7 comments · Fixed by #441
Labels
bug Something isn't working

Comments

@seunghwak
Copy link
Contributor

Describe the bug
Compiling with raft produces the following many wanrings.

In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsrmvex_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const T*, cusparseMatDescr_t, const T*, const int*, const int*, const T*, const T*, T*, size_t*, cudaStream_t) [with T = float; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; size_t = long unsigned int; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:583:46: warning: ‘cusparseStatus_t cusparseCsrmvEx_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, size_t*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  583 |     CUDA_R_32F, CUDA_R_32F, bufferSizeInBytes);
      |                                              ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:710:1: note: declared here
  710 | cusparseCsrmvEx_bufferSize(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:583:46: warning: ‘cusparseStatus_t cusparseCsrmvEx_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, size_t*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  583 |     CUDA_R_32F, CUDA_R_32F, bufferSizeInBytes);
      |                                              ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:710:1: note: declared here
  710 | cusparseCsrmvEx_bufferSize(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsrmvex_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const T*, cusparseMatDescr_t, const T*, const int*, const int*, const T*, const T*, T*, size_t*, cudaStream_t) [with T = double; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; size_t = long unsigned int; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:596:46: warning: ‘cusparseStatus_t cusparseCsrmvEx_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, size_t*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  596 |     CUDA_R_64F, CUDA_R_64F, bufferSizeInBytes);
      |                                              ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:710:1: note: declared here
  710 | cusparseCsrmvEx_bufferSize(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:596:46: warning: ‘cusparseStatus_t cusparseCsrmvEx_bufferSize(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, size_t*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  596 |     CUDA_R_64F, CUDA_R_64F, bufferSizeInBytes);
      |                                              ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:710:1: note: declared here
  710 | cusparseCsrmvEx_bufferSize(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsrmvex(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const T*, cusparseMatDescr_t, const T*, const int*, const int*, const T*, const T*, T*, T*, cudaStream_t) [with T = float; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:616:44: warning: ‘cusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  616 |                          CUDA_R_32F, buffer);
      |                                            ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:734:1: note: declared here
  734 | cusparseCsrmvEx(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:616:44: warning: ‘cusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  616 |                          CUDA_R_32F, buffer);
      |                                            ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:734:1: note: declared here
  734 | cusparseCsrmvEx(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsrmvex(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const T*, cusparseMatDescr_t, const T*, const int*, const int*, const T*, const T*, T*, T*, cudaStream_t) [with T = double; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:629:44: warning: ‘cusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  629 |                          CUDA_R_64F, buffer);
      |                                            ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:734:1: note: declared here
  734 | cusparseCsrmvEx(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:629:44: warning: ‘cusparseStatus_t cusparseCsrmvEx(cusparseHandle_t, cusparseAlgMode_t, cusparseOperation_t, int, int, int, const void*, cudaDataType, cusparseMatDescr_t, const void*, cudaDataType, const int*, const int*, const void*, cudaDataType, const void*, cudaDataType, void*, cudaDataType, cudaDataType, void*)’ is deprecated: please use cusparseSpMV instead [-Wdeprecated-declarations]
  629 |                          CUDA_R_64F, buffer);
      |                                            ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:734:1: note: declared here
  734 | cusparseCsrmvEx(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const T*, const int*, const int*, T*, int, cudaStream_t) [with T = float; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:852:47: warning: ‘cusparseStatus_t cusparseScsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const float*, const int*, const int*, float*, int)’ is deprecated: please use cusparseSparseToDense instead [-Wdeprecated-declarations]
  852 |                             csrColIndA, A, lda);
      |                                               ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:4098:1: note: declared here
 4098 | cusparseScsr2dense(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:852:47: warning: ‘cusparseStatus_t cusparseScsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const float*, const int*, const int*, float*, int)’ is deprecated: please use cusparseSparseToDense instead [-Wdeprecated-declarations]
  852 |                             csrColIndA, A, lda);
      |                                               ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:4098:1: note: declared here
 4098 | cusparseScsr2dense(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h: In function ‘cusparseStatus_t raft::sparse::cusparsecsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const T*, const int*, const int*, T*, int, cudaStream_t) [with T = double; cusparseHandle_t = cusparseContext*; cusparseMatDescr_t = cusparseMatDescr*; cudaStream_t = CUstream_st*]’:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:863:47: warning: ‘cusparseStatus_t cusparseDcsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const double*, const int*, const int*, double*, int)’ is deprecated: please use cusparseSparseToDense instead [-Wdeprecated-declarations]
  863 |                             csrColIndA, A, lda);
      |                                               ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:4110:1: note: declared here
 4110 | cusparseDcsr2dense(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~
In file included from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:37,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/sparse/cusparse_wrappers.h:863:47: warning: ‘cusparseStatus_t cusparseDcsr2dense(cusparseHandle_t, int, int, cusparseMatDescr_t, const double*, const int*, const int*, double*, int)’ is deprecated: please use cusparseSparseToDense instead [-Wdeprecated-declarations]
  863 |                             csrColIndA, A, lda);
      |                                               ^
In file included from /usr/local/cuda/include/cusolverSp.h:53,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/build/_deps/raft-src/cpp/include/raft/handle.hpp:29,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/utilities/device_comm_wrapper.hpp:19,
                 from /raid/seunghwak/RAPIDS/development/cugraph/cpp/tests/experimental/mg_sssp_test.cpp:19:
/usr/local/cuda/include/cusparse.h:4110:1: note: declared here
 4110 | cusparseDcsr2dense(cusparseHandle_t         handle,
      | ^~~~~~~~~~~~~~~~~~
@seunghwak seunghwak added the bug Something isn't working label Jul 8, 2021
rapids-bot bot pushed a commit that referenced this issue Jul 28, 2021
This PR fixes current RAFT C++/CUDA compilation warnings and turns on -Wall to treat warnings as errors.

Fixes #225
Fixes #289

Authors:
  - Mark Harris (https://github.com/harrism)

Approvers:
  - Brad Rees (https://github.com/BradReesWork)
  - Corey J. Nolet (https://github.com/cjnolet)

URL: #299
@dantegd
Copy link
Member

dantegd commented Jul 30, 2021

Closed by #299

@dantegd dantegd closed this as completed Jul 30, 2021
@seunghwak
Copy link
Contributor Author

I am still seeing the warnings... Are these really fixed?

@seunghwak seunghwak reopened this Sep 3, 2021
@ChuckHastings
Copy link
Contributor

The referenced PR only fixed warnings that appear in building raft itself. The warnings cugraph is getting are from deprecated calls in raft that aren't used in the raft test code. Is there a plan to update the cusparse calls to eliminate these?

@ChuckHastings
Copy link
Contributor

Note that

option(DISABLE_DEPRECATION_WARNINGS "Disable depreaction warnings " ON)
inhibits deprecation warnings when we build raft. If you flip this from ON to OFF you will see the deprecation warnings when building raft that we are seeing when building cugraph.

@dantegd dantegd changed the title [BUG] Compiling with raft produces many warnings [BUG] Update cuSparse deprecated calls Sep 7, 2021
@github-actions
Copy link

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

@cjnolet
Copy link
Member

cjnolet commented Jan 12, 2022

Digging through the cugraph code a bit, it looks like the only reason these warnings are triggered at all is because the raft_handle is imported (e.g. cugraph isn't even using cusparse). We're also making very limited use of cusparse in both raft and cuml, which makes me wonder if we even need most of these wrappers. I believe most of the cusparse calls in cuml should be isolated to RAFT primitives but I'll go through the code and verify this. Any objections to removing the unused cusparse wrappers altogether?

@cjnolet
Copy link
Member

cjnolet commented Jan 12, 2022

It looks like the only deprecated function we are actually calling within RAFT is cusparsecsr2dense. This was added when we added the sparse distances primitive. The other deprecated function (e.g. the gemm) can be removed.

@rapids-bot rapids-bot bot closed this as completed in #441 Feb 8, 2022
rapids-bot bot pushed a commit that referenced this issue Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants