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,7 +95,12 @@ 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- target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=per_kernel )
98+ # For coverage builds, disable device code splitting to reduce memory
99+ if (DPNP_GENERATE_COVERAGE)
100+ target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=off )
101+ else ()
102+ target_link_options (${_trgt} PRIVATE -fsycl-device-code-split=per_kernel )
103+ endif ()
99104 if (DPNP_TENSOR_OFFLOAD_COMPRESS)
100105 target_link_options (${_trgt} PRIVATE --offload-compress )
101106 endif ()
Original file line number Diff line number Diff line change @@ -313,10 +313,15 @@ foreach(python_module_name ${_py_trgts})
313313 ${python_module_name}
314314 PRIVATE -fno-sycl-id-queries-fit-in-int
315315 )
316- target_link_options (
317- ${python_module_name}
318- PRIVATE -fsycl-device-code-split=per_kernel
319- )
316+ # For coverage builds, disable device code splitting to reduce memory
317+ if (DPNP_GENERATE_COVERAGE)
318+ target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=off )
319+ else ()
320+ target_link_options (
321+ ${python_module_name}
322+ PRIVATE -fsycl-device-code-split=per_kernel
323+ )
324+ endif ()
320325 if (DPNP_TENSOR_OFFLOAD_COMPRESS)
321326 target_link_options (${python_module_name} PRIVATE --offload-compress )
322327 endif ()
You can’t perform that action at this time.
0 commit comments