Skip to content

Commit a20344b

Browse files
-fsycl-device-code-split=per_kernel must be passed to linker per compiler team (#799)
1 parent f469af2 commit a20344b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set(python_module_name _tensor_impl)
1919
pybind11_add_module(${python_module_name} MODULE
2020
${CMAKE_CURRENT_SOURCE_DIR}/libtensor/source/tensor_py.cpp
2121
)
22-
target_compile_options(${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
22+
target_link_options(${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
2323
target_include_directories(${python_module_name}
2424
PRIVATE
2525
${CMAKE_CURRENT_SOURCE_DIR}/../include

0 commit comments

Comments
 (0)