Skip to content

Commit

Permalink
Apply sentinel namespace to dynamic_map
Browse files Browse the repository at this point in the history
  • Loading branch information
m3g4d1v3r committed May 26, 2022
1 parent 76aedb2 commit 62a515a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions include/cuco/detail/dynamic_map.inl
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ namespace cuco {

template <typename Key, typename Value, cuda::thread_scope Scope, typename Allocator>
dynamic_map<Key, Value, Scope, Allocator>::dynamic_map(std::size_t initial_capacity,
Key empty_key_sentinel,
Value empty_value_sentinel,
sentinel::empty_key<Key> empty_key_sentinel,
sentinel::empty_value<Value> empty_value_sentinel,
Allocator const& alloc)
: empty_key_sentinel_(empty_key_sentinel),
empty_value_sentinel_(empty_value_sentinel),
: empty_key_sentinel_(empty_key_sentinel.value),
empty_value_sentinel_(empty_value_sentinel.value),
size_(0),
capacity_(initial_capacity),
min_insert_size_(1E4),
Expand Down
5 changes: 3 additions & 2 deletions include/cuco/dynamic_map.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <cuco/detail/dynamic_map_kernels.cuh>
#include <cuco/detail/error.hpp>
#include <cuco/sentinel.cuh>
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
Expand Down Expand Up @@ -131,8 +132,8 @@ class dynamic_map {
* @param alloc Allocator used to allocate submap device storage
*/
dynamic_map(std::size_t initial_capacity,
Key empty_key_sentinel,
Value empty_value_sentinel,
sentinel::empty_key<Key> empty_key_sentinel,
sentinel::empty_value<Value> empty_value_sentinel,
Allocator const& alloc = Allocator{});

/**
Expand Down

0 comments on commit 62a515a

Please sign in to comment.