File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,15 @@ set_source_files_properties(
58
58
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/linear_sequences.cpp
59
59
${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/elementwise_functions.cpp
60
60
PROPERTIES COMPILE_OPTIONS "${_clang_prefix} -fno-fast-math" )
61
+ if (UNIX )
62
+ set_source_files_properties (
63
+ ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source/elementwise_functions.cpp
64
+ PROPERTIES COMPILE_DEFINITIONS "USE_STD_ABS_FOR_COMPLEX_TYPES;USE_STD_SQRT_FOR_COMPLEX_TYPES" )
65
+ endif ()
61
66
target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int )
62
67
target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel )
63
68
if (UNIX )
64
- # this option is support on Linux only
69
+ # this option is supported on Linux only
65
70
target_link_options (${python_module_name} PRIVATE -fsycl-link-huge-device-code )
66
71
endif ()
67
72
target_include_directories (${python_module_name}
You can’t perform that action at this time.
0 commit comments