Skip to content

Commit 53a9d54

Browse files
[SYCL] Minor fixes to device_global properties (#5778)
These changes includes device_global properties as part of sycl.hpp and fixes some minor oversights in the implementation. Signed-off-by: Steffen Larsen <[email protected]>
1 parent 62ca43a commit 53a9d54

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sycl/include/CL/sycl.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#if SYCL_EXT_ONEAPI_BACKEND_LEVEL_ZERO
6161
#include <sycl/ext/oneapi/backend/level_zero.hpp>
6262
#endif
63+
#include <sycl/ext/oneapi/device_global/properties.hpp>
6364
#include <sycl/ext/oneapi/experimental/builtins.hpp>
6465
#include <sycl/ext/oneapi/filter_selector.hpp>
6566
#include <sycl/ext/oneapi/group_algorithm.hpp>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#pragma once
10+
911
#include <sycl/ext/oneapi/properties/property.hpp>
12+
#include <sycl/ext/oneapi/properties/property_value.hpp>
1013

1114
__SYCL_INLINE_NAMESPACE(cl) {
1215
namespace sycl {
@@ -39,7 +42,7 @@ struct init_mode_key {
3942
struct implement_in_csr_key {
4043
template <bool Enable>
4144
using value_t =
42-
property_value<implement_in_csr_key, std::bool_constant<Enable>>;
45+
property_value<implement_in_csr_key, sycl::detail::bool_constant<Enable>>;
4346
};
4447

4548
inline constexpr device_image_scope_key::value_t device_image_scope;

0 commit comments

Comments
 (0)