Skip to content

Commit

Permalink
Merge pull request SCOREC#122 from CKegel/atomic_warning_silence
Browse files Browse the repository at this point in the history
Use Kokkos `atomic_inc` in place of `atomic_increment`
  • Loading branch information
cwsmith authored Nov 20, 2024
2 parents e64bba9 + 45ac2a3 commit 94aa915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Omega_h_atomics.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ OMEGA_H_DEVICE int atomic_fetch_add(int* const dest, const int val) {

OMEGA_H_DEVICE void atomic_increment(int* const dest) {
#if defined(OMEGA_H_USE_KOKKOS)
Kokkos::atomic_increment(dest);
Kokkos::atomic_inc(dest);
#elif defined(OMEGA_H_USE_OPENMP) || defined(OMEGA_H_USE_CUDA)
atomic_fetch_add(dest, 1);
#else
Expand Down

0 comments on commit 94aa915

Please sign in to comment.