-
Notifications
You must be signed in to change notification settings - Fork 91
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
Introduce cuco::cuda_stream_ref #296
Conversation
// /** | ||
// * @brief Equality comparison operator for streams | ||
// * | ||
// * @param lhs The first stream view to compare | ||
// * @param rhs The second stream view to compare | ||
// * @return true if equal, false if unequal | ||
// */ | ||
// inline bool operator==(cuda_stream_ref lhs, cuda_stream_ref rhs) | ||
// { | ||
// return lhs.value() == rhs.value(); | ||
// } | ||
|
||
// /** | ||
// * @brief Inequality comparison operator for streams | ||
// * | ||
// * @param lhs The first stream view to compare | ||
// * @param rhs The second stream view to compare | ||
// * @return true if unequal, false if equal | ||
// */ | ||
// inline bool operator!=(cuda_stream_ref lhs, cuda_stream_ref rhs) { return not(lhs == rhs); } |
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.
RMM defines these equality operators. However, they collide with the built-in ptr == ptr
operator.
I would say we merge the current PR as a WAR and switch to |
Merging this to unblock the following PRs for set. |
This PR introduces a non-owning wrapper for
cudaStream_t
coinedcuco::cuda_stream_ref
and primarily borrows from RMM's implementation.