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

[REVIEW] Consistent renaming of CHECK_CUDA and *_TRY macros #410

Merged
merged 5 commits into from
Dec 9, 2021

Conversation

cjnolet
Copy link
Member

@cjnolet cjnolet commented Dec 8, 2021

This PR makes the naming of cuda status checks/logs consistent with other RAPIDS libraries.

  1. RAFT_CHECK_CUDA is used to check if a CUDA error has been thrown (and synchronize if in debug mode) given a stream
  2. RAFT_{lib_name}_TRY evaluates the return code of a library function
  3. {lib_name}_CHECK invokes its corresponding RAFT_{lib_name}_TRY macro for now. Once these are removed from all consuming projects, we can simply remove them.

@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Dec 8, 2021
@cjnolet cjnolet requested review from a team as code owners December 8, 2021 20:15
@github-actions github-actions bot added the cpp label Dec 8, 2021
@cjnolet cjnolet changed the title [REVIEW] Consistent renaming of CHECK_* and *_TRY macros [REVIEW] Consistent renaming of CHECK_CUDA and *_TRY macros Dec 8, 2021
@github-actions github-actions bot added the python label Dec 8, 2021
Copy link
Contributor

@seunghwak seunghwak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@cjnolet
Copy link
Member Author

cjnolet commented Dec 9, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 2ecdd34 into rapidsai:branch-22.02 Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants