AMReX-Codes / pyamrex

GPU-Enabled, Zero-Copy AMReX Python Bindings including AI/ML
http://pyamrex.readthedocs.io
Other
32 stars 15 forks source link

`to_xp`: AoS, SoA, PODVector, MF, Array4 #289

Closed ax3l closed 2 months ago

ax3l commented 2 months ago

Add a to_xp() method that returns either NumPy or CuPy containers, depending on amr.Config.have_gpu, to all major AMReX data containers.

Close #216

To Do