-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYCL][NATIVECPU] Move Native CPU adapter to UR.
- Loading branch information
1 parent
4c0780e
commit 56beee8
Showing
30 changed files
with
45 additions
and
3,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
# Plugin for SYCL Native CPU | ||
# Create shared library for libpi_nativecpu.so | ||
|
||
# Get the Native CPU adapter sources so they can be shared with the Native CPU PI plugin | ||
get_target_property(UR_NATIVE_CPU_ADAPTER_SOURCES ur_adapter_native_cpu SOURCES) | ||
|
||
add_sycl_plugin(native_cpu | ||
SOURCES | ||
"pi_native_cpu.cpp" | ||
${UR_NATIVE_CPU_ADAPTER_SOURCES} | ||
# Some code is shared with the UR adapter | ||
"../unified_runtime/pi2ur.hpp" | ||
"../unified_runtime/pi2ur.cpp" | ||
"../unified_runtime/ur/ur.hpp" | ||
"../unified_runtime/ur/ur.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/adapter.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/command_buffer.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/common.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/common.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/context.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/context.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/device.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/device.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/enqueue.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/event.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/image.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/kernel.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/kernel.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/memory.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/memory.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/platform.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/platform.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/program.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/program.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/queue.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/queue.hpp" | ||
"../unified_runtime/ur/adapters/native_cpu/sampler.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/ur_interface_loader.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/usm.cpp" | ||
"../unified_runtime/ur/adapters/native_cpu/usm_p2p.cpp" | ||
"${sycl_inc_dir}/sycl/detail/pi.h" | ||
"${sycl_inc_dir}/sycl/detail/pi.hpp" | ||
"pi_native_cpu.cpp" | ||
"pi_native_cpu.hpp" | ||
INCLUDE_DIRS | ||
${CMAKE_CURRENT_SOURCE_DIR}/../unified_runtime | ||
${sycl_inc_dir} | ||
${CMAKE_CURRENT_SOURCE_DIR}/../unified_runtime # for Unified Runtime | ||
${UNIFIED_RUNTIME_SOURCE_DIR}/source/ # for adapters/native_cpu | ||
LIBRARIES | ||
sycl | ||
UnifiedRuntime-Headers | ||
UnifiedRuntimeCommon | ||
) | ||
|
||
set_target_properties(pi_native_cpu PROPERTIES LINKER_LANGUAGE CXX) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
sycl/plugins/unified_runtime/ur/adapters/native_cpu/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Native CPU adapter | ||
The source for the SYCL Native CPU adapter has been moved to the | ||
[adapters](https://github.com/oneapi-src/unified-runtime/tree/adapters) branch | ||
of the [Unified Runtime](https://github.com/oneapi-src/unified-runtime/) repo. | ||
Changes can be made by opening pull requests against that branch, and updating | ||
the Unified Runtime commit in the parent | ||
[CMakeLists.txt](../../../CMakeLists.txt). |
71 changes: 0 additions & 71 deletions
71
sycl/plugins/unified_runtime/ur/adapters/native_cpu/adapter.cpp
This file was deleted.
Oops, something went wrong.
131 changes: 0 additions & 131 deletions
131
sycl/plugins/unified_runtime/ur/adapters/native_cpu/command_buffer.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.