File tree Expand file tree Collapse file tree 10 files changed +19
-14
lines changed
experimental/annotated_arg Expand file tree Collapse file tree 10 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 99#pragma once
1010
1111#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
12- #include < sycl/exception.hpp> // for sycl::exception, sycl::errc
12+ #ifndef __SYCL_DEVICE_ONLY__
13+ #include < sycl/exception.hpp>
14+ #endif
1315#endif // #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
1416#include < sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
1517#include < sycl/detail/export.hpp> // for __SYCL_EXPORT
@@ -159,8 +161,10 @@ class __SYCL_EXPORT tls_code_loc_t {
159161 // Should never be called. In PREVIEW we marked it as deleted, but
160162 // before ABI breaking change we need to keep it for backward compatibility.
161163 assert (false && " tls_code_loc_t should not be copied" );
164+ #ifndef __SYCL_DEVICE_ONLY__
162165 throw sycl::exception (sycl::make_error_code (sycl::errc::invalid),
163166 " tls_code_loc_t should not be copied" );
167+ #endif
164168 return *this ;
165169 }
166170#endif // __INTEL_PREVIEW_BREAKING_CHANGES
@@ -200,8 +204,6 @@ class __SYCL_EXPORT tls_code_loc_t {
200204 std::string (sycl::detail::get_backend_name_no_vendor(backend)) + \
201205 " backend failed with error: "
202206
203- #include < sycl/exception.hpp>
204-
205207namespace sycl {
206208inline namespace _V1 {
207209namespace detail {
Original file line number Diff line number Diff line change 1111#include < sycl/detail/cg_types.hpp>
1212#include < sycl/detail/compile_time_kernel_info.hpp>
1313#include < sycl/detail/helpers.hpp>
14+ #include < sycl/detail/is_device_copyable.hpp>
1415#include < sycl/ext/intel/experimental/fp_control_kernel_properties.hpp>
1516#include < sycl/ext/intel/experimental/kernel_execution_properties.hpp>
1617#include < sycl/ext/oneapi/experimental/virtual_functions.hpp>
Original file line number Diff line number Diff line change 99#pragma once
1010
1111#include < sycl/detail/defines.hpp>
12+ #include < sycl/detail/is_device_copyable.hpp>
1213#include < sycl/ext/intel/experimental/fpga_annotated_properties.hpp>
1314#include < sycl/ext/oneapi/experimental/annotated_ptr/annotated_ptr_properties.hpp>
1415#include < sycl/ext/oneapi/experimental/common_annotated_properties/properties.hpp>
Original file line number Diff line number Diff line change 88
99#pragma once
1010
11- #include < sycl/detail/is_device_copyable.hpp>
1211#include < sycl/detail/type_traits.hpp>
1312#include < sycl/ext/oneapi/properties/property.hpp> // for IsRuntimePr...
1413#include < sycl/ext/oneapi/properties/property_utils.hpp> // for Sorted, Mer...
Original file line number Diff line number Diff line change 88
99#pragma once
1010
11+ #ifndef __SYCL_DEVICE_ONLY__
1112#include < atomic> // for memory_order
12- #include < vector > // for vector
13+ #endif
1314
1415namespace sycl {
1516inline namespace _V1 {
Original file line number Diff line number Diff line change 1717#include < sycl/detail/helpers.hpp> // for getSPIRVMemorySemanticsMask
1818#include < sycl/detail/type_traits.hpp> // for is_bool, change_base_...
1919#include < sycl/device_event.hpp> // for device_event
20- #include < sycl/exception.hpp> // for make_error_code, errc, exce...
2120#include < sycl/group.hpp> // for group
2221#include < sycl/id.hpp> // for id
2322#include < sycl/item.hpp> // for item
Original file line number Diff line number Diff line change 1414#include < sycl/detail/fwd/multi_ptr.hpp>
1515#include < sycl/detail/generic_type_traits.hpp> // for select_cl_scalar_inte...
1616#include < sycl/detail/type_traits.hpp> // for is_scalar_arithmetic
17- #include < sycl/exception.hpp> // for exception, make_error...
1817#include < sycl/id.hpp> // for id
1918#include < sycl/memory_enums.hpp> // for memory_scope
2019#include < sycl/nd_item.hpp>
2120#include < sycl/range.hpp> // for range
2221
2322#include < stdint.h> // for uint32_t
24- #include < tuple> // for _Swallow_assign, ignore
2523#include < type_traits> // for enable_if_t, remove_cv_t
2624
25+ #ifndef __SYCL_DEVICE_ONLY__
26+ #include < sycl/exception.hpp> // for exception, make_error...
27+ #endif
28+
2729namespace sycl {
2830inline namespace _V1 {
2931namespace detail {
Original file line number Diff line number Diff line change 1212// CHECK-NEXT: stl_wrappers/cstdlib
1313// CHECK-NEXT: detail/array.hpp
1414// CHECK-NEXT: detail/common.hpp
15- // CHECK-NEXT: exception.hpp
1615// CHECK-NEXT: detail/export.hpp
17- // CHECK-NEXT: detail/string.hpp
1816// CHECK-NEXT: stl_wrappers/cassert
1917// CHECK-NEXT: stl_wrappers/assert.h
2018// CHECK-NEXT: __spirv/spirv_vars.hpp
3533// CHECK-NEXT: detail/os_util.hpp
3634// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp
3735// CHECK-NEXT: detail/property_list_base.hpp
36+ // CHECK-NEXT: exception.hpp
37+ // CHECK-NEXT: detail/string.hpp
3838// CHECK-NEXT: property_list.hpp
3939// CHECK-NEXT: properties/property_traits.hpp
4040// CHECK-NEXT: id.hpp
Original file line number Diff line number Diff line change 1111// CHECK-NEXT: stl_wrappers/cstdlib
1212// CHECK-NEXT: detail/array.hpp
1313// CHECK-NEXT: detail/common.hpp
14- // CHECK-NEXT: exception.hpp
1514// CHECK-NEXT: detail/export.hpp
16- // CHECK-NEXT: detail/string.hpp
1715// CHECK-NEXT: stl_wrappers/cassert
1816// CHECK-NEXT: stl_wrappers/assert.h
1917// CHECK-NEXT: __spirv/spirv_vars.hpp
3432// CHECK-NEXT: detail/os_util.hpp
3533// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp
3634// CHECK-NEXT: detail/property_list_base.hpp
35+ // CHECK-NEXT: exception.hpp
36+ // CHECK-NEXT: detail/string.hpp
3737// CHECK-NEXT: property_list.hpp
3838// CHECK-NEXT: properties/property_traits.hpp
3939// CHECK-NEXT: id.hpp
Original file line number Diff line number Diff line change 1313// CHECK-NEXT: stl_wrappers/cstdlib
1414// CHECK-NEXT: detail/array.hpp
1515// CHECK-NEXT: detail/common.hpp
16- // CHECK-NEXT: exception.hpp
1716// CHECK-NEXT: detail/export.hpp
18- // CHECK-NEXT: detail/string.hpp
1917// CHECK-NEXT: stl_wrappers/cassert
2018// CHECK-NEXT: stl_wrappers/assert.h
2119// CHECK-NEXT: __spirv/spirv_vars.hpp
3634// CHECK-NEXT: detail/os_util.hpp
3735// CHECK-NEXT: ext/oneapi/accessor_property_list.hpp
3836// CHECK-NEXT: detail/property_list_base.hpp
37+ // CHECK-NEXT: exception.hpp
38+ // CHECK-NEXT: detail/string.hpp
3939// CHECK-NEXT: property_list.hpp
4040// CHECK-NEXT: properties/property_traits.hpp
4141// CHECK-NEXT: id.hpp
You can’t perform that action at this time.
0 commit comments