Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikeyann authored Jan 21, 2022
1 parent fbb93fe commit d156a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/benchmarks/fixture/benchmark_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace {
// memory resource factory helpers
inline auto make_cuda() { return std::make_shared<rmm::mr::cuda_memory_resource>(); }

inline auto benchmark_pool_instance()
inline auto make_pool_instance()
{
static rmm::mr::cuda_memory_resource cuda_mr;
static rmm::mr::pool_memory_resource pool_mr{&cuda_mr};
Expand Down Expand Up @@ -78,7 +78,7 @@ class benchmark : public ::benchmark::Fixture {

void SetUp(const ::benchmark::State& state) override
{
mr = benchmark_pool_instance();
mr = make_pool_instance();
rmm::mr::set_current_device_resource(mr.get()); // set default resource to pool
}

Expand Down

0 comments on commit d156a49

Please sign in to comment.