There was an error while loading. Please reload this page.
1 parent c7b6bde commit b9755a1Copy full SHA for b9755a1
1 file changed
src/kokkos/KokkosCore/AtomicPairCounter.h
@@ -9,7 +9,10 @@ namespace cms {
9
namespace kokkos {
10
class AtomicPairCounter {
11
public:
12
- using c_type = unsigned long long int;
+ // unsigned long long caused performance issue with Desul atomics in Kokkos 3.5
13
+ //using c_type = unsigned long long int;
14
+ using c_type = unsigned long int;
15
+ static_assert(sizeof(unsigned long int) == sizeof(unsigned long long int));
16
17
KOKKOS_INLINE_FUNCTION AtomicPairCounter() { counter.ac = 0; }
18
KOKKOS_INLINE_FUNCTION AtomicPairCounter(c_type i) { counter.ac = i; }
0 commit comments