File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,15 @@ foreach(_src_fn ${_no_fast_math_sources})
75
75
)
76
76
endforeach ()
77
77
if (UNIX )
78
- set_source_files_properties (
79
- ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/elementwise_functions.cpp
80
- PROPERTIES COMPILE_DEFINITIONS "USE_STD_ABS_FOR_COMPLEX_TYPES;USE_STD_SQRT_FOR_COMPLEX_TYPES; SYCL_EXT_ONEAPI_COMPLEX" )
78
+ set ( _compiler_definitions "USE_STD_ABS_FOR_COMPLEX_TYPES;USE_STD_SQRT_FOR_COMPLEX_TYPES;SYCL_EXT_ONEAPI_COMPLEX" )
79
+ else ()
80
+ set ( _compiler_definitions " SYCL_EXT_ONEAPI_COMPLEX" )
81
81
endif ()
82
+ set_source_files_properties (
83
+ ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/elementwise_functions.cpp
84
+ PROPERTIES COMPILE_DEFINITIONS "${_compiler_definitions} "
85
+ )
86
+
82
87
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int )
83
88
target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
84
89
if (UNIX )
You can’t perform that action at this time.
0 commit comments