From 2fb24f7feb31266bebf78f84553b070548ce2db2 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Tue, 7 May 2024 09:47:32 -0400 Subject: [PATCH] more GPU updates --- Docs/source/gpu.rst | 12 ++++++++---- Docs/source/refs.bib | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/Docs/source/gpu.rst b/Docs/source/gpu.rst index 4929af5e43..6da7c59a40 100644 --- a/Docs/source/gpu.rst +++ b/Docs/source/gpu.rst @@ -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 diff --git a/Docs/source/refs.bib b/Docs/source/refs.bib index 5c1d27b24a..fa6f036a03 100644 --- a/Docs/source/refs.bib +++ b/Docs/source/refs.bib @@ -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} +} +