VTKmCPUVectorization GCC native supports ppc64le

The PowerPC front end uses mcpu instead of march.
This commit is contained in:
Robert Maynard 2019-07-09 11:45:54 -04:00
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)