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 of Array's nogil cdef functions as noexcept #502

Merged

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.

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 17, 2024 00:29
@jakirkham jakirkham changed the title Mark all nogil cdef functions as noexcept Mark all of Array's nogil cdef functions as noexcept Oct 17, 2024
@jakirkham jakirkham added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Oct 17, 2024
Copy link
Member

@madsbk madsbk 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, thanks @jakirkham

@jakirkham
Copy link
Member Author

Thanks Mads! 🙏

@jakirkham
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit f2a0567 into rapidsai:branch-24.12 Oct 21, 2024
54 checks passed
@jakirkham jakirkham deleted the mark_noexcept_arr_cfuncs branch October 21, 2024 18:39
rapids-bot bot pushed a commit to rapidsai/ucx-py that referenced this pull request Oct 21, 2024
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

Authors:
  - https://github.com/jakirkham

Approvers:
  - Peter Andreas Entschev (https://github.com/pentschev)

URL: #1085
rapids-bot bot pushed a commit to rapidsai/ucxx that referenced this pull request Oct 21, 2024
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

Authors:
  - https://github.com/jakirkham

Approvers:
  - Peter Andreas Entschev (https://github.com/pentschev)

URL: #306
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