File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ function(build_dpnp_tensor_ext _trgt _src _dest)
9595 if (BUILD_DPNP_SYCL)
9696 add_sycl_to_target (TARGET ${_trgt} SOURCES ${_generated_src} )
9797 target_compile_options (${_trgt} PRIVATE -fno-sycl-id-queries-fit-in-int )
98- # For coverage builds, disable device code splitting to reduce memory
98+ # For coverage builds, use per_source instead of per_kernel to reduce memory
9999 if (DPNP_GENERATE_COVERAGE)
100- target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=off )
100+ target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=per_source )
101101 else ()
102102 target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=per_kernel )
103103 endif ()
Original file line number Diff line number Diff line change @@ -313,9 +313,12 @@ foreach(python_module_name ${_py_trgts})
313313 ${python_module_name}
314314 PRIVATE -fno-sycl-id-queries-fit-in-int
315315 )
316- # For coverage builds, disable device code splitting to reduce memory
316+ # For coverage builds, use per_source instead of per_kernel to reduce memory
317317 if (DPNP_GENERATE_COVERAGE)
318- target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=off )
318+ target_link_options (
319+ ${python_module_name}
320+ PRIVATE -fsycl-device-code-split=per_source
321+ )
319322 else ()
320323 target_link_options (
321324 ${python_module_name}
You can’t perform that action at this time.
0 commit comments