From e0dc6241d16220dffb2826cbbd72d1376529b604 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 24 Oct 2023 09:02:30 -0400 Subject: [PATCH] CarpetX: Enable managed memory by default --- CarpetX/src/driver.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CarpetX/src/driver.cxx b/CarpetX/src/driver.cxx index 313d5a88f..126af6ec3 100644 --- a/CarpetX/src/driver.cxx +++ b/CarpetX/src/driver.cxx @@ -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