Skip to content

Commit 8f86c82

Browse files
authored
Use stream_allocator_adaptor constructor instead of factory. (#4557)
This PR uses the `stream_allocator_adaptor` constructor instead of a factory. With CTAD, we do not need the factory and can use the constructor directly. The factory will be deprecated in rapidsai/rmm#1626. Authors: - Bradley Dice (https://github.com/bdice) - Mark Harris (https://github.com/harrism) Approvers: - James Lamb (https://github.com/jameslamb) - Seunghwa Kang (https://github.com/seunghwak) URL: #4557
1 parent 1be81a4 commit 8f86c82

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cpp/src/prims/key_store.cuh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <cuco/static_set.cuh>
2929

3030
#include <algorithm>
31+
#include <cstddef>
3132
#include <memory>
3233
#include <optional>
3334
#include <type_traits>
@@ -322,7 +323,7 @@ class key_cuco_store_t {
322323
static_cast<size_t>(static_cast<double>(num_keys) / load_factor),
323324
static_cast<size_t>(num_keys) + 1); // cuco::static_map requires at least one empty slot
324325

325-
auto stream_adapter = rmm::mr::make_stream_allocator_adaptor(
326+
auto stream_adapter = rmm::mr::stream_allocator_adaptor(
326327
rmm::mr::polymorphic_allocator<std::byte>(rmm::mr::get_current_device_resource()), stream);
327328
cuco_store_ =
328329
std::make_unique<cuco_set_type>(cuco_size,

cpp/src/prims/kv_store.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ class kv_cuco_store_t {
820820
static_cast<size_t>(static_cast<double>(num_keys) / load_factor),
821821
static_cast<size_t>(num_keys) + 1); // cuco::static_map requires at least one empty slot
822822

823-
auto stream_adapter = rmm::mr::make_stream_allocator_adaptor(
823+
auto stream_adapter = rmm::mr::stream_allocator_adaptor(
824824
rmm::mr::polymorphic_allocator<std::byte>(rmm::mr::get_current_device_resource()), stream);
825825
if constexpr (std::is_arithmetic_v<value_t>) {
826826
cuco_store_ =

0 commit comments

Comments
 (0)