-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add view ctors that don't take erased sentinel parameter #165
Conversation
empty_key_sentinel_{empty_key_sentinel.value}, | ||
erased_key_sentinel_{empty_key_sentinel.value}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so we set the erased_key_sentinel
to be the same as the empty_key_sentinel
. This implies, that we must not call map.erase(...)
or we break our probing scheme. In order to ensure this, we have a guard in the host API here.
However, as far as I can see, there is no such guard for the device API.
Is this by design?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't really have a good way to guard it on the device API. The best would could probably do is an assert
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs added.
Depends on NVIDIA/cuCollections#165 and NVIDIA/cuCollections#171 This is a preparation step to finally address #10841. It fetches the latest version of `cuco` that [adds missing thrust headers ](NVIDIA/cuCollections#161) and [improves `static_map::retrieve_all`](NVIDIA/cuCollections#169). Authors: - Yunsong Wang (https://github.com/PointKernel) Approvers: - Bradley Dice (https://github.com/bdice) - Vyas Ramasubramani (https://github.com/vyasr) URL: #10983
This PR adds
static_map::device_view
/static_map::device_mutable_view
constructors that don't take the erased sentinel parameter.It's a dependency of rapidsai/cudf#10983