We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
amr.Config
Let's add a helper for this pattern:
field_list = mfab.to_cupy() if Config.have_gpu else mfab.to_numpy() for pti in pc.iterator(pc, level=0): soa = pti.soa().to_cupy() if Config.have_gpu else pti.soa().to_numpy()
or this https://github.com/AMReX-Codes/amrex-tutorials/blob/58fff188ab8963702db208ac6ff0bd47188ceeaa/GuidedTutorials/HeatEquation/Source/main.py#L14-L33
To simplify writing host-device agnostic Python code like this: https://docs.cupy.dev/en/stable/user_guide/basic.html#how-to-write-cpu-gpu-agnostic-code
Maybe we can add
field_list = mfab.to_xp() for pti in pc.iterator(pc, level=0): soa = pti.soa().to_xp()
The text was updated successfully, but these errors were encountered:
to_xp
Feature will land via #289
Sorry, something went wrong.
ax3l
Successfully merging a pull request may close this issue.
Let's add a helper for this pattern:
or this
https://github.com/AMReX-Codes/amrex-tutorials/blob/58fff188ab8963702db208ac6ff0bd47188ceeaa/GuidedTutorials/HeatEquation/Source/main.py#L14-L33
To simplify writing host-device agnostic Python code like this:
https://docs.cupy.dev/en/stable/user_guide/basic.html#how-to-write-cpu-gpu-agnostic-code
Maybe we can add
The text was updated successfully, but these errors were encountered: