File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,15 @@ set_source_files_properties(
62
62
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source /elementwise_functions.cpp
63
63
PROPERTIES COMPILE_OPTIONS "${_clang_prefix} -fno-fast-math" )
64
64
if (UNIX )
65
- set_source_files_properties (
66
- ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/ source /elementwise_functions.cpp
67
- PROPERTIES COMPILE_DEFINITIONS "USE_STD_ABS_FOR_COMPLEX_TYPES;USE_STD_SQRT_FOR_COMPLEX_TYPES; SYCL_EXT_ONEAPI_COMPLEX" )
65
+ set (_compiler_definitions "USE_STD_ABS_FOR_COMPLEX_TYPES;USE_STD_SQRT_FOR_COMPLEX_TYPES;SYCL_EXT_ONEAPI_COMPLEX" )
66
+ else ()
67
+ set (_compiler_definitions " SYCL_EXT_ONEAPI_COMPLEX" )
68
68
endif ()
69
+ set_source_files_properties (
70
+ ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source /elementwise_functions.cpp
71
+ PROPERTIES COMPILE_DEFINITIONS "${_compiler_definitions} "
72
+ )
73
+
69
74
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int)
70
75
target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
71
76
if (UNIX )
You can’t perform that action at this time.
0 commit comments