Skip to content

Commit 7eda431

Browse files
author
Alexander Batashev
committed
address some comments
1 parent 33a77b7 commit 7eda431

File tree

6 files changed

+4
-16
lines changed

6 files changed

+4
-16
lines changed

sycl/cmake/modules/AddSYCL.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ function(add_sycl_plugin PLUGIN_NAME)
4040

4141
add_sycl_library("pi_${PLUGIN_NAME}" SHARED
4242
TOOLCHAIN
43-
LINKER_SCRIPT ${ARG_LINKER_SCRIPT}
43+
LINKER_SCRIPT "${sycl_src_dir}/ld-version-script.txt"
4444
SOURCES ${ARG_SOURCES}
45-
INCLUDE_DIRS ${ARG_INCLUDE_DIRS}
45+
INCLUDE_DIRS
46+
${ARG_INCLUDE_DIRS}
47+
${sycl_inc_dir}
4648
LIBRARIES ${ARG_LIBRARIES}
4749
)
4850

sycl/plugins/cuda/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ add_sycl_plugin(cuda
2929
"${sycl_inc_dir}/CL/sycl/detail/pi.hpp"
3030
"pi_cuda.hpp"
3131
"pi_cuda.cpp"
32-
INCLUDE_DIRS
33-
"${sycl_inc_dir}"
3432
LIBRARIES
3533
OpenCL-Headers
3634
cudadrv
37-
LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/../ld-version-script.txt"
3835
)
3936

4037
set_target_properties(pi_cuda PROPERTIES LINKER_LANGUAGE CXX)

sycl/plugins/esimd_emulator/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,13 @@ add_sycl_plugin(esimd_emulator
107107
SOURCES
108108
"${sycl_inc_dir}/CL/sycl/detail/pi.h"
109109
"pi_esimd_emulator.cpp"
110-
INCLUDE_DIRS
111-
${sycl_inc_dir}
112110
LIBRARIES
113111
"${LEVEL_ZERO_LOADER}"
114112
OpenCL-Headers
115113
${LIBCM}
116114
${LIBIGFXCMRT_EMU}
117115
#TODO remove cyclic dependency
118116
sycl
119-
LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/../ld-version-script.txt"
120117
)
121118

122119
add_dependencies(pi_esimd_emulator cm-emu)

sycl/plugins/hip/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ add_sycl_plugin(hip
1717
"pi_hip.hpp"
1818
"pi_hip.cpp"
1919
INCLUDE_DIRS
20-
${sycl_inc_dir}
2120
${sycl_plugin_dir}
2221
LIBRARIES
2322
OpenCL-Headers
24-
LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/../ld-version-script.txt"
2523
)
2624
set_target_properties(pi_hip PROPERTIES LINKER_LANGUAGE CXX)
2725

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,10 @@ add_sycl_plugin(level_zero
107107
"${CMAKE_CURRENT_SOURCE_DIR}/pi_level_zero.hpp"
108108
"${CMAKE_CURRENT_SOURCE_DIR}/usm_allocator.cpp"
109109
"${CMAKE_CURRENT_SOURCE_DIR}/usm_allocator.hpp"
110-
INCLUDE_DIRS
111-
${sycl_inc_dir}
112110
LIBRARIES
113111
"${LEVEL_ZERO_LOADER}"
114112
OpenCL-Headers
115113
Threads::Threads
116-
LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/../ld-version-script.txt"
117114
)
118115

119116
if (TARGET level-zero-loader)

sycl/plugins/opencl/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ add_sycl_plugin(opencl
1414
SOURCES
1515
"${sycl_inc_dir}/CL/sycl/detail/pi.h"
1616
"pi_opencl.cpp"
17-
INCLUDE_DIRS
18-
"${sycl_inc_dir}"
1917
LIBRARIES
2018
OpenCL-Headers
2119
OpenCL-ICD
22-
LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/../ld-version-script.txt"
2320
)
2421

2522
set_target_properties(pi_opencl PROPERTIES LINKER_LANGUAGE CXX)

0 commit comments

Comments
 (0)