Skip to content

Commit 00b70cd

Browse files
Move ur_* headers to the top level include/
1 parent c995635 commit 00b70cd

36 files changed

+47
-46
lines changed

sycl/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ add_custom_command(
248248
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/std ${SYCL_INCLUDE_BUILD_DIR}/std
249249
COMMAND ${CMAKE_COMMAND} -E copy_directory ${sycl_inc_dir}/syclcompat ${SYCL_INCLUDE_BUILD_DIR}/syclcompat
250250
COMMAND ${CMAKE_COMMAND} -E copy ${sycl_inc_dir}/syclcompat.hpp ${SYCL_INCLUDE_BUILD_DIR}/syclcompat.hpp
251-
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h ${SYCL_INCLUDE_BUILD_DIR}/sycl
252-
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def ${SYCL_INCLUDE_BUILD_DIR}/sycl
253-
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp ${SYCL_INCLUDE_BUILD_DIR}/sycl
251+
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h ${SYCL_INCLUDE_BUILD_DIR}
252+
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def ${SYCL_INCLUDE_BUILD_DIR}
253+
COMMAND ${CMAKE_COMMAND} -E copy ${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp ${SYCL_INCLUDE_BUILD_DIR}
254254
COMMENT "Copying SYCL headers ...")
255255

256256
# Copy SYCL headers from source to install directory
@@ -260,11 +260,11 @@ install(DIRECTORY "${sycl_inc_dir}/std" DESTINATION ${SYCL_INCLUDE_DIR} COMPONEN
260260
install(DIRECTORY ${BOOST_MP11_DESTINATION_DIR} DESTINATION ${SYCL_INCLUDE_DIR}/sycl/detail COMPONENT boost_mp11-headers)
261261
install(DIRECTORY "${sycl_inc_dir}/syclcompat" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
262262
install(FILES "${sycl_inc_dir}/syclcompat.hpp" DESTINATION ${SYCL_INCLUDE_DIR} COMPONENT sycl-headers)
263-
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h" DESTINATION ${SYCL_INCLUDE_DIR}/sycl
263+
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api.h" DESTINATION ${SYCL_INCLUDE_DIR}
264264
COMPONENT sycl-headers)
265-
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def" DESTINATION ${SYCL_INCLUDE_DIR}/sycl
265+
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_api_funcs.def" DESTINATION ${SYCL_INCLUDE_DIR}
266266
COMPONENT sycl-headers)
267-
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp" DESTINATION ${SYCL_INCLUDE_DIR}/sycl
267+
install(FILES "${UNIFIED_RUNTIME_INCLUDE_DIR}/ur_print.hpp" DESTINATION ${SYCL_INCLUDE_DIR}
268268
COMPONENT sycl-headers)
269269

270270
if (WIN32)

sycl/include/sycl/accessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
#include <sycl/property_list.hpp> // for property_list
3838
#include <sycl/range.hpp> // for range
3939
#include <sycl/sampler.hpp> // for addressing_mode
40-
#include <sycl/ur_api.h> // for UR_RESULT_ERRO...
40+
#include <ur_api.h> // for UR_RESULT_ERRO...
4141

4242
#include <cstddef> // for size_t
4343
#include <functional> // for hash

sycl/include/sycl/backend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
#include <sycl/platform.hpp> // for platform, get_n...
3232
#include <sycl/property_list.hpp> // for property_list
3333
#include <sycl/queue.hpp> // for queue, get_native
34-
#include <sycl/ur_api.h> // for ur_native_handle_t
34+
#include <ur_api.h> // for ur_native_handle_t
3535

3636
#if SYCL_BACKEND_OPENCL
3737
#include <sycl/detail/backend_traits_opencl.hpp> // for interop

sycl/include/sycl/buffer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <sycl/id.hpp>
2626
#include <sycl/property_list.hpp>
2727
#include <sycl/range.hpp>
28-
#include <sycl/ur_api.h> // for ur_native_handle_t
28+
#include <ur_api.h> // for ur_native_handle_t
2929

3030
#include <cstddef> // for size_t, nullptr_t
3131
#include <functional> // for function

sycl/include/sycl/context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <sycl/detail/owner_less_base.hpp> // for OwnerLessBase
1818
#include <sycl/platform.hpp> // for platform
1919
#include <sycl/property_list.hpp> // for property_list
20-
#include <sycl/ur_api.h> // for ur_native_handle_t
20+
#include <ur_api.h> // for ur_native_handle_t
2121

2222
#ifdef __SYCL_INTERNAL_API
2323
#include <sycl/detail/cl.h>

sycl/include/sycl/detail/array.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
1212
#include <sycl/exception.hpp>
13-
#include <sycl/ur_api.h> // for UR_RESULT_ERROR_INVALID_VALUE
13+
#include <ur_api.h> // for UR_RESULT_ERROR_INVALID_VALUE
1414

1515
#include <stddef.h> // for size_t
1616
#include <type_traits> // for enable_if_t

sycl/include/sycl/detail/cg_types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#include <sycl/nd_item.hpp> // for nd_item
2424
#include <sycl/nd_range.hpp> // for nd_range
2525
#include <sycl/range.hpp> // for range, operator*
26-
#include <sycl/ur_api.h> // for UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE
26+
#include <ur_api.h> // for UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE
2727

2828
#include <functional> // for function
2929
#include <stddef.h> // for size_t

sycl/include/sycl/detail/info_desc_helpers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#pragma once
1010

11-
#include <sycl/ur_api.h>
11+
#include <ur_api.h>
1212

1313
#include <type_traits> // for true_type
1414

sycl/include/sycl/detail/ur.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include <sycl/backend_types.hpp>
1818
#include <sycl/detail/export.hpp>
1919
#include <sycl/detail/os_util.hpp>
20-
#include <sycl/ur_api.h>
20+
#include <ur_api.h>
2121

2222
#include <memory>
2323
#include <type_traits>
@@ -49,13 +49,13 @@ namespace detail {
4949

5050
enum class UrApiKind {
5151
#define _UR_API(api) api,
52-
#include <sycl/ur_api_funcs.def>
52+
#include <ur_api_funcs.def>
5353
#undef _UR_API
5454
};
5555

5656
struct UrFuncPtrMapT {
5757
#define _UR_API(api) decltype(&::api) pfn_##api = nullptr;
58-
#include <sycl/ur_api_funcs.def>
58+
#include <ur_api_funcs.def>
5959
#undef _UR_API
6060
};
6161

@@ -66,7 +66,7 @@ void *GetWinProcAddress(void *module, const char *funcName);
6666
inline void PopulateUrFuncPtrTable(UrFuncPtrMapT *funcs, void *module) {
6767
#define _UR_API(api) \
6868
funcs->pfn_##api = (decltype(&::api))GetWinProcAddress(module, #api);
69-
#include <sycl/ur_api_funcs.def>
69+
#include <ur_api_funcs.def>
7070
#undef _UR_API
7171
}
7272

@@ -81,7 +81,7 @@ inline void PopulateUrFuncPtrTable(UrFuncPtrMapT *funcs, void *module) {
8181
return (FuncPtrT)GetWinProcAddress(module, #api); \
8282
} \
8383
};
84-
#include <sycl/ur_api_funcs.def>
84+
#include <ur_api_funcs.def>
8585
#undef _UR_API
8686
#else
8787
#define _UR_API(api) \
@@ -91,7 +91,7 @@ inline void PopulateUrFuncPtrTable(UrFuncPtrMapT *funcs, void *module) {
9191
constexpr inline FuncPtrT getFuncPtr(const void *) { return &api; } \
9292
constexpr inline FuncPtrT getFuncPtrFromModule(void *) { return &api; } \
9393
};
94-
#include <sycl/ur_api_funcs.def>
94+
#include <ur_api_funcs.def>
9595
#undef _UR_API
9696
#endif
9797

sycl/include/sycl/device.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <sycl/info/info_desc.hpp>
2323
#include <sycl/kernel_bundle_enums.hpp>
2424
#include <sycl/platform.hpp>
25-
#include <sycl/ur_api.h>
25+
#include <ur_api.h>
2626

2727
#include <cstddef>
2828
#include <memory>

0 commit comments

Comments
 (0)