Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Fix compilation of tests using printf extension. #1075

Merged
merged 2 commits into from
Jul 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions SYCL/DeviceLib/built-ins/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER

#include <CL/sycl.hpp>
#include <sycl/ext/oneapi/experimental/builtins.hpp>
#include <sycl/sycl.hpp>

#include <cstdint>
#include <iostream>

using namespace cl::sycl;
using namespace sycl;

// According to OpenCL C spec, the format string must be in constant address
// space
Expand Down
5 changes: 3 additions & 2 deletions SYCL/ESIMD/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@

#include "esimd_test_utils.hpp"

#include <CL/sycl.hpp>
#include <sycl/ext/intel/esimd.hpp>
#include <sycl/ext/oneapi/experimental/builtins.hpp>
#include <sycl/sycl.hpp>

#include <cstdint>
#include <iostream>

using namespace cl::sycl::ext;
using namespace sycl::ext;

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