Skip to content

Commit 79c4a87

Browse files
authored
[SYCL] move usm_allocator to UR (#7820)
It will be shared by the level zero plugin and UR adapters.
1 parent d239fb0 commit 79c4a87

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ add_sycl_plugin(level_zero
8181
"../unified_runtime/pi2ur.cpp"
8282
"../unified_runtime/ur/ur.hpp"
8383
"../unified_runtime/ur/ur.cpp"
84+
"../unified_runtime/ur/usm_allocator.cpp"
85+
"../unified_runtime/ur/usm_allocator.hpp"
8486
"../unified_runtime/ur/adapters/level_zero/ur_level_zero.hpp"
8587
"../unified_runtime/ur/adapters/level_zero/ur_level_zero.cpp"
8688
# Following are the PI Level-Zero Plugin only codes.
8789
"pi_level_zero.cpp"
8890
"pi_level_zero.hpp"
89-
"usm_allocator.cpp"
90-
"usm_allocator.hpp"
9191
"tracing.cpp"
9292
${XPTI_PROXY_SRC}
9393
INCLUDE_DIRS

sycl/plugins/level_zero/pi_level_zero.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include <zet_api.h>
2828

2929
#include "ur_bindings.hpp"
30-
#include "usm_allocator.hpp"
3130

3231
extern "C" {
3332
// Forward declarartions.

sycl/plugins/level_zero/pi_level_zero.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
// Share code between this PI L0 Plugin and UR L0 Adapter
5050
#include <pi2ur.hpp>
5151
#include <ur/adapters/level_zero/ur_level_zero.hpp>
52-
53-
#include "usm_allocator.hpp"
52+
#include <ur/usm_allocator.hpp>
5453

5554
template <class To, class From> To pi_cast(From Value) {
5655
// TODO: see if more sanity checks are possible.

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ add_sycl_plugin(unified_runtime
4747
"ur/ur.cpp"
4848
"ur/adapters/level_zero/ur_level_zero.hpp"
4949
"ur/adapters/level_zero/ur_level_zero.cpp"
50+
"ur/usm_allocator.hpp"
51+
"ur/usm_allocator.cpp"
5052
# These below belong to Unified Runtime PI Plugin only
5153
"pi_unified_runtime.hpp"
5254
"pi_unified_runtime.cpp"

0 commit comments

Comments
 (0)