Skip to content

Commit

Permalink
more GPU updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed May 7, 2024
1 parent 6362126 commit 2fb24f7
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Docs/source/gpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ value in the GPU kernel, the GPU gets access to the pointer to the
underlying data.


Most AMReX functions will work on the data directly on the GPU (like
``.setVal()``).

Most AMReX functions will work on the data directly on the GPU (like ``.setVal()``).

In rare instances where we might need to operate on the data on the host, we
can force a copy to the host, do the work, and then copy back.
In rare instances where we might need to operate on the data on the
host, we can force a copy to the host, do the work, and then copy
back. For an example, see the reduction done in ``Gravity.cpp``.

.. note::

For a thorough discussion of how the AMReX GPU offloading works
see :ref:`amrex-ecp`.


Runtime parameters
Expand Down
19 changes: 19 additions & 0 deletions Docs/source/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -1134,3 +1134,22 @@ @ARTICLE{doubledet2024
title = {Sensitivity of Simulations of Double-detonation Type Ia Supernovae to Integration Methodology},
journal = {The Astrophysical Journal},
}


@ARTICLE{amrex-ecp,
author = {{Myers}, Andrew and {Zhang}, Weiqun and {Almgren}, Ann and {Antoun}, Thierry and {Bell}, John and {Huebl}, Axel and {Sinn}, Alexander},
title = "{AMReX and pyAMReX: Looking Beyond ECP}",
journal = {arXiv e-prints},
keywords = {Computer Science - Distributed, Parallel, and Cluster Computing},
year = 2024,
month = mar,
eid = {arXiv:2403.12179},
pages = {arXiv:2403.12179},
doi = {10.48550/arXiv.2403.12179},
archivePrefix = {arXiv},
eprint = {2403.12179},
primaryClass = {cs.DC},
adsurl = {https://ui.adsabs.harvard.edu/abs/2024arXiv240312179M},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

0 comments on commit 2fb24f7

Please sign in to comment.