[ENHANCEMENT]: Device assertions in debug mode #563
Labels
good first issue
Good for newcomers
P2: Nice to have
Desired, but not necessary
type: improvement
Improvement / enhancement to an existing function
Is your feature request related to a problem? Please describe.
Probing errors can be tedious to debug.
Some of these errors, such as inserting or probing for a sentinel, might even lead to silent failures.
Describe the solution you'd like
Add device-side assertions in debug mode for the following:
capacity
-many slots (this will also detect overflow state, i.e., inserting more elements than there are slots in the map)assert
in device code will impact performance negatively. Thus, I propose we conditionally enable it only ifDEBUG
is defined.Describe alternatives you've considered
Instead of using the global
DEBUG
flag to enable assertions, we could define a new flagCUCO_DEBUG
to get finer-grained control.Additional context
No response
The text was updated successfully, but these errors were encountered: