diff --git a/include/cuco/detail/open_addressing_impl.cuh b/include/cuco/detail/open_addressing_impl.cuh index 51afb5046..c4acccaef 100644 --- a/include/cuco/detail/open_addressing_impl.cuh +++ b/include/cuco/detail/open_addressing_impl.cuh @@ -152,7 +152,7 @@ class open_addressing_impl { * @note Static extent will become dynamic extent by invoking this constructor. * * @throw If the desired occupancy is no bigger than zero - * @throw If the desired occupancy is larger than one + * @throw If the desired occupancy is no smaller than one * * @param n The number of elements to insert * @param desired_load_factor The desired load factor of the container, e.g., 0.5 implies a 50% @@ -181,7 +181,7 @@ class open_addressing_impl { alloc} { CUCO_EXPECTS(desired_load_factor > 0., "Desired occupancy must be larger than zero"); - CUCO_EXPECTS(desired_load_factor <= 1., "Desired occupancy cannot be larger than one"); + CUCO_EXPECTS(desired_load_factor < 1., "Desired occupancy must be smaller than one"); this->clear_async(stream); } diff --git a/include/cuco/static_map.cuh b/include/cuco/static_map.cuh index ac0097d29..679179041 100644 --- a/include/cuco/static_map.cuh +++ b/include/cuco/static_map.cuh @@ -198,6 +198,9 @@ class static_map { * @note If a non-default CUDA stream is provided, the caller is responsible for synchronizing the * stream before the object is first used. * + * @throw If the desired occupancy is no bigger than zero + * @throw If the desired occupancy is no smaller than one + * * @param n The number of elements to insert * @param desired_load_factor The desired load factor of the container, e.g., 0.5 implies a 50% * load factor diff --git a/include/cuco/static_set.cuh b/include/cuco/static_set.cuh index 50b7635be..a380dface 100644 --- a/include/cuco/static_set.cuh +++ b/include/cuco/static_set.cuh @@ -171,6 +171,9 @@ class static_set { * @note If a non-default CUDA stream is provided, the caller is responsible for synchronizing the * stream before the object is first used. * + * @throw If the desired occupancy is no bigger than zero + * @throw If the desired occupancy is no smaller than one + * * @param n The number of elements to insert * @param desired_load_factor The desired load factor of the container, e.g., 0.5 implies a 50% * load factor