Skip to content

Commit

Permalink
Not ready for _ref here yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
harrism committed Sep 3, 2024
1 parent 2131acb commit c7e91a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/bench/prims/common/benchmark.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ struct using_pool_memory_res {

public:
using_pool_memory_res(size_t initial_size, size_t max_size)
: orig_res_(raft::resource::get_current_device_resource_ref()),
: orig_res_(raft::resource::get_current_device_resource()),
pool_res_(&cuda_res_, initial_size, max_size)
{
raft::resource::set_current_device_resource(&pool_res_);
}

using_pool_memory_res()
: orig_res_(raft::resource::get_current_device_resource_ref()),
: orig_res_(raft::resource::get_current_device_resource()),
pool_res_(&cuda_res_, rmm::percent_of_free_device_memory(50))
{
raft::resource::set_current_device_resource(&pool_res_);
Expand Down

0 comments on commit c7e91a0

Please sign in to comment.