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

fix: add ROCm compatiblity to storages #1655

Merged
merged 11 commits into from
Sep 25, 2024

Conversation

egparedes
Copy link
Contributor

@egparedes egparedes commented Sep 20, 2024

Reimplement some cartesian storage utilities to handle better some corner cases with GPU storages, and to emulate the missing CUDA Array Interface in CuPy-ROCm. The previous hack to support CuPy-ROCm storages (__hip_array_interface__) has been removed and therefore it could be also removed from [GridTools-C++] (https://github.com/GridTools/gridtools/blob/master/include/gridtools/storage/adapter/python_sid_adapter.hpp) at some point.

@egparedes egparedes changed the title Fix storage module for ROCm compatiblity fix: add ROCm compatiblity to storages Sep 20, 2024
@egparedes egparedes marked this pull request as ready for review September 23, 2024 12:38
src/gt4py/storage/cartesian/utils.py Outdated Show resolved Hide resolved
@egparedes egparedes merged commit 1ccf8c4 into GridTools:main Sep 25, 2024
39 checks passed
egparedes added a commit that referenced this pull request Sep 25, 2024
Fix multiple bugs in the allocation of CuPy-ROCm storages introduced in
previous PR #1655 (#1655),
including an infinite recursion call in the main allocation function.

---------

Co-authored-by: Enrique Gonzalez Paredes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants