diff --git a/sycl/include/sycl/detail/defines_elementary.hpp b/sycl/include/sycl/detail/defines_elementary.hpp index 17107c9216b38..9d98f3b063266 100644 --- a/sycl/include/sycl/detail/defines_elementary.hpp +++ b/sycl/include/sycl/detail/defines_elementary.hpp @@ -57,8 +57,7 @@ #endif // __SYCL_DEPRECATED #ifndef __SYCL2020_DEPRECATED -#if SYCL_LANGUAGE_VERSION == 202012L && \ - !defined(SYCL2020_DISABLE_DEPRECATION_WARNINGS) +#if !defined(SYCL2020_DISABLE_DEPRECATION_WARNINGS) #define __SYCL2020_DEPRECATED(message) __SYCL_DEPRECATED(message) #else #define __SYCL2020_DEPRECATED(message) diff --git a/sycl/include/sycl/handler.hpp b/sycl/include/sycl/handler.hpp index e487a1826b982..9189a2cfab9f2 100644 --- a/sycl/include/sycl/handler.hpp +++ b/sycl/include/sycl/handler.hpp @@ -1194,8 +1194,7 @@ class __SYCL_EXPORT handler { // Range rounding is supported only for newer SYCL standards. #if !defined(__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__) && \ !defined(DPCPP_HOST_DEVICE_OPENMP) && \ - !defined(DPCPP_HOST_DEVICE_PERF_NATIVE) && \ - SYCL_LANGUAGE_VERSION >= 202012L + !defined(DPCPP_HOST_DEVICE_PERF_NATIVE) auto [RoundedRange, HasRoundedRange] = getRoundedRange(UserRange); if (HasRoundedRange) { using NameWT = typename detail::get_kernel_wrapper_name_t::name; @@ -1224,8 +1223,7 @@ class __SYCL_EXPORT handler { #endif } else #endif // !__SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING__ && - // !DPCPP_HOST_DEVICE_OPENMP && !DPCPP_HOST_DEVICE_PERF_NATIVE && - // SYCL_LANGUAGE_VERSION >= 202012L + // !DPCPP_HOST_DEVICE_OPENMP && !DPCPP_HOST_DEVICE_PERF_NATIVE { (void)UserRange; (void)Props; @@ -1838,11 +1836,8 @@ class __SYCL_EXPORT handler { template struct ShouldEnableSetArg { static constexpr bool value = - std::is_trivially_copyable_v> -#if SYCL_LANGUAGE_VERSION && SYCL_LANGUAGE_VERSION <= 201707 - && std::is_standard_layout>::value -#endif - || is_same_type::value // Sampler + std::is_trivially_copyable_v> || + is_same_type::value // Sampler || (!is_same_type::value && std::is_pointer_v>) // USM || is_same_type::value; // Interop diff --git a/sycl/test/basic_tests/set_arg_error.cpp b/sycl/test/basic_tests/set_arg_error.cpp index 5febdede1533b..371d6d9cdc08e 100644 --- a/sycl/test/basic_tests/set_arg_error.cpp +++ b/sycl/test/basic_tests/set_arg_error.cpp @@ -50,12 +50,5 @@ int main() { 5, ntc); h.set_arg( // expected-error {{no matching member function for call to 'set_arg'}} 4, NonTriviallyCopyable{}); -#if SYCL_LANGUAGE_VERSION && SYCL_LANGUAGE_VERSION <= 201707 - NonStdLayout nstd; - h.set_arg( // expected-error {{no matching member function for call to 'set_arg'}} - 6, nstd); - h.set_arg( // expected-error {{no matching member function for call to 'set_arg'}} - 7, NonStdLayout{}); -#endif }); }