diff options
author | 2020-01-27 11:12:07 -0800 | |
---|---|---|
committer | 2020-01-27 11:12:07 -0800 | |
commit | df33d42347dc65c4cf9fb2072c296ff93be76622 (patch) | |
tree | 18f586b50a0d9cf02482adb38ff41ad08b9e53f8 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 1080fc43778ac92174a2ed94750a3b14673b14a3 (diff) | |
download | WarpX-df33d42347dc65c4cf9fb2072c296ff93be76622.tar.gz WarpX-df33d42347dc65c4cf9fb2072c296ff93be76622.tar.zst WarpX-df33d42347dc65c4cf9fb2072c296ff93be76622.zip |
GpuSynchronize() to prevent cudaStreams over-writing shared arrays for positions
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 7ac887b85..c0960b141 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1112,6 +1112,9 @@ PhysicalParticleContainer::FieldGather (int lev, costarr(i,j,k) += wt; }); } + // synchronize avoids cudaStreams from over-writing the temporary arrays used to + // store positions + Gpu::synchronize(); } } } |