Skip to content

Commit

Permalink
Merge branch 'development' into more_riemann_cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Jun 24, 2024
2 parents e617039 + 9b7067f commit 51bd8c6
Show file tree
Hide file tree
Showing 9 changed files with 459 additions and 16 deletions.
14 changes: 13 additions & 1 deletion Docs/source/mpi_plus_x.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,19 @@ To enable this, compile with::
to the ``make`` line or ``GNUmakefile``.

.. note::

CUDA 11.2 and later can do link time optimization. This can
increase performance by 10-30% (depending on the application), but
may greatly increase the compilation time. This is disabled by
default. To enable link time optimization, add:

.. code::
CUDA_LTO=TRUE
to the ``make`` line of ``GNUmakefile``.

AMD GPUs
--------

Expand All @@ -123,4 +136,3 @@ Working at Supercomputing Centers
Our best practices for running any of the AMReX Astrophysics codes
at different supercomputing centers is produced in our workflow
documentation: https://amrex-astro.github.io/workflow/

4 changes: 2 additions & 2 deletions Exec/hydro_tests/gamma_law_bubble/Problem_Derive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ void ca_derpi(const Box& bx, FArrayBox& derfab, int dcomp, int /*ncomp*/,
eos_state.T = dat(i,j,k,UTEMP);
eos_state.e = dat(i,j,k,UEINT) * rhoInv;
for (int n = 0; n < NumSpec; n++) {
eos_state.xn[n] = dat(i,j,k,UFS+n) / dat(i,j,k,URHO);
eos_state.xn[n] = dat(i,j,k,UFS+n) * rhoInv;
}
#if NAUX_NET > 0
for (int n = 0; n < NumAux; n++) {
eos_state.aux[n] = dat(i,j,k,UFX+n) / dat(i,j,k,URHO);
eos_state.aux[n] = dat(i,j,k,UFX+n) * rhoInv;
}
#endif

Expand Down
10 changes: 10 additions & 0 deletions Exec/science/subch_planar/Problem_Derive.H
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

void ca_dergradpoverp
(const amrex::Box& bx, amrex::FArrayBox& derfab, int dcomp, int /*ncomp*/,
const amrex::FArrayBox& datfab, const amrex::Geometry& geomdata,
amrex::Real /*time*/, const int* /*bcrec*/, int /*level*/);

void ca_dergradpoverp1
(const amrex::Box& bx, amrex::FArrayBox& derfab, int dcomp, int /*ncomp*/,
const amrex::FArrayBox& datfab, const amrex::Geometry& geomdata,
amrex::Real /*time*/, const int* /*bcrec*/, int /*level*/);
Loading

0 comments on commit 51bd8c6

Please sign in to comment.