Skip to content

Commit 6272def

Browse files
[NFCI][SYCL] Don't include <sycl/exception.hpp> in sycl/detail/array.hpp on device
1 parent b239891 commit 6272def

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

sycl/include/sycl/detail/array.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
#pragma once
1010

1111
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
12+
13+
#ifndef __SYCL_DEVICE_ONLY__
1214
#include <sycl/exception.hpp>
15+
#endif
1316

1417
#include <stddef.h> // for size_t
1518
#include <type_traits> // for enable_if_t

sycl/include/sycl/info/info_desc.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
namespace sycl {
3030
inline namespace _V1 {
3131

32+
class context;
3233
class device;
3334
class platform;
3435
class kernel_id;

sycl/test/include_deps/sycl_accessor.hpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
// CHECK-NEXT: backend_types.hpp
1212
// CHECK-NEXT: stl_wrappers/cstdlib
1313
// CHECK-NEXT: detail/array.hpp
14+
// CHECK-NEXT: detail/common.hpp
1415
// CHECK-NEXT: exception.hpp
1516
// CHECK-NEXT: detail/export.hpp
1617
// CHECK-NEXT: detail/string.hpp
17-
// CHECK-NEXT: detail/common.hpp
1818
// CHECK-NEXT: stl_wrappers/cassert
1919
// CHECK-NEXT: stl_wrappers/assert.h
2020
// CHECK-NEXT: __spirv/spirv_vars.hpp

sycl/test/include_deps/sycl_buffer.hpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
// CHECK-NEXT: backend_types.hpp
1111
// CHECK-NEXT: stl_wrappers/cstdlib
1212
// CHECK-NEXT: detail/array.hpp
13+
// CHECK-NEXT: detail/common.hpp
1314
// CHECK-NEXT: exception.hpp
1415
// CHECK-NEXT: detail/export.hpp
1516
// CHECK-NEXT: detail/string.hpp
16-
// CHECK-NEXT: detail/common.hpp
1717
// CHECK-NEXT: stl_wrappers/cassert
1818
// CHECK-NEXT: stl_wrappers/assert.h
1919
// CHECK-NEXT: __spirv/spirv_vars.hpp

sycl/test/include_deps/sycl_detail_core.hpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
// CHECK-NEXT: backend_types.hpp
1313
// CHECK-NEXT: stl_wrappers/cstdlib
1414
// CHECK-NEXT: detail/array.hpp
15+
// CHECK-NEXT: detail/common.hpp
1516
// CHECK-NEXT: exception.hpp
1617
// CHECK-NEXT: detail/export.hpp
1718
// CHECK-NEXT: detail/string.hpp
18-
// CHECK-NEXT: detail/common.hpp
1919
// CHECK-NEXT: stl_wrappers/cassert
2020
// CHECK-NEXT: stl_wrappers/assert.h
2121
// CHECK-NEXT: __spirv/spirv_vars.hpp

0 commit comments

Comments
 (0)