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

chan_vese: pass all constants to _fused_variance_kernel2 as device scalars #764

Merged

Conversation

grlee77
Copy link
Contributor

@grlee77 grlee77 commented Aug 20, 2024

This change avoids an issue with an internal numpy.can_cast call in CuPy's kernel fusion code when using NumPy 2.0. With this change all cuCIM tests passed using NumPy 2.0.1 and the CuPy 13.3dev branch.

Fixes #742

* avoids an issue with an internal numpy.can_cast call in CuPy's kernel fusion code when using NumPy 2.0
@grlee77 grlee77 added bug Something isn't working non-breaking Introduces a non-breaking change labels Aug 20, 2024
@grlee77 grlee77 added this to the v24.10.00 milestone Aug 20, 2024
@grlee77 grlee77 requested review from gigony and jakirkham August 20, 2024 22:12
@grlee77 grlee77 self-assigned this Aug 20, 2024
@grlee77 grlee77 requested a review from a team as a code owner August 20, 2024 22:12
Copy link
Member

@jakirkham jakirkham left a comment

Choose a reason for hiding this comment

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

Thanks Greg! 🙏

Had a couple thoughts below

python/cucim/src/cucim/skimage/segmentation/_chan_vese.py Outdated Show resolved Hide resolved
python/cucim/src/cucim/skimage/segmentation/_chan_vese.py Outdated Show resolved Hide resolved
Co-authored-by: jakirkham <[email protected]>
@gigony
Copy link
Contributor

gigony commented Aug 21, 2024

Thanks @grlee77 It looks good to me!

@gigony
Copy link
Contributor

gigony commented Aug 21, 2024

/merge

@rapids-bot rapids-bot bot merged commit c004b6f into rapidsai:branch-24.10 Aug 22, 2024
37 checks passed
@jakirkham
Copy link
Member

Thanks Greg and Gigon! 🙏

@jakirkham jakirkham mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Introduces a non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Explore NumPy 2 compatibility
3 participants