diff --git a/cpp/bench/common/ml_benchmark.hpp b/cpp/bench/common/ml_benchmark.hpp index ebe2d5ef49..6f22c1538f 100644 --- a/cpp/bench/common/ml_benchmark.hpp +++ b/cpp/bench/common/ml_benchmark.hpp @@ -11,8 +11,8 @@ #include #include -#include +#include #include #include diff --git a/cpp/src/svm/results.cuh b/cpp/src/svm/results.cuh index fd0c2ac17e..7e744ebb88 100644 --- a/cpp/src/svm/results.cuh +++ b/cpp/src/svm/results.cuh @@ -22,10 +22,10 @@ #include #include #include -#include #include #include +#include #include @@ -305,7 +305,7 @@ class Results { return n_selected; } - rmm::device_async_resource_ref rmm_alloc; + cuda::mr::device_resource_ref rmm_alloc; private: const raft::handle_t& handle; diff --git a/cpp/src/svm/sparse_util.cuh b/cpp/src/svm/sparse_util.cuh index 0719434a75..591fc8a70e 100644 --- a/cpp/src/svm/sparse_util.cuh +++ b/cpp/src/svm/sparse_util.cuh @@ -17,8 +17,8 @@ #include #include -#include +#include #include #include #include diff --git a/cpp/src/svm/svc_impl.cuh b/cpp/src/svm/svc_impl.cuh index 422d5751b1..d335e8e6ab 100644 --- a/cpp/src/svm/svc_impl.cuh +++ b/cpp/src/svm/svc_impl.cuh @@ -25,8 +25,8 @@ #include #include #include -#include +#include #include #include #include @@ -145,7 +145,7 @@ int svcFitX(const raft::handle_t& handle, { rmm::device_uvector unique_labels(0, stream); model.n_classes = raft::label::getUniquelabels(unique_labels, labels, n_rows, stream); - rmm::device_async_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); + cuda::mr::device_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); model.unique_labels = (math_t*)rmm_alloc.allocate(stream, model.n_classes * sizeof(math_t)); raft::copy(model.unique_labels, unique_labels.data(), model.n_classes, stream); handle_impl.sync_stream(stream); @@ -480,8 +480,8 @@ void svcPredictSparse(const raft::handle_t& handle, template void svmFreeBuffers(const raft::handle_t& handle, SvmModel& m) { - cudaStream_t stream = handle.get_stream().get(); - rmm::device_async_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); + cudaStream_t stream = handle.get_stream().get(); + cuda::mr::device_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); if (m.dual_coefs) rmm_alloc.deallocate(stream, m.dual_coefs, m.n_support * sizeof(math_t)); if (m.support_idx) rmm_alloc.deallocate(stream, m.support_idx, m.n_support * sizeof(int)); if (m.support_matrix.indptr) { diff --git a/cpp/src_prims/opg/matrix/matrix_utils.cu b/cpp/src_prims/opg/matrix/matrix_utils.cu index 4e92d134d1..c10b1a8658 100644 --- a/cpp/src_prims/opg/matrix/matrix_utils.cu +++ b/cpp/src_prims/opg/matrix/matrix_utils.cu @@ -10,7 +10,8 @@ #include #include -#include + +#include namespace MLCommon { namespace Matrix { diff --git a/cpp/tests/sg/svc_test.cu b/cpp/tests/sg/svc_test.cu index 23512a9c39..f09ebd19c7 100644 --- a/cpp/tests/sg/svc_test.cu +++ b/cpp/tests/sg/svc_test.cu @@ -20,8 +20,9 @@ #include #include -#include +#include +#include #include #include #include @@ -530,8 +531,8 @@ class GetResultsTest : public ::testing::Test { protected: void FreeDenseSupport() { - rmm::device_async_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); - auto stream = this->handle.get_stream(); + cuda::mr::device_resource_ref rmm_alloc = rmm::mr::get_current_device_resource_ref(); + auto stream = this->handle.get_stream(); rmm_alloc.deallocate(stream, support_matrix.data, n_coefs * n_cols * sizeof(math_t)); support_matrix.data = nullptr; } diff --git a/python/cuml/cuml/manifold/umap/umap.pyx b/python/cuml/cuml/manifold/umap/umap.pyx index 2c289d0cc9..6e49ca0b57 100644 --- a/python/cuml/cuml/manifold/umap/umap.pyx +++ b/python/cuml/cuml/manifold/umap/umap.pyx @@ -38,7 +38,7 @@ from libcpp.memory cimport unique_ptr from libcpp.utility cimport move from pylibraft.common.handle cimport handle_t from rmm.librmm.device_buffer cimport device_buffer -from rmm.librmm.memory_resource cimport any_resource, device_accessible +from rmm.librmm.memory_resource cimport any_device_resource from rmm.pylibrmm.device_buffer cimport DeviceBuffer from rmm.pylibrmm.memory_resource cimport get_current_device_resource @@ -1347,7 +1347,7 @@ class UMAP( ), init.nbytes, handle_.get_stream(), - any_resource[device_accessible]( + any_device_resource( get_current_device_resource().get_mr() ) )