Skip to content

Commit a1bc105

Browse files
committed
[SYCL] Guard defines_elementary include and fix e2e test build flag
1 parent 12fed6f commit a1bc105

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

sycl/include/sycl/info/context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#pragma once
1010

11-
#include <sycl/detail/defines_elementary.hpp>
1211
#include <sycl/detail/info_desc_traits.hpp>
1312
#include <unified-runtime/ur_api.h>
1413

@@ -33,6 +32,7 @@ using context_runtime_traits =
3332
sycl::detail::rt_traits_base<sycl::detail::info_class::context>;
3433

3534
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
35+
#include <sycl/detail/defines_elementary.hpp>
3636
struct __SYCL_DEPRECATED("info::context::reference_count is not part of "
3737
"SYCL 2020") reference_count
3838
: context_traits<UR_CONTEXT_INFO_REFERENCE_COUNT> {

sycl/include/sycl/info/event.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#pragma once
1010

11-
#include <sycl/detail/defines_elementary.hpp>
1211
#include <sycl/detail/info_desc_traits.hpp>
1312
#include <unified-runtime/ur_api.h>
1413

@@ -38,6 +37,7 @@ struct command_execution_status
3837
using return_type = info::event_command_status;
3938
};
4039
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
40+
#include <sycl/detail/defines_elementary.hpp>
4141
struct __SYCL_DEPRECATED("info::event::reference_count is not part of "
4242
"SYCL 2020") reference_count
4343
: event_traits<UR_EVENT_INFO_REFERENCE_COUNT> {

sycl/include/sycl/info/kernel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#pragma once
1010

11-
#include <sycl/detail/defines_elementary.hpp>
1211
#include <sycl/detail/info_desc_traits.hpp>
1312
#include <sycl/range.hpp>
1413
#include <unified-runtime/ur_api.h>
@@ -40,6 +39,7 @@ struct function_name : kernel_traits<UR_KERNEL_INFO_FUNCTION_NAME> {
4039
using return_type = std::string;
4140
};
4241
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
42+
#include <sycl/detail/defines_elementary.hpp>
4343
struct __SYCL_DEPRECATED("info::kernel::reference_count is not part of "
4444
"SYCL 2020") reference_count
4545
: kernel_traits<UR_KERNEL_INFO_REFERENCE_COUNT> {

sycl/include/sycl/info/queue.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
#pragma once
1010

11-
#include <sycl/detail/defines_elementary.hpp>
1211
#include <sycl/detail/info_desc_traits.hpp>
1312
#include <unified-runtime/ur_api.h>
1413

@@ -34,6 +33,7 @@ struct device : queue_traits<UR_QUEUE_INFO_DEVICE> {
3433
using return_type = sycl::device;
3534
};
3635
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
36+
#include <sycl/detail/defines_elementary.hpp>
3737
struct __SYCL_DEPRECATED("info::queue::reference_count is not part of "
3838
"SYCL 2020") reference_count
3939
: queue_traits<UR_QUEUE_INFO_REFERENCE_COUNT> {

sycl/test-e2e/DeprecatedFeatures/reference_count.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// UNSUPPORTED: preview-mode
22
// UNSUPPORTED-INTENDED: reference_count is unavailable in preview mode.
3-
// RUN: %{build} -o %t.out
3+
// RUN: %{build} -fsyntax-only
44

55
//==---------- reference_count.cpp - Deprecated info test ------------------==//
66
//

0 commit comments

Comments
 (0)