From 48c0333f603e5e0b43d8500a89a68855d85b5f57 Mon Sep 17 00:00:00 2001 From: Georgi Mirazchiyski Date: Thu, 7 Mar 2024 12:26:09 +0000 Subject: [PATCH] [SYCL] Support seq_cst memory order in atomic_ref for AMDGPU targets --- sycl/include/sycl/atomic_ref.hpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sycl/include/sycl/atomic_ref.hpp b/sycl/include/sycl/atomic_ref.hpp index 5c163cd5fe8e2..58a7449487ae1 100644 --- a/sycl/include/sycl/atomic_ref.hpp +++ b/sycl/include/sycl/atomic_ref.hpp @@ -126,11 +126,6 @@ class atomic_ref_base { detail::IsValidDefaultOrder::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: