File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
examples/pybind11/onemkl_gemv Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,14 @@ target_link_libraries(${py_module_name}
51
51
install (TARGETS ${py_module_name} DESTINATION sycl_gemm )
52
52
target_include_directories (${py_module_name} PUBLIC ${Dpctl_INCLUDE_DIRS} )
53
53
54
- get_target_property (_sycl_gemm_sources ${py_module_name} SOURCES )
55
- set_source_files_properties (${_sycl_gemm_sources}
56
- PROPERTIES
57
- COMPILE_OPTIONS "-O3"
58
- )
54
+ foreach (_src_fn ${_sources} )
55
+ get_source_file_property (_compile_options ${_src_fn} COMPILE_OPTIONS )
56
+ set (_combined_options ${_compile_options} "-O3" )
57
+ set_source_files_properties (${_src_fn}
58
+ PROPERTIES
59
+ COMPILE_OPTIONS ${_combined_options}
60
+ )
61
+ endforeach ()
59
62
target_link_options (${py_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
60
63
61
64
add_executable (standalone_cpp
You can’t perform that action at this time.
0 commit comments