Skip to content

Commit 566bebd

Browse files
author
Victor Lomuller
committed
Address review comments
1 parent 9a1421c commit 566bebd

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed

sycl/include/sycl/detail/sycl_builtins.hpp renamed to sycl/include/sycl/detail/sycl_local_mem_builtins.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.

sycl/include/sycl/ext/oneapi/group_local_memory.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
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

sycl/include/sycl/ext/oneapi/properties/property.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
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

1515
namespace sycl {
@@ -32,7 +32,7 @@ inline void *get_work_group_scratch_memory() {
3232
struct 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

4242
using 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-
5044
namespace detail {
5145
template <> struct PropertyMetaInfo<work_group_scratch_size> {
5246
static constexpr const char *name = "sycl-work-group-static";

sycl/include/sycl/ext/oneapi/work_group_static.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

sycl/test/include_deps/sycl_detail_core.hpp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
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

0 commit comments

Comments
 (0)