Skip to content

Commit

Permalink
Merge pull request #170 from eschnett/eschnett/gpu-sync
Browse files Browse the repository at this point in the history
CarpetX: Call `amrex::Gpu::streamSynchronizeAll` instead of `amrex::C…
  • Loading branch information
eschnett authored Jul 11, 2023
2 parents 2199e25 + 7767f8d commit 48c9a54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CarpetX/src/schedule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 48c9a54

Please sign in to comment.