Update Kokkos library in LAMMPS to v4.2
This commit is contained in:
@ -956,6 +956,8 @@ class Random_XorShift64_Pool {
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
void free_state(const Random_XorShift64<DeviceType>& state) const {
|
||||
state_(state.state_idx_, 0) = state.state_;
|
||||
// Release the lock only after the state has been updated in memory
|
||||
Kokkos::memory_fence();
|
||||
locks_(state.state_idx_, 0) = 0;
|
||||
}
|
||||
};
|
||||
@ -1208,7 +1210,9 @@ class Random_XorShift1024_Pool {
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
void free_state(const Random_XorShift1024<DeviceType>& state) const {
|
||||
for (int i = 0; i < 16; i++) state_(state.state_idx_, i) = state.state_[i];
|
||||
p_(state.state_idx_, 0) = state.p_;
|
||||
p_(state.state_idx_, 0) = state.p_;
|
||||
// Release the lock only after the state has been updated in memory
|
||||
Kokkos::memory_fence();
|
||||
locks_(state.state_idx_, 0) = 0;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user