Skip to content

PodVector_*.from_* NumPy/CuPy#556

Merged
ax3l merged 5 commits into
AMReX-Codes:developmentfrom
ax3l:topic-podvector-from
Jun 3, 2026
Merged

PodVector_*.from_* NumPy/CuPy#556
ax3l merged 5 commits into
AMReX-Codes:developmentfrom
ax3l:topic-podvector-from

Conversation

@ax3l

@ax3l ax3l commented Apr 5, 2026

Copy link
Copy Markdown
Member

Helpers to copy data directly from NumPy/CuPy to simplify user code, e.g., to add particles in AMReX codes.

@ax3l
ax3l requested review from EZoni, WeiqunZhang and atmyers April 5, 2026 22:51
@ax3l ax3l added the enhancement New feature or request label Apr 5, 2026
@ax3l
ax3l force-pushed the topic-podvector-from branch 3 times, most recently from d7be9ca to 14dfbbe Compare April 6, 2026 15:51
@ax3l
ax3l force-pushed the topic-podvector-from branch from 14dfbbe to d4aa27d Compare May 5, 2026 07:47
Comment thread tests/test_podvector.py Outdated
@ax3l
ax3l force-pushed the topic-podvector-from branch 2 times, most recently from 0f6fb3d to 1c58c50 Compare June 2, 2026 22:13
@ax3l

ax3l commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

Tested locally to run well on GPU :)

@ax3l
ax3l requested a review from EZoni June 2, 2026 22:19
ax3l added 4 commits June 2, 2026 15:56
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
ax3l force-pushed the topic-podvector-from branch 2 times, most recently from 3cb0a0d to b49bf06 Compare June 2, 2026 23:51
Mirror existing `to_host()`
@ax3l
ax3l force-pushed the topic-podvector-from branch from b49bf06 to 52b1f9b Compare June 2, 2026 23:57
@ax3l
ax3l merged commit ae826a6 into AMReX-Codes:development Jun 3, 2026
10 checks passed
@ax3l
ax3l deleted the topic-podvector-from branch June 3, 2026 00:11
This was referenced Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants