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 #1085

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.
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 fd87703 into rapidsai:branch-0.41 Oct 21, 2024
39 checks passed
@jakirkham jakirkham deleted the mark_noexcept_arr_cfuncs branch October 21, 2024 20:41
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants