You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (CMAKE_SYSTEM_PROCESSORMATCHES"ppc|ppc64|powerpc|powerpc64"OR (APPLEAND CMAKE_OSX_ARCHITECTURES MATCHES"ppc|ppc64"))
15
-
# PowerPC arch does not have -march flag.
16
-
set(FINUFFT_ARCH_FLAGS "-mtune=native"CACHESTRING"Compiler flags for specifying target architecture.")
17
-
else ()
18
-
set(FINUFFT_ARCH_FLAGS "-march=native"CACHESTRING"Compiler flags for specifying target architecture.")
16
+
if (CMAKE_CXX_COMPILER_ID IN_LIST GNU_LIKE_FRONTENDS)
17
+
if (CMAKE_SYSTEM_PROCESSORMATCHES"ppc|ppc64|powerpc|powerpc64"OR (APPLEAND CMAKE_OSX_ARCHITECTURES MATCHES"ppc|ppc64"))
18
+
# PowerPC arch does not have -march flag.
19
+
set(FINUFFT_ARCH_FLAGS "-mtune=native"CACHESTRING"Compiler flags for specifying target architecture.")
20
+
else ()
21
+
set(FINUFFT_ARCH_FLAGS "-march=native"CACHESTRING"Compiler flags for specifying target architecture.")
22
+
endif ()
19
23
endif ()
20
24
set(FINUFFT_FFTW_SUFFIX "OpenMP"CACHESTRING"Suffix for FFTW libraries (e.g. OpenMP, Threads etc.)")
21
25
set(FINUFFT_FFTW_LIBRARIES "DEFAULT"CACHESTRING"Specify a custom FFTW library")
@@ -31,7 +35,7 @@ option(FINUFFT_USE_OPENMP "Whether to use OpenMP for parallelization. If disable
31
35
option(FINUFFT_USE_CUDA "Whether to build CUDA accelerated FINUFFT library (libcufinufft). This is completely independent of the main FINUFFT library"OFF)
32
36
option(FINUFFT_USE_CPU "Whether to build the ordinary FINUFFT library (libfinufft)."ON)
33
37
option(FINUFFT_STATIC_LINKING "Whether to link the static FINUFFT library (libfinufft_static)."ON)
34
-
option(FINUFFT_BUILD_DEVEL "Whether to build developement executables"OFF)
38
+
option(FINUFFT_BUILD_DEVEL "Whether to build development executables"OFF)
35
39
# sphinx tag (don't remove): @cmake_opts_end
36
40
37
41
if (FINUFFT_USE_CPU)
@@ -47,10 +51,11 @@ if (FINUFFT_USE_CPU)
47
51
48
52
set(CPM_DOWNLOAD_VERSION 0.38.0)
49
53
set(FFTW_VERSION 3.3.10)
50
-
54
+
set(XTL_VERSION 0.7.7)
55
+
set(XSIMD_VERSION 13.0.0)
51
56
include(cmake/setupCPM.cmake)
52
57
include(cmake/setupFFTW.cmake)
53
-
58
+
include(cmake/setupXSIMD.cmake)
54
59
endif ()
55
60
56
61
if (FINUFFT_BUILD_MATLAB)
@@ -92,8 +97,8 @@ function(enable_asan target)
92
97
93
98
if (CMAKE_CXX_COMPILER_ID IN_LIST FINUFFT_GNU_LIKE_COMPILERS)
0 commit comments