Skip to content

Commit d866c24

Browse files
authored
[SYCL][NFC] Resolve cyclic dependency in headers (#5419)
This change breaks sycl.hpp <- fpga_device_selector.hpp <- sycl.hpp cycle of includes.
1 parent 54be90a commit d866c24

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

sycl/include/sycl/ext/intel/fpga_device_selector.hpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@
88

99
#pragma once
1010

11-
#include <CL/sycl.hpp>
11+
#include <CL/sycl/device.hpp>
12+
#include <CL/sycl/device_selector.hpp>
13+
14+
#include <string>
1215

1316
__SYCL_INLINE_NAMESPACE(cl) {
1417
namespace sycl {
18+
19+
// Forward declaration
20+
class platform;
21+
1522
namespace ext {
1623
namespace intel {
1724

0 commit comments

Comments
 (0)