File tree Expand file tree Collapse file tree 6 files changed +13
-18
lines changed
Expand file tree Collapse file tree 6 files changed +13
-18
lines changed Original file line number Diff line number Diff line change 1- // ==---------------- sycl_builtins .hpp --- SYCL access --------------- ------==//
1+ // ==----- sycl_local_mem_builtins .hpp --- SYCL local memory builtins ------==//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
Original file line number Diff line number Diff line change 99
1010#include < sycl/access/access.hpp> // for address_space, decorated
1111#include < sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
12- #include < sycl/detail/sycl_builtins .hpp> // for __sycl_allocateLocalMemory
13- #include < sycl/detail/type_traits.hpp> // for is_group
14- #include < sycl/exception.hpp> // for exception
15- #include < sycl/ext/intel/usm_pointers.hpp> // for multi_ptr
16- #include < sycl/group.hpp> // for workGroupBarrier
12+ #include < sycl/detail/sycl_local_mem_builtins .hpp> // for __sycl_allocateLocalMemory
13+ #include < sycl/detail/type_traits.hpp> // for is_group
14+ #include < sycl/exception.hpp> // for exception
15+ #include < sycl/ext/intel/usm_pointers.hpp> // for multi_ptr
16+ #include < sycl/group.hpp> // for workGroupBarrier
1717
1818#include < type_traits> // for enable_if_t
1919
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ enum PropKind : uint32_t {
211211 Prefetch = 76 ,
212212 Deterministic = 77 ,
213213 InitializeToIdentity = 78 ,
214- WorkGroupStaticMem = 79 ,
214+ WorkGroupScratchSize = 79 ,
215215 // PropKindSize must always be the last value.
216216 PropKindSize = 80 ,
217217};
Original file line number Diff line number Diff line change 77// ===----------------------------------------------------------------------===//
88#pragma once
99
10- #include < sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11- #include < sycl/detail/sycl_builtins .hpp> // for __sycl_allocateLocalMemory
12- #include < sycl/exception.hpp> // for exception
10+ #include < sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11+ #include < sycl/detail/sycl_local_mem_builtins .hpp> // for __sycl_allocateLocalMemory
12+ #include < sycl/exception.hpp> // for exception
1313#include < sycl/ext/oneapi/properties/properties.hpp> // for properties
1414
1515namespace sycl {
@@ -32,7 +32,7 @@ inline void *get_work_group_scratch_memory() {
3232struct work_group_scratch_size
3333 : ::sycl::ext::oneapi::experimental::detail::run_time_property_key<
3434 work_group_scratch_size,
35- ::sycl::ext::oneapi::experimental::detail::WorkGroupStaticMem > {
35+ ::sycl::ext::oneapi::experimental::detail::PropKind::WorkGroupScratchSize > {
3636 // Runtime property part
3737 constexpr work_group_scratch_size (size_t bytes) : size(bytes) {}
3838
@@ -41,12 +41,6 @@ struct work_group_scratch_size
4141
4242using work_group_scratch_size_key = work_group_scratch_size;
4343
44- template <> struct is_property_key <work_group_scratch_size> : std::true_type {};
45-
46- template <>
47- struct is_property_value <work_group_scratch_size>
48- : is_property_key<work_group_scratch_size> {};
49-
5044namespace detail {
5145template <> struct PropertyMetaInfo <work_group_scratch_size> {
5246 static constexpr const char *name = " sycl-work-group-static" ;
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ template <typename T> class __SYCL_WG_SCOPE work_group_static final {
3434 std::is_trivially_destructible_v<T> &&
3535 std::is_trivially_constructible_v<T>,
3636 " Can only be used with trivially constructible and destructible types" );
37- static_assert (!std::is_const_v<T> || !std::is_volatile_v<T>,
37+ static_assert (!std::is_const_v<T> && !std::is_volatile_v<T>,
3838 " Can only be used with non const and non volatile types" );
3939 __SYCL_ALWAYS_INLINE work_group_static () = default;
4040 work_group_static (const work_group_static &) = delete ;
Original file line number Diff line number Diff line change 159159// CHECK-NEXT: ext/oneapi/experimental/virtual_functions.hpp
160160// CHECK-NEXT: ext/oneapi/kernel_properties/properties.hpp
161161// CHECK-NEXT: ext/oneapi/work_group_scratch_memory.hpp
162+ // CHECK-NEXT: detail/sycl_local_mem_builtins.hpp
162163// CHECK-NEXT: kernel.hpp
163164// CHECK-NEXT: kernel_bundle.hpp
164165// CHECK-NEXT: ext/oneapi/experimental/free_function_traits.hpp
You can’t perform that action at this time.
0 commit comments