mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
VTKmCPUVectorization GCC native supports ppc64le
The PowerPC front end uses mcpu instead of march.
This commit is contained in:
parent
68a9167ab2
commit
4a5ef8c6ad
@ -82,6 +82,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
|
||||
#common flags for the avx and avx2 instructions for the gcc compiler
|
||||
set(native_flags -march=native)
|
||||
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "ppc64le")
|
||||
#GCC PowerPC font end doesn't support the march flag
|
||||
set(native_flags -mcpu=native -mtune=native)
|
||||
endif()
|
||||
|
||||
set(avx_flags -mavx)
|
||||
set(avx2_flags ${avx_flags} -mf16c -mavx2 -mfma -mlzcnt -mbmi -mbmi2)
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)
|
||||
|
Loading…
Reference in New Issue
Block a user