File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
src/tests/integration/pde_solvers/navier-stokes Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 11if ("${CMAKE_SYSTEM_NAME} " MATCHES "Linux" )
2-
3- # Default to older SSE-instruction-based FFT library
4- if (LEGACY_ARCHITECTURE OR (NOT DEFINED (LEGACY_ARCHITECTURE)))
5- set (fft_library ${CMAKE_CURRENT_SOURCE_DIR} /libfft_sse.a )
6- else ()
7- message (WARNING "Attempting to use libfft_avx.a, which only works on recent x86 architectures." )
8- set (fft_library ${CMAKE_CURRENT_SOURCE_DIR} /libfft_avx.a )
2+ execute_process (COMMAND uname -m
3+ OUTPUT_VARIABLE MACHINE_TYPE)
4+ # checking whether the machine is of type 64-bit before proceeding further
5+ if ("${MACHINE_TYPE} " MATCHES "x86_64" )
6+ # Default to older SSE-instruction-based FFT library
7+ if (LEGACY_ARCHITECTURE OR (NOT DEFINED (LEGACY_ARCHITECTURE)))
8+ set (fft_library ${CMAKE_CURRENT_SOURCE_DIR} /libfft_sse.a )
9+ else ()
10+ message (WARNING "Attempting to use libfft_avx.a, which only works on recent x86 architectures." )
11+ set (fft_library ${CMAKE_CURRENT_SOURCE_DIR} /libfft_avx.a )
12+ endif ()
13+ add_executable ( coarray_navier_stokes
14+ coarray-shear_coll.F90
15+ ${walltime_o}
16+ )
17+ target_link_libraries (coarray_navier_stokes OpenCoarrays ${fft_library} )
918 endif ()
10- add_executable ( coarray_navier_stokes
11- coarray-shear_coll.F90
12- ${walltime_o}
13- )
14- target_link_libraries (coarray_navier_stokes OpenCoarrays ${fft_library} )
1519else ()
1620 # Skip Navier-Stokes build until an appropriate FFT has been found.
1721endif ()
You can’t perform that action at this time.
0 commit comments