@@ -68,7 +68,7 @@ message(STATUS "======= End of user controlled variables list ======")
68
68
# Compiler-specific logic...
69
69
# -----------------------------------------------------------------------------------------------
70
70
71
- # cmake 3.19.1 has a bug in dpcpp compiler detection. Let's assume it is a clang
71
+ # cmake 3.19.1 has a bug in dpcpp compiler detection. Let's assume it is a clang
72
72
# set(CMAKE_CXX_COMPILER_ID "Clang")
73
73
# set(CMAKE_CXX_COMPILER_VERSION 12.0)
74
74
if (CMAKE_VERSION VERSION_EQUAL 3.19.1 )
@@ -95,11 +95,11 @@ elseif(WIN32)
95
95
set (CMAKE_CXX_COMPILER "dpcpp" )
96
96
# set(CMAKE_SHARED_LINKER_FLAGS_INIT "-fuse-ld=lld-link")
97
97
# set(CMAKE_LINKER "lld-link")
98
- # include (Platform/Windows-Clang)
99
- # set(CMAKE_LINKER "dpcpp")
100
- # set(CMAKE_AR "llvm-ar")
101
- # set(CMAKE_RANLIB "llvm-ranlib")
102
- # set(CMAKE_CXX_FLAGS "/EHsc")
98
+ # include (Platform/Windows-Clang)
99
+ # set(CMAKE_LINKER "dpcpp")
100
+ # set(CMAKE_AR "llvm-ar")
101
+ # set(CMAKE_RANLIB "llvm-ranlib")
102
+ # set(CMAKE_CXX_FLAGS "/EHsc")
103
103
104
104
add_compile_options (/EHsc ) # /Ox /W3 /GL /DNDEBUG /MD /EHsc
105
105
else ()
@@ -113,7 +113,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
113
113
# SYCL related compile options
114
114
add_compile_options (-fsycl )
115
115
add_compile_options (-fsycl-device-code-split=per_kernel )
116
- add_compile_options (-fno-fast-math )
116
+ add_compile_options (-fno-approx-func )
117
117
add_link_options (-fsycl )
118
118
add_link_options (-fsycl-device-code-split=per_kernel )
119
119
@@ -188,7 +188,7 @@ if(DPNP_STATIC_LIB_ENABLE)
188
188
add_library (dpnp_backend_c STATIC ${DPNP_SRC} )
189
189
else ()
190
190
add_library (dpnp_backend_c SHARED ${DPNP_SRC} )
191
- set (CMAKE_POSITION_INDEPENDENT_CODE ON ) # looks like this option doesn't work
191
+ set (CMAKE_POSITION_INDEPENDENT_CODE ON ) # looks like this option doesn't work
192
192
endif ()
193
193
194
194
target_include_directories (dpnp_backend_c PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /include )
@@ -209,7 +209,7 @@ find_package(MathLib REQUIRED)
209
209
add_definitions (-DMKL_ILP64=1 )
210
210
target_include_directories (dpnp_backend_c PUBLIC ${MATHLIB_INCLUDE_DIR} )
211
211
link_directories (dpnp_backend_c PUBLIC ${MATHLIB_LIBRARY_DIR} ) # does not work with some cmake versions
212
- target_link_directories (dpnp_backend_c PUBLIC ${MATHLIB_LIBRARY_DIR} ) # duplicate link_directories
212
+ target_link_directories (dpnp_backend_c PUBLIC ${MATHLIB_LIBRARY_DIR} ) # duplicate link_directories
213
213
214
214
if (UNIX )
215
215
# Link Line Advisor v6.13
@@ -251,12 +251,12 @@ target_include_directories(dpnp_backend_c PUBLIC ${DPL_INCLUDE_DIR})
251
251
# SYCL queue manager
252
252
if (DPNP_SYCL_QUEUE_MGR_ENABLE )
253
253
target_include_directories (dpnp_backend_c PUBLIC ${DPNP_QUEUEMGR_INCLUDE_DIR} )
254
- target_link_directories (dpnp_backend_c PUBLIC ${DPNP_QUEUEMGR_LIB_DIR} )
254
+ target_link_directories (dpnp_backend_c PUBLIC ${DPNP_QUEUEMGR_LIB_DIR} )
255
255
target_link_libraries (dpnp_backend_c PUBLIC "DPCTLSyclInterface" )
256
256
257
257
# not sure but add runpath
258
258
set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH} :${DPNP_QUEUEMGR_LIB_DIR} " )
259
-
259
+
260
260
# disable stripping rpath in installation logic
261
261
set_target_properties (dpnp_backend_c PROPERTIES INSTALL_RPATH_USE_LINK_PATH TRUE )
262
262
else ()
0 commit comments