Skip to content

Commit dcbd6e5

Browse files
authored
[OpenCL] Add support for cslice partitioning (#7963)
Recently, an extension was added here: #7513 This extension allows partitioning a device by "cslice" (aka CCS-es). With this change, on PVC sub-sub-devices now require info::partition_property::ext_intel_partition_by_cslice instead of info::partition_property::partition_by_affinity_domain that wasn't quite accurately describing the actual scheme. Level Zero backend support was added here: #7626 In this change, we are adding support in OpenCL plugin. This change makes use of the cl_intel_command_queue_families recently added. Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
1 parent 188ef65 commit dcbd6e5

File tree

4 files changed

+437
-46
lines changed

4 files changed

+437
-46
lines changed

sycl/plugins/opencl/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,22 @@
1010
#TODO: Currently, the pi.h header is common between sycl and plugin library sources.
1111
#This can be changed by copying the pi.h file in the plugins project.
1212

13+
find_package(Threads REQUIRED)
14+
1315
add_sycl_plugin(opencl
1416
SOURCES
17+
"../unified_runtime/pi2ur.hpp"
18+
"../unified_runtime/pi2ur.cpp"
19+
"../unified_runtime/ur/ur.hpp"
20+
"../unified_runtime/ur/ur.cpp"
1521
"${sycl_inc_dir}/sycl/detail/pi.h"
1622
"pi_opencl.cpp"
23+
INCLUDE_DIRS
24+
${CMAKE_CURRENT_SOURCE_DIR}/../unified_runtime # for Unified Runtime
1725
LIBRARIES
1826
OpenCL-ICD
27+
Threads::Threads
28+
UnifiedRuntime-Headers
1929
)
2030

2131
set_target_properties(pi_opencl PROPERTIES LINKER_LANGUAGE CXX)

0 commit comments

Comments
 (0)