Skip to content

Commit bf6bbb1

Browse files
Add missing stream sync in Fields::Copy (#1379)
1 parent 7b30d39 commit bf6bbb1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/fields/Fields.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,9 @@ Fields::Copy (const int current_N_level, const int i_slice, FieldDiagnosticData&
624624
});
625625
}
626626
}
627+
628+
// sync before m_rel_z_vec is written to again by the next Copy
629+
amrex::Gpu::streamSynchronize();
627630
}
628631

629632
void

0 commit comments

Comments
 (0)