Skip to content

Commit

Permalink
Try to fix compilation error with Intel 2024.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornung67 committed Jul 18, 2024
1 parent 0633e29 commit 6060160
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/RAJA/policy/openmp/atomic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ RAJA_INLINE T atomicMin(omp_atomic, T *acc, T value)
#pragma omp atomic capture compare
{
old = *acc;
*acc = value < *acc ? value : *acc;
if ( value < *acc )
{
*acc = value;
}
}
return old;
#else
Expand All @@ -120,7 +123,10 @@ RAJA_INLINE T atomicMax(omp_atomic, T *acc, T value)
#pragma omp atomic capture compare
{
old = *acc;
*acc = *acc < value ? value : *acc;
if ( value > *acc )
{
*acc = value;
}
}
return old;
#else
Expand Down

0 comments on commit 6060160

Please sign in to comment.