Skip to content

Commit b20a88f

Browse files
committed
[SYCL][NFC] Drop platform.hpp includes
1 parent 73ff319 commit b20a88f

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

sycl/include/sycl/context.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <sycl/detail/export.hpp> // for __SYCL_EXPORT
1515
#include <sycl/detail/info_desc_helpers.hpp> // for is_context_info_desc
1616
#include <sycl/detail/owner_less_base.hpp> // for OwnerLessBase
17-
#include <sycl/platform.hpp> // for platform
1817
#include <sycl/property_list.hpp> // for property_list
1918
#include <sycl/usm/usm_enums.hpp> // for usm::alloc
2019
#include <ur_api.h> // for ur_native_handle_t

sycl/include/sycl/ext/oneapi/owner_less.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <sycl/ext/oneapi/weak_object.hpp> // for weak_object
1919
#include <sycl/kernel.hpp> // for kernel
2020
#include <sycl/kernel_bundle_enums.hpp> // for bundle_state
21-
#include <sycl/platform.hpp> // for platform
2221
#include <sycl/properties/image_properties.hpp> // for sampled_i...
2322
#include <sycl/queue.hpp> // for queue
2423
#include <sycl/stream.hpp> // for stream
@@ -28,6 +27,7 @@ inline namespace _V1 {
2827
class kernel_id;
2928
template <bundle_state State> class kernel_bundle;
3029
template <bundle_state State> class device_image;
30+
class platform;
3131

3232
namespace ext::oneapi {
3333

sycl/source/detail/device_impl.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <sycl/ext/oneapi/experimental/device_architecture.hpp>
1717
#include <sycl/ext/oneapi/experimental/forward_progress.hpp>
1818
#include <sycl/kernel_bundle.hpp>
19+
#include <sycl/platform.hpp>
1920

2021
#include <memory>
2122
#include <mutex>
@@ -25,9 +26,6 @@
2526
namespace sycl {
2627
inline namespace _V1 {
2728

28-
// Forward declaration
29-
class platform;
30-
3129
namespace detail {
3230

3331
// Note that UR's enums have weird *_FORCE_UINT32 values, we ignore them in the

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ class kernel_bundle_impl {
681681
bool empty() const noexcept { return MDeviceImages.empty(); }
682682

683683
backend get_backend() const noexcept {
684-
return MContext.get_platform().get_backend();
684+
return MContext.get_backend();
685685
}
686686

687687
context get_context() const noexcept { return MContext; }

sycl/test/include_deps/sycl_accessor.hpp.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@
8282
// CHECK-NEXT: info/ext_oneapi_device_traits.def
8383
// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def
8484
// CHECK-NEXT: info/sycl_backend_traits.def
85-
// CHECK-NEXT: platform.hpp
86-
// CHECK-NEXT: detail/string_view.hpp
87-
// CHECK-NEXT: detail/util.hpp
88-
// CHECK-NEXT: device_selector.hpp
8985
// CHECK-NEXT: usm/usm_enums.hpp
9086
// CHECK-NEXT: properties/buffer_properties.def
9187
// CHECK-EMPTY:

sycl/test/include_deps/sycl_detail_core.hpp.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@
8383
// CHECK-NEXT: info/ext_oneapi_device_traits.def
8484
// CHECK-NEXT: info/ext_oneapi_kernel_queue_specific_traits.def
8585
// CHECK-NEXT: info/sycl_backend_traits.def
86-
// CHECK-NEXT: platform.hpp
87-
// CHECK-NEXT: detail/string_view.hpp
88-
// CHECK-NEXT: detail/util.hpp
89-
// CHECK-NEXT: device_selector.hpp
9086
// CHECK-NEXT: usm/usm_enums.hpp
9187
// CHECK-NEXT: properties/buffer_properties.def
9288
// CHECK-NEXT: queue.hpp
@@ -104,6 +100,9 @@
104100
// CHECK-NEXT: nd_range.hpp
105101
// CHECK-NEXT: detail/optional.hpp
106102
// CHECK-NEXT: device.hpp
103+
// CHECK-NEXT: detail/string_view.hpp
104+
// CHECK-NEXT: detail/util.hpp
105+
// CHECK-NEXT: device_selector.hpp
107106
// CHECK-NEXT: kernel_bundle_enums.hpp
108107
// CHECK-NEXT: event.hpp
109108
// CHECK-NEXT: exception_list.hpp

sycl/test/warnings/deprecated_get_backend_info.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include <iostream>
33
#include <sycl/detail/core.hpp>
44
#include <sycl/kernel_bundle.hpp>
5+
#include <sycl/platform.hpp>
56

67
using namespace sycl;
78

0 commit comments

Comments
 (0)