From 7767f8d308dd1f15f8a3cea831df0638b0b6639c Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Tue, 11 Jul 2023 13:35:11 -0400 Subject: [PATCH] CarpetX: Call `amrex::Gpu::streamSynchronizeAll` instead of `amrex::Cpu::synchronize` --- CarpetX/src/schedule.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CarpetX/src/schedule.cxx b/CarpetX/src/schedule.cxx index 60478d185..6c12b2ab1 100644 --- a/CarpetX/src/schedule.cxx +++ b/CarpetX/src/schedule.cxx @@ -841,9 +841,7 @@ void loop_over_blocks( void synchronize() { #ifdef AMREX_USE_GPU // TODO: Synchronize only if GPU kernels were actually launched - // TODO: Switch to streamSynchronizeAll if AMReX is new enough - amrex::Gpu::synchronize(); - // amrex::Gpu::streamSynchronizeAll(); + amrex::Gpu::streamSynchronizeAll(); AMREX_GPU_ERROR_CHECK(); #endif }