Skip to content
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

Disable construction of cuda_stream_view from literal zero or nullptr #740

Merged

Conversation

harrism
Copy link
Member

@harrism harrism commented Mar 31, 2021

This deletes the rmm::cuda_stream_view constructors from int and nullptr_t to disable construction from literal zero or nullptr. This makes stream parameters harder to misuse and more strongly types stream parameters in RAPIDS APIs.

This is a breaking change that will more than likely require corresponding changes in dependent RAPIDS libraries.

@harrism harrism requested a review from a team as a code owner March 31, 2021 02:10
@harrism harrism requested review from rongou and codereport March 31, 2021 02:10
@github-actions github-actions bot added the cpp Pertains to C++ code label Mar 31, 2021
@harrism harrism added 3 - Ready for review Ready for review by team breaking Breaking change improvement Improvement / enhancement to an existing function labels Mar 31, 2021
@harrism harrism self-assigned this Mar 31, 2021
@harrism
Copy link
Member Author

harrism commented Mar 31, 2021

rerun tests

@harrism
Copy link
Member Author

harrism commented Apr 1, 2021

Merge after rapidsai/cudf/#7774

@harrism harrism added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for review Ready for review by team labels Apr 1, 2021
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Apr 8, 2021
Eliminates literal zero arguments to `cuda_stream_view` parameters in libcudf, replacing them with `rmm::cuda_stream_default`

Followup to rapidsai/rmm#740

Authors:
  - Mark Harris (https://github.com/harrism)
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Mike Wilson (https://github.com/hyperbolic2346)
  - Jake Hemstad (https://github.com/jrhemstad)
  - MithunR (https://github.com/mythrocks)

URL: #7774
@harrism
Copy link
Member Author

harrism commented Apr 15, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 838a6ea into rapidsai:branch-0.20 Apr 15, 2021
rapids-bot bot pushed a commit to rapidsai/cudf that referenced this pull request Apr 15, 2021
Eliminates literal zero arguments to `cuda_stream_view` parameters in libcudfjni, replacing them with `rmm::cuda_stream_default`

Followup to rapidsai/rmm#740

CC @harrism

Authors:
  - Rong Ou (https://github.com/rongou)

Approvers:
  - Jason Lowe (https://github.com/jlowe)

URL: #7972
rapids-bot bot pushed a commit to rapidsai/cuspatial that referenced this pull request Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge breaking Breaking change cpp Pertains to C++ code improvement Improvement / enhancement to an existing function
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants