Skip to content

Commit

Permalink
Merge pull request #243 from eschnett/eschnett/managed
Browse files Browse the repository at this point in the history
CarpetX: Enable managed memory by default
  • Loading branch information
eschnett authored Oct 24, 2023
2 parents 4f8163c + e0dc624 commit 9122a5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CarpetX/src/driver.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2326,6 +2326,10 @@ void *SetupGH(tFleshConfig *fc, int convLevel, cGH *restrict cctkGH) {
// we get core files.
pp.add("amrex.throw_exception", 1);

// Enable managed memory (i.e. copy data automatically between accelerator and
// host)
pp.add("amrex.the_arena_is_managed", 1);

// Set blocking factors via parameter table since AmrMesh needs to
// know them when its constructor is running, but there are no
// constructor arguments for them
Expand Down

0 comments on commit 9122a5e

Please sign in to comment.