Skip to content

Commit b923f77

Browse files
committed
Unify static asserts in OA ref
1 parent 6a2a1d2 commit b923f77

5 files changed

Lines changed: 0 additions & 27 deletions

File tree

include/cuco/detail/open_addressing/open_addressing_impl.cuh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ template <class Key,
6969
class Allocator,
7070
class Storage>
7171
class open_addressing_impl {
72-
static_assert(
73-
cuco::is_bitwise_comparable_v<Key>,
74-
"Key type must have unique object representations or have been explicitly declared as safe for "
75-
"bitwise comparison via specialization of cuco::is_bitwise_comparable_v<Key>.");
76-
7772
static_assert(cuda::std::is_base_of_v<cuco::detail::probing_scheme_base<ProbingScheme::cg_size>,
7873
ProbingScheme>,
7974
"ProbingScheme must inherit from cuco::detail::probing_scheme_base");

include/cuco/static_map.cuh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,6 @@ template <class Key,
9595
class Allocator = cuco::cuda_allocator<cuco::pair<Key, T>>,
9696
class Storage = cuco::storage<1>>
9797
class static_map {
98-
static_assert(sizeof(Key) <= cuco::detail::max_key_size,
99-
"Key size exceeds the maximum supported size (8 bytes, or 16 with sm_90+).");
100-
101-
static_assert(sizeof(T) <= cuco::detail::max_payload_size,
102-
"Payload size exceeds the maximum supported size (8 bytes, or 16 with sm_90+).");
103-
10498
static_assert(cuco::is_bitwise_comparable_v<T>,
10599
"Mapped type must have unique object representations or have been explicitly "
106100
"declared as safe for bitwise comparison via specialization of "

include/cuco/static_map_ref.cuh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ class static_map_ref
7878
static_assert(cuco::detail::is_valid_mapped_size(sizeof(T)),
7979
"sizeof(mapped_type) must be 4 or 8 bytes (or 16 with sm_90+).");
8080

81-
static_assert(
82-
cuco::is_bitwise_comparable_v<Key>,
83-
"Key type must have unique object representations or have been explicitly declared as safe for "
84-
"bitwise comparison via specialization of cuco::is_bitwise_comparable_v<Key>.");
85-
8681
public:
8782
using key_type = Key; ///< Key type
8883
using mapped_type = T; ///< Mapped type

include/cuco/static_multimap.cuh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@ template <class Key,
9191
class Allocator = cuco::cuda_allocator<cuco::pair<Key, T>>,
9292
class Storage = cuco::storage<2>>
9393
class static_multimap {
94-
static_assert(sizeof(Key) <= cuco::detail::max_key_size,
95-
"Key size exceeds the maximum supported size (8 bytes, or 16 with sm_90+).");
96-
97-
static_assert(sizeof(T) <= cuco::detail::max_payload_size,
98-
"Payload size exceeds the maximum supported size (8 bytes, or 16 with sm_90+).");
99-
10094
static_assert(cuco::is_bitwise_comparable_v<T>,
10195
"Mapped type must have unique object representations or have been explicitly "
10296
"declared as safe for bitwise comparison via specialization of "

include/cuco/static_multimap_ref.cuh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ class static_multimap_ref
7575
using impl_type = detail::
7676
open_addressing_ref_impl<Key, Scope, KeyEqual, ProbingScheme, StorageRef, allows_duplicates>;
7777

78-
static_assert(
79-
cuco::is_bitwise_comparable_v<Key>,
80-
"Key type must have unique object representations or have been explicitly declared as safe for "
81-
"bitwise comparison via specialization of cuco::is_bitwise_comparable_v<Key>.");
82-
8378
public:
8479
using key_type = Key; ///< Key type
8580
using mapped_type = T; ///< Mapped type

0 commit comments

Comments
 (0)