Skip to content

Commit 375e733

Browse files
committed
Signed-off-by: Ci Tian <[email protected]>
add backwards compatibility with the beta09 compiler
1 parent 54f8eb6 commit 375e733

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

DirectProgramming/DPC++FPGA/Tutorials/Features/max_interleaving/src/max_interleaving.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,22 @@
44
// SPDX-License-Identifier: MIT
55
// =============================================================
66
#include <CL/sycl.hpp>
7-
#include <CL/sycl/INTEL/fpga_extensions.hpp>
87
#include <array>
98
#include <iomanip>
109
#include <iostream>
11-
1210
#include "dpc_common.hpp"
1311

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+
1423
using namespace sycl;
1524

1625
constexpr size_t kSize = 8;

0 commit comments

Comments
 (0)