File tree Expand file tree Collapse file tree 6 files changed +4
-16
lines changed Expand file tree Collapse file tree 6 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,11 @@ function(add_sycl_plugin PLUGIN_NAME)
40
40
41
41
add_sycl_library ("pi_${PLUGIN_NAME} " SHARED
42
42
TOOLCHAIN
43
- LINKER_SCRIPT ${ARG_LINKER_SCRIPT}
43
+ LINKER_SCRIPT " ${sycl_src_dir} /ld-version-script.txt"
44
44
SOURCES ${ARG_SOURCES}
45
- INCLUDE_DIRS ${ARG_INCLUDE_DIRS}
45
+ INCLUDE_DIRS
46
+ ${ARG_INCLUDE_DIRS}
47
+ ${sycl_inc_dir}
46
48
LIBRARIES ${ARG_LIBRARIES}
47
49
)
48
50
Original file line number Diff line number Diff line change @@ -29,12 +29,9 @@ add_sycl_plugin(cuda
29
29
"${sycl_inc_dir} /CL/sycl/detail/pi.hpp"
30
30
"pi_cuda.hpp"
31
31
"pi_cuda.cpp"
32
- INCLUDE_DIRS
33
- "${sycl_inc_dir} "
34
32
LIBRARIES
35
33
OpenCL-Headers
36
34
cudadrv
37
- LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt"
38
35
)
39
36
40
37
set_target_properties (pi_cuda PROPERTIES LINKER_LANGUAGE CXX )
Original file line number Diff line number Diff line change @@ -107,16 +107,13 @@ add_sycl_plugin(esimd_emulator
107
107
SOURCES
108
108
"${sycl_inc_dir} /CL/sycl/detail/pi.h"
109
109
"pi_esimd_emulator.cpp"
110
- INCLUDE_DIRS
111
- ${sycl_inc_dir}
112
110
LIBRARIES
113
111
"${LEVEL_ZERO_LOADER} "
114
112
OpenCL-Headers
115
113
${LIBCM}
116
114
${LIBIGFXCMRT_EMU}
117
115
#TODO remove cyclic dependency
118
116
sycl
119
- LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt"
120
117
)
121
118
122
119
add_dependencies (pi_esimd_emulator cm-emu )
Original file line number Diff line number Diff line change @@ -17,11 +17,9 @@ add_sycl_plugin(hip
17
17
"pi_hip.hpp"
18
18
"pi_hip.cpp"
19
19
INCLUDE_DIRS
20
- ${sycl_inc_dir}
21
20
${sycl_plugin_dir}
22
21
LIBRARIES
23
22
OpenCL-Headers
24
- LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt"
25
23
)
26
24
set_target_properties (pi_hip PROPERTIES LINKER_LANGUAGE CXX )
27
25
Original file line number Diff line number Diff line change @@ -107,13 +107,10 @@ add_sycl_plugin(level_zero
107
107
"${CMAKE_CURRENT_SOURCE_DIR} /pi_level_zero.hpp"
108
108
"${CMAKE_CURRENT_SOURCE_DIR} /usm_allocator.cpp"
109
109
"${CMAKE_CURRENT_SOURCE_DIR} /usm_allocator.hpp"
110
- INCLUDE_DIRS
111
- ${sycl_inc_dir}
112
110
LIBRARIES
113
111
"${LEVEL_ZERO_LOADER} "
114
112
OpenCL-Headers
115
113
Threads::Threads
116
- LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt"
117
114
)
118
115
119
116
if (TARGET level-zero-loader )
Original file line number Diff line number Diff line change @@ -14,12 +14,9 @@ add_sycl_plugin(opencl
14
14
SOURCES
15
15
"${sycl_inc_dir} /CL/sycl/detail/pi.h"
16
16
"pi_opencl.cpp"
17
- INCLUDE_DIRS
18
- "${sycl_inc_dir} "
19
17
LIBRARIES
20
18
OpenCL-Headers
21
19
OpenCL-ICD
22
- LINKER_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt"
23
20
)
24
21
25
22
set_target_properties (pi_opencl PROPERTIES LINKER_LANGUAGE CXX )
You can’t perform that action at this time.
0 commit comments