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

Mark all nogil cdef functions as noexcept #306

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

jakirkham
Copy link
Member

These are all pure C functions implemented in Cython. They do not raise. Cython 3 adds checks for exceptions in these functions, which is unnecessary given none of these set exceptions. So add noexcept to turn off these Cython checks.

xref: rapidsai/kvikio#502

These are all pure C functions implemented in Cython. They do not raise.
Cython 3 adds checks for exceptions in these functions, which is
unnecessary given none of these set exceptions. So add `noexcept` to
turn off these Cython checks.
@jakirkham jakirkham requested a review from a team as a code owner October 21, 2024 19:35
@jakirkham jakirkham added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Oct 21, 2024
Copy link
Member

@pentschev pentschev left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jakirkham !

@pentschev
Copy link
Member

/merge

@rapids-bot rapids-bot bot merged commit e9bee88 into rapidsai:branch-0.41 Oct 21, 2024
65 checks passed
@jakirkham jakirkham deleted the mark_noexcept_arr_cfuncs branch October 21, 2024 22:27
@jakirkham
Copy link
Member Author

Thanks Peter! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improves an existing functionality non-breaking Introduces a non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants