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

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

Merged
merged 4 commits into from
May 2, 2024

Conversation

ax3l
Copy link
Member

@ax3l ax3l commented Apr 4, 2024

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

  • implement
  • update tests, disable default managed in tests
  • advertise prominently in zero-copy APIs and compute examples
  • run all tests on GPU (CUDA)

@ax3l ax3l added enhancement New feature or request backend: cuda Specific to CUDA execution (GPUs) labels Apr 4, 2024
@ax3l ax3l force-pushed the topic-to_xp branch 3 times, most recently from 38cdddb to 2a18a39 Compare May 2, 2024 00:04
@ax3l ax3l mentioned this pull request May 2, 2024
@ax3l ax3l added the backend: openmp Specific to OpenMP execution (CPUs) label May 2, 2024
ax3l added 4 commits May 1, 2024 18:04
Add a `to_xp()` method that returns either NumPy or CuPy
containers, depending on `amr.Config.have_gpu`, to all
major AMReX data containers.
@ax3l ax3l enabled auto-merge (squash) May 2, 2024 02:01
@ax3l ax3l merged commit 8911df2 into AMReX-Codes:development May 2, 2024
19 checks passed
@ax3l ax3l deleted the topic-to_xp branch May 2, 2024 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: cuda Specific to CUDA execution (GPUs) backend: openmp Specific to OpenMP execution (CPUs) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helper for numpy/cupy based on amr.Config
1 participant