From 549cd96c2b1ec67bc01987829d067197eb7a3395 Mon Sep 17 00:00:00 2001 From: Karthikeyan <6488848+karthikeyann@users.noreply.github.com> Date: Thu, 27 Jan 2022 10:56:39 +0530 Subject: [PATCH] static object shared pointer fix. benchmark fixture - fix static object pointer, replace with static shared pointer. --- cpp/benchmarks/fixture/benchmark_fixture.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpp/benchmarks/fixture/benchmark_fixture.hpp b/cpp/benchmarks/fixture/benchmark_fixture.hpp index ca3a748ccad..5f23cbbafdd 100644 --- a/cpp/benchmarks/fixture/benchmark_fixture.hpp +++ b/cpp/benchmarks/fixture/benchmark_fixture.hpp @@ -32,8 +32,9 @@ inline auto make_cuda() { return std::make_shared inline auto make_pool_instance() { static rmm::mr::cuda_memory_resource cuda_mr; - static rmm::mr::pool_memory_resource pool_mr{&cuda_mr}; - return std::shared_ptr(&pool_mr); + static auto pool_mr = + std::make_shared>(&cuda_mr); + return pool_mr; } } // namespace