Added support to detect ppc64* processors
This commit is contained in:
parent
a063f2e4d3
commit
f3e212361d
1 changed files with 4 additions and 1 deletions
|
@ -359,8 +359,11 @@ elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "^(x86_64|i686|AMD64)$")
|
||||||
add_compile_options(-mavx512vnni)
|
add_compile_options(-mavx512vnni)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
elseif (${CMAKE_SYSTEM_PROCESSOR} MATCHES "ppc64")
|
||||||
|
message(STATUS "PowerPC detected")
|
||||||
|
add_compile_options(-mcpu=native -mtune=native)
|
||||||
|
#TODO: Add targets for Power8/Power9 (Altivec/VSX) and Power10(MMA) and query for big endian systems (ppc64/le/be)
|
||||||
else()
|
else()
|
||||||
# TODO: support PowerPC
|
|
||||||
message(STATUS "Unknown architecture")
|
message(STATUS "Unknown architecture")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue