File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ function(build_dpctl_ext _trgt _src _dest)
111
111
Python_add_library (${_trgt} MODULE WITH_SOABI ${_generated_src} )
112
112
if (BUILD_DPCTL_EXT_SYCL )
113
113
add_sycl_to_target (TARGET ${_trgt} SOURCES ${_generated_src} )
114
+ target_compile_options (${_trgt} PRIVATE -fno-sycl-id-queries-fit-in-int )
115
+ target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=per_kernel --offload-compress )
114
116
if (_dpctl_sycl_targets )
115
117
# make fat binary
116
118
target_compile_options (
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ endforeach()
267
267
set (_linker_options "LINKER:${DPCTL_LDFLAGS} " )
268
268
foreach (python_module_name ${_py_trgts} )
269
269
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int )
270
- target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
270
+ target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel --offload-compress )
271
271
target_include_directories (${python_module_name}
272
272
PRIVATE
273
273
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/include
@@ -279,7 +279,7 @@ foreach(python_module_name ${_py_trgts})
279
279
target_compile_options (${python_module_name}
280
280
PRIVATE -fprofile-instr-generate -fcoverage-mapping
281
281
)
282
- endif ()
282
+ endif ()
283
283
target_link_options (${python_module_name}
284
284
PRIVATE -fprofile-instr-generate -fcoverage-mapping
285
285
)
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ list(APPEND _pybind11_targets ${python_module_name})
28
28
set (_linker_options "LINKER:${DPCTL_LDFLAGS} " )
29
29
foreach (python_module_name ${_pybind11_targets} )
30
30
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int )
31
- target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
31
+ target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel --offload-compress )
32
32
target_include_directories (${python_module_name}
33
33
PRIVATE
34
34
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/include
@@ -40,7 +40,7 @@ foreach(python_module_name ${_pybind11_targets})
40
40
target_compile_options (${python_module_name}
41
41
PRIVATE -fprofile-instr-generate -fcoverage-mapping
42
42
)
43
- endif ()
43
+ endif ()
44
44
target_link_options (${python_module_name}
45
45
PRIVATE -fprofile-instr-generate -fcoverage-mapping
46
46
)
You can’t perform that action at this time.
0 commit comments