Skip to content

Commit

Permalink
CarpetX: Call amrex::Gpu::streamSynchronizeAll instead of `amrex::C…
Browse files Browse the repository at this point in the history
…pu::synchronize`
  • Loading branch information
eschnett committed Jul 11, 2023
1 parent 2199e25 commit 7767f8d
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 7767f8d

Please sign in to comment.