Skip to content

Commit

Permalink
set_current_device_resource() (not ref)
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism committed Sep 10, 2024
1 parent 2fa415c commit 9ced243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/bench/prims/neighbors/refine.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class RefineAnn : public fixture {
label_stream << data.p;
state.SetLabel(label_stream.str());

auto old_mr = raft::resource::get_current_device_resource_ref();
auto old_mr = raft::resource::get_current_device_resource();
rmm::mr::pool_memory_resource<rmm::mr::device_memory_resource> pool_mr(
old_mr, rmm::percent_of_free_device_memory(50));
raft::resource::set_current_device_resource(&pool_mr);
Expand Down

0 comments on commit 9ced243

Please sign in to comment.