Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Topic refactor cuda hip atomics #1768

Merged
Merged
7 changes: 7 additions & 0 deletions include/alpaka/atomic/AtomicOaccExtended.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,14 @@ namespace alpaka
{
auto& ref(*addr);
T old = ref;
# if defined(__GNUC__)
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wfloat-equal"
# endif
ref = (ref == compare ? value : ref);
# if defined(__GNUC__)
# pragma GCC diagnostic pop
# endif
return old;
},
atomic);
Expand Down
Loading