File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ add_custom_target(_dpctl4pybind11_deps
15
15
_sycl_event_copy_capi_include
16
16
)
17
17
18
+ if (WIN32 )
19
+ set (CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -fsycl-device-code-split=per_kernel -fsycl-link-huge-device-code" )
20
+ endif ()
21
+
18
22
set (python_module_name _tensor_impl )
19
23
pybind11_add_module (${python_module_name} MODULE
20
24
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/tensor_py.cpp
@@ -28,8 +32,8 @@ pybind11_add_module(${python_module_name} MODULE
28
32
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/triul_ctor.cpp
29
33
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/device_support_queries.cpp
30
34
)
31
- target_compile_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
32
- target_compile_options (${python_module_name} PRIVATE -fsycl-link-huge-device-code )
35
+ target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
36
+ target_link_options (${python_module_name} PRIVATE -fsycl-link-huge-device-code )
33
37
target_include_directories (${python_module_name}
34
38
PRIVATE
35
39
${CMAKE_CURRENT_SOURCE_DIR} /../include
You can’t perform that action at this time.
0 commit comments