Skip to content

Commit

Permalink
[SYCL] Support seq_cst memory order in atomic_ref for AMDGPU targets
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWeb committed Mar 7, 2024
1 parent 9fcb4c6 commit 48c0333
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sycl/include/sycl/atomic_ref.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ class atomic_ref_base {
detail::IsValidDefaultOrder<DefaultOrder>::value,
"Invalid default memory_order for atomics. Valid defaults are: "
"relaxed, acq_rel, seq_cst");
#ifdef __AMDGPU__
// FIXME should this query device's memory capabilities at runtime?
static_assert(DefaultOrder != sycl::memory_order::seq_cst,
"seq_cst memory order is not supported on AMDGPU");
#endif


public:
Expand Down

0 comments on commit 48c0333

Please sign in to comment.