Skip to content

Commit

Permalink
include CL/sycl.hpp -> include sycl/sycl.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk committed Oct 14, 2023
1 parent af0c737 commit 71b85ab
Show file tree
Hide file tree
Showing 33 changed files with 35 additions and 43 deletions.
2 changes: 1 addition & 1 deletion libsyclinterface/helper/include/dpctl_error_handlers.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "Support/DllExport.h"
#include "dpctl_error_handler_type.h"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>

/*!
* @brief Functor class used by DPCTL to handle SYCL asynchronous errors.
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/helper/include/dpctl_utils_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "Support/DllExport.h"
#include "dpctl_sycl_enum_types.h"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>

/*!
* @brief Converts a sycl::info::device_type input value to a string.
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/include/dpctl_device_selection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#pragma once

#include "Support/DllExport.h"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>

namespace dpctl
{
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/include/dpctl_sycl_type_casters.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "dpctl_device_selection.hpp"
#include "dpctl_sycl_types.h"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>
#include <vector>

namespace dpctl::syclinterface
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_device_selection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include "dpctl_device_selection.hpp"
#include "Config/dpctl_config.h"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_context_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "Config/dpctl_config.h"
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>
#include <utility>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_device_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#include "dpctl_sycl_device_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp> /* SYCL headers */
#include <algorithm>
#include <cstring>
#include <sycl/sycl.hpp> /* SYCL headers */
#include <utility>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_device_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
#include "dpctl_sycl_enum_types.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp> /* SYCL headers */
#include <Config/dpctl_config.h> /* Config */
#include <iomanip>
#include <iostream>
#include <sycl/sycl.hpp> /* SYCL headers */
#include <unordered_map>
#include <utility>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "dpctl_device_selection.hpp"
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp> /* SYCL headers */
#include <sycl/sycl.hpp> /* SYCL headers */

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_event_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp> /* SYCL headers */
#include <sycl/sycl.hpp> /* SYCL headers */
#include <vector>

using namespace sycl;
Expand Down
14 changes: 3 additions & 11 deletions libsyclinterface/source/dpctl_sycl_kernel_bundle_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,18 @@
#include "dpctl_dynamic_lib_helper.h"
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/cl.h> /* OpenCL headers */
#include <CL/sycl.hpp> /* Sycl headers */
#if __has_include(<sycl/backend/opencl.hpp>)
#include <sycl/backend/opencl.hpp>
#else
#include <CL/sycl/backend/opencl.hpp>
#endif
#include <CL/cl.h> /* OpenCL headers */
#include <sstream>
#include <sycl/backend/opencl.hpp>
#include <sycl/sycl.hpp> /* Sycl headers */
#include <utility>

#ifdef DPCTL_ENABLE_L0_PROGRAM_CREATION
// Note: include ze_api.h before level_zero.hpp. Make sure clang-format does
// not reorder the includes.
// clang-format off
#include "ze_api.h" /* Level Zero headers */
#if __has_include(<sycl/ext/oneapi/backend/level_zero.hpp>)
#include <sycl/ext/oneapi/backend/level_zero.hpp>
#else
#include <CL/sycl/backend/level_zero.hpp>
#endif
// clang-format on
#endif

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_kernel_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "dpctl_error_handlers.h"
#include "dpctl_string_utils.hpp"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp> /* Sycl headers */
#include <cstdint>
#include <sycl/sycl.hpp> /* Sycl headers */

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_platform_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#include "dpctl_string_utils.hpp"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <iomanip>
#include <iostream>
#include <set>
#include <sstream>
#include <sycl/sycl.hpp>
#include <utility>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_platform_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
#include "dpctl_sycl_platform_interface.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <iomanip>
#include <iostream>
#include <set>
#include <sstream>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_queue_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include "dpctl_sycl_device_interface.h"
#include "dpctl_sycl_device_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp> /* SYCL headers */
#include <exception>
#include <stdexcept>
#include <sycl/sycl.hpp> /* SYCL headers */
#include <utility>

using namespace sycl;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_queue_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_device_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp> /* SYCL headers */
#include <sycl/sycl.hpp> /* SYCL headers */
#include <vector>

using namespace sycl;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/source/dpctl_sycl_usm_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "dpctl_error_handlers.h"
#include "dpctl_sycl_device_interface.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp> /* SYCL headers */
#include <sycl/sycl.hpp> /* SYCL headers */
#include <utility>

using namespace sycl;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

#include "Config/dpctl_config.h"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <string>
#include <sycl/sycl.hpp>

struct TestHelperFns : public ::testing::Test
{
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_context_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "dpctl_sycl_device_interface.h"
#include "dpctl_sycl_device_selector_interface.h"
#include "dpctl_sycl_types.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>
#include <vector>

using namespace sycl;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_device_aspects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include "dpctl_sycl_enum_types.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>
#include <utility>

namespace
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_device_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "dpctl_sycl_platform_interface.h"
#include "dpctl_utils.h"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

#include "dpctl_sycl_device_interface.h"
#include "dpctl_sycl_device_selector_interface.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "dpctl_sycl_device_manager.h"
#include "dpctl_sycl_device_selector_interface.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_device_subdevices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_utils.h"
#include "dpctl_utils_helper.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;
using namespace dpctl::syclinterface;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_event_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include "Config/dpctl_config.h"
#include "dpctl_sycl_event_interface.h"
#include "dpctl_sycl_types.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>
#include <vector>

using namespace sycl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#include "dpctl_sycl_kernel_interface.h"
#include "dpctl_sycl_queue_interface.h"
#include "dpctl_sycl_queue_manager.h"
#include <CL/sycl.hpp>
#include <array>
#include <filesystem>
#include <fstream>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_kernel_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "dpctl_sycl_queue_interface.h"
#include "dpctl_sycl_queue_manager.h"
#include "dpctl_utils.h"
#include <CL/sycl.hpp>
#include <array>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_platform_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#include "dpctl_sycl_platform_interface.h"
#include "dpctl_sycl_platform_manager.h"
#include "dpctl_utils.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>
#include <vector>

using namespace sycl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

#include "dpctl_sycl_device_selector_interface.h"
#include "dpctl_sycl_platform_interface.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_queue_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
#include "dpctl_sycl_queue_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_sycl_usm_interface.h"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;
using namespace dpctl::syclinterface;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_queue_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#include "dpctl_sycl_queue_interface.h"
#include "dpctl_sycl_queue_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include <CL/sycl.hpp>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>
#include <thread>

using namespace std;
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_queue_submit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
#include "dpctl_sycl_queue_interface.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_sycl_usm_interface.h"
#include <CL/sycl.hpp>
#include <filesystem>
#include <fstream>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

namespace
{
Expand Down
2 changes: 1 addition & 1 deletion libsyclinterface/tests/test_sycl_usm_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
#include "dpctl_sycl_queue_manager.h"
#include "dpctl_sycl_type_casters.hpp"
#include "dpctl_sycl_usm_interface.h"
#include <CL/sycl.hpp>
#include <cstring>
#include <gtest/gtest.h>
#include <sycl/sycl.hpp>

using namespace sycl;

Expand Down

0 comments on commit 71b85ab

Please sign in to comment.