Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cpp/include/raft/core/device_container_policy.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* SPDX-FileCopyrightText: Copyright (2019) Sandia Corporation
* SPDX-FileCopyrightText: Copyright (c) 2022-2025, NVIDIA CORPORATION.
* SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
* SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
*/
/*
Expand All @@ -24,6 +24,7 @@
#include <rmm/mr/per_device_resource.hpp>
#include <rmm/resource_ref.hpp>

#include <cuda/memory_resource>
#include <thrust/device_ptr.h>

namespace raft {
Expand Down Expand Up @@ -170,7 +171,8 @@ class device_uvector_policy {
[[nodiscard]] auto make_accessor_policy() const noexcept { return const_accessor_policy{}; }

private:
rmm::device_async_resource_ref mr_{rmm::mr::get_current_device_resource()};
cuda::mr::any_resource<cuda::mr::device_accessible> mr_{
rmm::mr::get_current_device_resource_ref()};
};

} // namespace raft
Expand Down
Loading