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 @@ -62,10 +62,15 @@ set_source_files_properties(
6262 ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source /elementwise_functions.cpp
6363 PROPERTIES COMPILE_OPTIONS "${_clang_prefix} -fno-fast-math" )
6464if (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" )
6868endif ()
69+ set_source_files_properties (
70+ ${CMAKE_CURRENT_SOURCE_DIR} /libtensor/source /elementwise_functions.cpp
71+ PROPERTIES COMPILE_DEFINITIONS "${_compiler_definitions} "
72+ )
73+
6974target_compile_options (${python_module_name} PRIVATE -fno-sycl-id-queries-fit-in-int)
7075target_link_options (${python_module_name} PRIVATE -fsycl-device-code-split=per_kernel)
7176if (UNIX )
You can’t perform that action at this time.
0 commit comments