Skip to content

Commit 1ca05e6

Browse files
authored
Update system.cmake
1 parent e030be3 commit 1ca05e6

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

cmake/system.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ if (DEFINED TARGET)
316316
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mcpu=power8 -mtune=power8 -mvsx -fno-fast-math")
317317
endif()
318318

319+
if (${TARGET} STREQUAL Z13)
320+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=z13 -mzvector"
321+
endif()
322+
if (${TARGET} STREQUAL Z14)
323+
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=z14 -mzvector"
324+
endif()
325+
319326
if (${TARGET} STREQUAL NEOVERSEV1)
320327
if (${CMAKE_C_COMPILER_ID} STREQUAL "PGI" AND NOT NO_SVE)
321328
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -Msve_intrinsics -march=armv8.4-a+sve+bf16 -mtune=neoverse-v1")
@@ -485,7 +492,7 @@ if (SMALL_MATRIX_OPT)
485492
endif ()
486493

487494
if (DYNAMIC_ARCH)
488-
if (X86 OR X86_64 OR ARM64 OR POWER OR RISCV64 OR LOONGARCH64)
495+
if (X86 OR X86_64 OR ARM64 OR POWER OR RISCV64 OR LOONGARCH64 OR ZARCH)
489496
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_ARCH")
490497
if (DYNAMIC_OLDER)
491498
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_OLDER")

0 commit comments

Comments
 (0)