PodVector_*.from_* NumPy/CuPy#556
Merged
Merged
Conversation
ax3l
force-pushed
the
topic-podvector-from
branch
3 times, most recently
from
April 6, 2026 15:51
d7be9ca to
14dfbbe
Compare
5 tasks
EZoni
reviewed
May 26, 2026
ax3l
force-pushed
the
topic-podvector-from
branch
2 times, most recently
from
June 2, 2026 22:13
0f6fb3d to
1c58c50
Compare
Member
Author
|
Tested locally to run well on GPU :) |
Helpers to copy data directly from `NumPy`/`CuPy` to simplify user code, e.g., to add particles in AMReX codes.
More portable to use pybind11 type and memory casting and AMReX copies, because it will also work w/o CuPy, e.g., on HIP and SYCL runs.
No need to wrap extra.
ax3l
force-pushed
the
topic-podvector-from
branch
2 times, most recently
from
June 2, 2026 23:51
3cb0a0d to
b49bf06
Compare
Mirror existing `to_host()`
ax3l
force-pushed
the
topic-podvector-from
branch
from
June 2, 2026 23:57
b49bf06 to
52b1f9b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Helpers to copy data directly from
NumPy/CuPyto simplify user code, e.g., to add particles in AMReX codes.amrex::Gpu::DeviceVectoret al. #545 for uniform test name?)