Skip to content

Commit f0c1e7c

Browse files
authored
Fix compilation of tests using printf extension. (intel/llvm-test-suite#1075)
intel@2e1c36f mandates to include a non-standard header.
1 parent d1a9f42 commit f0c1e7c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

SYCL/DeviceLib/built-ins/printf.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
88
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
99

10-
#include <CL/sycl.hpp>
10+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
11+
#include <sycl/sycl.hpp>
1112

1213
#include <cstdint>
1314
#include <iostream>
1415

15-
using namespace cl::sycl;
16+
using namespace sycl;
1617

1718
// According to OpenCL C spec, the format string must be in constant address
1819
// space

SYCL/ESIMD/printf.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020

2121
#include "esimd_test_utils.hpp"
2222

23-
#include <CL/sycl.hpp>
2423
#include <sycl/ext/intel/esimd.hpp>
24+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
25+
#include <sycl/sycl.hpp>
2526

2627
#include <cstdint>
2728
#include <iostream>
2829

29-
using namespace cl::sycl::ext;
30+
using namespace sycl::ext;
3031

3132
// According to OpenCL C spec, the format string must be in constant address
3233
// space

0 commit comments

Comments
 (0)