Skip to content

Commit 7ee2f26

Browse files
author
Jaime Arteaga
authored
[SYCL][UR] Add UR bindings (#8400)
Signed-off-by: Jaime Arteaga <[email protected]>
1 parent d5e389d commit 7ee2f26

25 files changed

+379
-40
lines changed

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,27 @@ add_sycl_plugin(level_zero
101101
"../unified_runtime/ur/usm_allocator_config.cpp"
102102
"../unified_runtime/ur/usm_allocator_config.hpp"
103103
"../unified_runtime/ur/adapters/level_zero/ur_level_zero.hpp"
104+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_common.hpp"
105+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_context.hpp"
106+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_device.hpp"
107+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_event.hpp"
108+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_mem.hpp"
109+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_module.hpp"
110+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_platform.hpp"
111+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_program.hpp"
112+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_queue.hpp"
113+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_sampler.hpp"
104114
"../unified_runtime/ur/adapters/level_zero/ur_level_zero.cpp"
115+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_common.cpp"
116+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_context.cpp"
117+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_device.cpp"
118+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_event.cpp"
119+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_mem.cpp"
120+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_module.cpp"
121+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_platform.cpp"
122+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_program.cpp"
123+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_queue.cpp"
124+
"../unified_runtime/ur/adapters/level_zero/ur_level_zero_sampler.cpp"
105125
# Following are the PI Level-Zero Plugin only codes.
106126
"pi_level_zero.cpp"
107127
"pi_level_zero.hpp"

sycl/plugins/level_zero/ur_bindings.hpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,31 @@ struct ur_platform_handle_t_ : public _pi_platform {
1919
struct ur_device_handle_t_ : public _pi_device {
2020
using _pi_device::_pi_device;
2121
};
22+
23+
struct ur_context_handle_t_ : public _pi_context {
24+
using _pi_context::_pi_context;
25+
};
26+
27+
struct ur_event_handle_t_ : public _pi_event {
28+
using _pi_event::_pi_event;
29+
};
30+
31+
struct ur_program_handle_t_ : public _pi_program {
32+
using _pi_program::_pi_program;
33+
};
34+
35+
struct ur_kernel_handle_t_ : public _pi_kernel {
36+
using _pi_kernel::_pi_kernel;
37+
};
38+
39+
struct ur_queue_handle_t_ : public _pi_queue {
40+
using _pi_queue::_pi_queue;
41+
};
42+
43+
struct ur_sampler_handle_t_ : public _pi_sampler {
44+
using _pi_sampler::_pi_sampler;
45+
};
46+
47+
struct ur_mem_handle_t_ : public _pi_mem {
48+
using _pi_mem::_pi_mem;
49+
};

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,27 @@ add_sycl_plugin(unified_runtime
6464
"ur/ur.hpp"
6565
"ur/ur.cpp"
6666
"ur/adapters/level_zero/ur_level_zero.hpp"
67+
"ur/adapters/level_zero/ur_level_zero_common.hpp"
68+
"ur/adapters/level_zero/ur_level_zero_context.hpp"
69+
"ur/adapters/level_zero/ur_level_zero_device.hpp"
70+
"ur/adapters/level_zero/ur_level_zero_event.hpp"
71+
"ur/adapters/level_zero/ur_level_zero_mem.hpp"
72+
"ur/adapters/level_zero/ur_level_zero_module.hpp"
73+
"ur/adapters/level_zero/ur_level_zero_platform.hpp"
74+
"ur/adapters/level_zero/ur_level_zero_program.hpp"
75+
"ur/adapters/level_zero/ur_level_zero_queue.hpp"
76+
"ur/adapters/level_zero/ur_level_zero_sampler.hpp"
6777
"ur/adapters/level_zero/ur_level_zero.cpp"
78+
"ur/adapters/level_zero/ur_level_zero_common.cpp"
79+
"ur/adapters/level_zero/ur_level_zero_context.cpp"
80+
"ur/adapters/level_zero/ur_level_zero_device.cpp"
81+
"ur/adapters/level_zero/ur_level_zero_event.cpp"
82+
"ur/adapters/level_zero/ur_level_zero_mem.cpp"
83+
"ur/adapters/level_zero/ur_level_zero_module.cpp"
84+
"ur/adapters/level_zero/ur_level_zero_platform.cpp"
85+
"ur/adapters/level_zero/ur_level_zero_program.cpp"
86+
"ur/adapters/level_zero/ur_level_zero_queue.cpp"
87+
"ur/adapters/level_zero/ur_level_zero_sampler.cpp"
6888
"ur/usm_allocator.hpp"
6989
"ur/usm_allocator.cpp"
7090
# These below belong to Unified Runtime PI Plugin only

sycl/plugins/unified_runtime/ur/adapters/level_zero/ur_level_zero.hpp

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <ze_api.h>
2121
#include <zes_api.h>
2222

23+
#include "ur_level_zero_common.hpp"
24+
2325
// Returns the ze_structure_type_t to use in .stype of a structured descriptor.
2426
// Intentionally not defined; will give an error if no proper specialization
2527
template <class T> ze_structure_type_t getZeStructureType();
@@ -80,46 +82,6 @@ class ZeCall {
8082
const char *ZeArgs, bool TraceError = true);
8183
};
8284

83-
// Map Level Zero runtime error code to UR error code.
84-
static ur_result_t ze2urResult(ze_result_t ZeResult) {
85-
static std::unordered_map<ze_result_t, ur_result_t> ErrorMapping = {
86-
{ZE_RESULT_SUCCESS, UR_RESULT_SUCCESS},
87-
{ZE_RESULT_ERROR_DEVICE_LOST, UR_RESULT_ERROR_DEVICE_LOST},
88-
{ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS,
89-
UR_RESULT_ERROR_INVALID_OPERATION},
90-
{ZE_RESULT_ERROR_NOT_AVAILABLE, UR_RESULT_ERROR_INVALID_OPERATION},
91-
{ZE_RESULT_ERROR_UNINITIALIZED, UR_RESULT_ERROR_INVALID_PLATFORM},
92-
{ZE_RESULT_ERROR_INVALID_ARGUMENT, UR_RESULT_ERROR_INVALID_ARGUMENT},
93-
{ZE_RESULT_ERROR_INVALID_NULL_POINTER, UR_RESULT_ERROR_INVALID_VALUE},
94-
{ZE_RESULT_ERROR_INVALID_SIZE, UR_RESULT_ERROR_INVALID_VALUE},
95-
{ZE_RESULT_ERROR_UNSUPPORTED_SIZE, UR_RESULT_ERROR_INVALID_VALUE},
96-
{ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT, UR_RESULT_ERROR_INVALID_VALUE},
97-
{ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT,
98-
UR_RESULT_ERROR_INVALID_EVENT},
99-
{ZE_RESULT_ERROR_INVALID_ENUMERATION, UR_RESULT_ERROR_INVALID_VALUE},
100-
{ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION, UR_RESULT_ERROR_INVALID_VALUE},
101-
{ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT, UR_RESULT_ERROR_INVALID_VALUE},
102-
{ZE_RESULT_ERROR_INVALID_NATIVE_BINARY, UR_RESULT_ERROR_INVALID_BINARY},
103-
{ZE_RESULT_ERROR_INVALID_KERNEL_NAME,
104-
UR_RESULT_ERROR_INVALID_KERNEL_NAME},
105-
{ZE_RESULT_ERROR_INVALID_FUNCTION_NAME,
106-
UR_RESULT_ERROR_INVALID_FUNCTION_NAME},
107-
{ZE_RESULT_ERROR_OVERLAPPING_REGIONS, UR_RESULT_ERROR_INVALID_OPERATION},
108-
{ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION,
109-
UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE},
110-
{ZE_RESULT_ERROR_MODULE_BUILD_FAILURE,
111-
UR_RESULT_ERROR_MODULE_BUILD_FAILURE},
112-
{ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY,
113-
UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY},
114-
{ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY, UR_RESULT_ERROR_OUT_OF_HOST_MEMORY}};
115-
116-
auto It = ErrorMapping.find(ZeResult);
117-
if (It == ErrorMapping.end()) {
118-
return UR_RESULT_ERROR_UNKNOWN;
119-
}
120-
return It->second;
121-
}
122-
12385
// Controls Level Zero calls tracing.
12486
enum DebugLevel {
12587
ZE_DEBUG_NONE = 0x0,
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
//===--------- ur_level_zero_common.cpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_common.hpp"
10+
11+
std::unordered_map<ze_result_t, ur_result_t> Ze2UrErrorMapping = {
12+
{ZE_RESULT_SUCCESS, UR_RESULT_SUCCESS},
13+
{ZE_RESULT_ERROR_DEVICE_LOST, UR_RESULT_ERROR_DEVICE_LOST},
14+
{ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS,
15+
UR_RESULT_ERROR_INVALID_OPERATION},
16+
{ZE_RESULT_ERROR_NOT_AVAILABLE, UR_RESULT_ERROR_INVALID_OPERATION},
17+
{ZE_RESULT_ERROR_UNINITIALIZED, UR_RESULT_ERROR_INVALID_PLATFORM},
18+
{ZE_RESULT_ERROR_INVALID_ARGUMENT, UR_RESULT_ERROR_INVALID_ARGUMENT},
19+
{ZE_RESULT_ERROR_INVALID_NULL_POINTER, UR_RESULT_ERROR_INVALID_VALUE},
20+
{ZE_RESULT_ERROR_INVALID_SIZE, UR_RESULT_ERROR_INVALID_VALUE},
21+
{ZE_RESULT_ERROR_UNSUPPORTED_SIZE, UR_RESULT_ERROR_INVALID_VALUE},
22+
{ZE_RESULT_ERROR_UNSUPPORTED_ALIGNMENT, UR_RESULT_ERROR_INVALID_VALUE},
23+
{ZE_RESULT_ERROR_INVALID_SYNCHRONIZATION_OBJECT,
24+
UR_RESULT_ERROR_INVALID_EVENT},
25+
{ZE_RESULT_ERROR_INVALID_ENUMERATION, UR_RESULT_ERROR_INVALID_VALUE},
26+
{ZE_RESULT_ERROR_UNSUPPORTED_ENUMERATION, UR_RESULT_ERROR_INVALID_VALUE},
27+
{ZE_RESULT_ERROR_UNSUPPORTED_IMAGE_FORMAT, UR_RESULT_ERROR_INVALID_VALUE},
28+
{ZE_RESULT_ERROR_INVALID_NATIVE_BINARY, UR_RESULT_ERROR_INVALID_BINARY},
29+
{ZE_RESULT_ERROR_INVALID_KERNEL_NAME, UR_RESULT_ERROR_INVALID_KERNEL_NAME},
30+
{ZE_RESULT_ERROR_INVALID_FUNCTION_NAME,
31+
UR_RESULT_ERROR_INVALID_FUNCTION_NAME},
32+
{ZE_RESULT_ERROR_OVERLAPPING_REGIONS, UR_RESULT_ERROR_INVALID_OPERATION},
33+
{ZE_RESULT_ERROR_INVALID_GROUP_SIZE_DIMENSION,
34+
UR_RESULT_ERROR_INVALID_WORK_GROUP_SIZE},
35+
{ZE_RESULT_ERROR_MODULE_BUILD_FAILURE,
36+
UR_RESULT_ERROR_MODULE_BUILD_FAILURE},
37+
{ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY,
38+
UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY},
39+
{ZE_RESULT_ERROR_OUT_OF_HOST_MEMORY, UR_RESULT_ERROR_OUT_OF_HOST_MEMORY}};
40+
41+
ur_result_t ze2urResult(ze_result_t ZeResult) {
42+
auto It = Ze2UrErrorMapping.find(ZeResult);
43+
if (It == Ze2UrErrorMapping.end()) {
44+
return UR_RESULT_ERROR_UNKNOWN;
45+
}
46+
return It->second;
47+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
//===--------- ur_level_zero_common.hpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include <sycl/detail/pi.h>
11+
#include <ur/ur.hpp>
12+
#include <ur_api.h>
13+
#include <ze_api.h>
14+
#include <zes_api.h>
15+
16+
#include "ur_level_zero_context.hpp"
17+
#include "ur_level_zero_device.hpp"
18+
#include "ur_level_zero_event.hpp"
19+
#include "ur_level_zero_mem.hpp"
20+
#include "ur_level_zero_module.hpp"
21+
#include "ur_level_zero_platform.hpp"
22+
#include "ur_level_zero_program.hpp"
23+
#include "ur_level_zero_queue.hpp"
24+
#include "ur_level_zero_sampler.hpp"
25+
26+
// Map Level Zero runtime error code to UR error code.
27+
ur_result_t ze2urResult(ze_result_t ZeResult);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_context.cpp - Level Zero Adapter ---------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_context.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===--------- ur_level_zero_context.hpp - Level Zero Adapter ---------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
11+
12+
struct _ur_context_handle_t : _pi_object {
13+
_ur_context_handle_t() {}
14+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_device.cpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_device.hpp"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//===--------- ur_level_zero_device.hpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_event.cpp - Level Zero Adapter -----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_event.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===--------- ur_level_zero_event.hpp - Level Zero Adapter -----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
11+
12+
struct _ur_event_handle_t : _pi_object {
13+
_ur_event_handle_t() {}
14+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_mem.cpp - Level Zero Adapter -------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_mem.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===--------- ur_level_zero_mem.hpp - Level Zero Adapter -------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
11+
12+
struct _ur_mem_handle_t : _pi_object {
13+
_ur_mem_handle_t() {}
14+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_module.cpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_module.hpp"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//===--------- ur_level_zero_module.hpp - Level Zero Adapter ----------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
11+
12+
struct _ur_module_handle_t : _pi_object {
13+
_ur_module_handle_t() {}
14+
};
15+
16+
struct _ur_kernel_handle_t : _pi_object {
17+
_ur_kernel_handle_t() {}
18+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_platform.cpp - Level Zero Adapter --------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_platform.hpp"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//===--------- ur_level_zero_platform.hpp - Level Zero Adapter --------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//===--------- ur_level_zero_program.cpp - Level Zero Adapter ---------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
9+
#include "ur_level_zero_program.hpp"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//===--------- ur_level_zero_program.hpp - Level Zero Adapter ---------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===-----------------------------------------------------------------===//
8+
#pragma once
9+
10+
#include "ur_level_zero_common.hpp"
11+
12+
struct _ur_program_handle_t : _pi_object {
13+
_ur_program_handle_t() {}
14+
};

0 commit comments

Comments
 (0)