Skip to content

Commit

Permalink
static object shared pointer fix.
Browse files Browse the repository at this point in the history
benchmark fixture - fix static object pointer, replace with static shared pointer.
  • Loading branch information
karthikeyann authored Jan 27, 2022
1 parent b290ec7 commit 549cd96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpp/benchmarks/fixture/benchmark_fixture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ inline auto make_cuda() { return std::make_shared<rmm::mr::cuda_memory_resource>
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<rmm::mr::device_memory_resource>(&pool_mr);
static auto pool_mr =
std::make_shared<rmm::mr::pool_memory_resource<rmm::mr::cuda_memory_resource>>(&cuda_mr);
return pool_mr;
}
} // namespace

Expand Down

0 comments on commit 549cd96

Please sign in to comment.