Skip to content

Commit

Permalink
Update runtime check conditions and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Sep 27, 2023
1 parent 0297657 commit bb07b6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cuco/detail/open_addressing_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down Expand Up @@ -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);
}
Expand Down
3 changes: 3 additions & 0 deletions include/cuco/static_map.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions include/cuco/static_set.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb07b6d

Please sign in to comment.