From d156a497a214cc92c2ff0c12b0a93805a5bab00a Mon Sep 17 00:00:00 2001 From: Karthikeyan <6488848+karthikeyann@users.noreply.github.com> Date: Fri, 21 Jan 2022 09:34:21 +0530 Subject: [PATCH] Apply suggestions from code review --- cpp/benchmarks/fixture/benchmark_fixture.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/benchmarks/fixture/benchmark_fixture.hpp b/cpp/benchmarks/fixture/benchmark_fixture.hpp index 2e421bdc5c0..ca3a748ccad 100644 --- a/cpp/benchmarks/fixture/benchmark_fixture.hpp +++ b/cpp/benchmarks/fixture/benchmark_fixture.hpp @@ -29,7 +29,7 @@ namespace { // memory resource factory helpers inline auto make_cuda() { return std::make_shared(); } -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}; @@ -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 }