File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
DirectProgramming/DPC++FPGA/Tutorials/Features/max_interleaving/src Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 4
4
// SPDX-License-Identifier: MIT
5
5
// =============================================================
6
6
#include < CL/sycl.hpp>
7
- #include < CL/sycl/INTEL/fpga_extensions.hpp>
8
7
#include < array>
9
8
#include < iomanip>
10
9
#include < iostream>
11
-
12
10
#include " dpc_common.hpp"
13
11
12
+ // Header locations and some DPC++ extensions changed between beta09 and beta10
13
+ // Temporarily modify the code sample to accept either version
14
+ #include < CL/sycl.hpp>
15
+ #define BETA09 20200827
16
+ #if __SYCL_COMPILER_VERSION <= BETA09
17
+ #include < CL/sycl/intel/fpga_extensions.hpp>
18
+ namespace INTEL = sycl::intel; // Namespace alias for backward compatibility
19
+ #else
20
+ #include < CL/sycl/INTEL/fpga_extensions.hpp>
21
+ #endif
22
+
14
23
using namespace sycl ;
15
24
16
25
constexpr size_t kSize = 8 ;
You can’t perform that action at this time.
0 commit comments