diff options
author | 2020-01-27 13:07:29 -0800 | |
---|---|---|
committer | 2020-01-27 13:07:29 -0800 | |
commit | 6a06d68c805e81e7f942716c07873d07f9b668e7 (patch) | |
tree | 52f9d2b0bfabe1174b5c96410da8cd7588174cfd /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 1080fc43778ac92174a2ed94750a3b14673b14a3 (diff) | |
parent | 4cca65a294c9a4e53c378c551d31c64d8ca4f135 (diff) | |
download | WarpX-6a06d68c805e81e7f942716c07873d07f9b668e7.tar.gz WarpX-6a06d68c805e81e7f942716c07873d07f9b668e7.tar.zst WarpX-6a06d68c805e81e7f942716c07873d07f9b668e7.zip |
Merge pull request #662 from RevathiJambunathan/GpuSynchronize
Call GpuSynchronize() to temporarily fix gpu bug
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..d437a5b61 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(); } } } |