Update Kokkos library in LAMMPS to v4.4.0

This commit is contained in:
Stan Moore
2024-09-11 09:20:36 -06:00
parent 16b19c71c1
commit a44955dd2e
254 changed files with 14227 additions and 9881 deletions

View File

@ -459,9 +459,11 @@ bool AtomicOperationsTestIntegralType(int old_val_in, int update_in, int test) {
case 12: return true;
#else
case 11:
return update_in >= 0 ? atomic_op_test<LShiftAtomicTest, T, ExecSpace>(
old_val, update)
: true;
return (std::make_signed_t<T>(update_in) >= 0 &&
std::make_signed_t<T>(old_val) >= 0)
? atomic_op_test<LShiftAtomicTest, T, ExecSpace>(old_val,
update)
: true;
case 12:
return update_in >= 0 ? atomic_op_test<RShiftAtomicTest, T, ExecSpace>(
old_val, update)