Skip to content

Commit 26810d6

Browse files
authored
Merge pull request #2082 from sdouglas/trunk-patch
Patch FIRE GPU minimizer to prevent conflicts
2 parents f7618bf + 6e3e890 commit 26810d6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

hoomd/md/FIREEnergyMinimizerGPU.cc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,13 @@ void FIREEnergyMinimizerGPU::update(uint64_t timestep)
206206
CHECK_CUDA_ERROR();
207207
}
208208

209-
ArrayHandle<Scalar> h_sum(m_sum3, access_location::host, access_mode::read);
210-
Pt += h_sum.data[0];
211-
vnorm += h_sum.data[1];
212-
fnorm += h_sum.data[2];
209+
// Ensure h_sum goes out of scope before anisotropic block
210+
{
211+
ArrayHandle<Scalar> h_sum(m_sum3, access_location::host, access_mode::read);
212+
Pt += h_sum.data[0];
213+
vnorm += h_sum.data[1];
214+
fnorm += h_sum.data[2];
215+
}
213216

214217
if ((*method)->getAnisotropic())
215218
{

sphinx-doc/credits.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ The following people have contributed to HOOMD-blue:
111111
* Sam Nola, University of Michigan
112112
* Simone Ciarella, Eindhoven University of Technology
113113
* Shannon Moran, University of Michigan
114+
* Shawn Douglas, University of California, San Francisco
114115
* Sophie YouJung Lee, University of Michigan
115116
* Stephen Thomas, Boise State University
116117
* Steve Barr, Princeton University

0 commit comments

Comments
 (0)