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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support NumPy 2.0 #8306

Open
Tracked by #8269
kmaehashi opened this issue Apr 24, 2024 · 3 comments
Open
Tracked by #8269

Support NumPy 2.0 #8306

kmaehashi opened this issue Apr 24, 2024 · 3 comments
Labels
cat:numpy-compat Follow the NumPy/SciPy spec changes no-compat Disrupts backward compatibility prio:medium
Milestone

Comments

@kmaehashi
Copy link
Member

Make CuPy APIs compatible with NumPy 2.0 馃殌 Ref: #8269

Major tasks include:

  • New Type Promotion Rules for Python scalars (NEP 50)
  • Python API Cleanup for NumPy 2.0 (NEP 52)
  • Adopting Array API Compatibility in the main NumPy namespace (NEP 56)
@kmaehashi kmaehashi added the no-compat Disrupts backward compatibility label Apr 24, 2024
@asi1024 asi1024 added cat:numpy-compat Follow the NumPy/SciPy spec changes prio:medium and removed no-compat Disrupts backward compatibility labels Apr 24, 2024
@kmaehashi kmaehashi added the no-compat Disrupts backward compatibility label Apr 24, 2024
@rgommers
Copy link
Contributor

Just to make sure: the plan is for 14.0.0 to completely match NumPy 2.0? Which probably means only testing against NumPy 2.0 in all CI, since there is no way to match 2.0 and 1.26 at the same time?

@kmaehashi
Copy link
Member Author

Yes, our current plan is to match CuPy v14 API with NumPy 2.0, and only test against NumPy 2.0+.

@leofang leofang added this to the v14 milestone Apr 29, 2024
@ev-br
Copy link
Contributor

ev-br commented Apr 30, 2024

I'm going to work towards this, starting with the python api, NEP 52.

@ev-br ev-br mentioned this issue May 16, 2024
seberg added a commit to seberg/cupy-feedstock that referenced this issue May 23, 2024
This (tries to) build artifacts based on Evgeni's PR to CuPy which should
have most fixes needed to run with NumPy 2 and thus allow testing downstream
projects with NumPy 2 if they also need CuPy.

This includes most/all necessary Python fixes as well as fixes to make
promotion align with NumPy (NEP 50).

See also:
* cupy/cupy#8323
* cupy/cupy#8314
* cupy/cupy#8306
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:numpy-compat Follow the NumPy/SciPy spec changes no-compat Disrupts backward compatibility prio:medium
Projects
None yet
Development

No branches or pull requests

5 participants