Browse Source

retain the bf16 capability in fallback versions of the -march option for NeoverseN2

tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
14e71c249d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      Makefile.arm64

+ 4
- 4
Makefile.arm64 View File

@@ -145,13 +145,13 @@ ifeq (1, $(filter 1,$(GCCMINORVERSIONGTEQ4) $(GCCVERSIONGTEQ11) $(ISCLANG)))
ifneq ($(OSNAME), Darwin) ifneq ($(OSNAME), Darwin)
CCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2 CCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
else else
CCOMMON_OPT += -march=armv8.2-a+sve -mtune=cortex-a72
CCOMMON_OPT += -march=armv8.2-a+sve+bf16 -mtune=cortex-a72
endif endif
ifneq ($(F_COMPILER), NAG) ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2 FCOMMON_OPT += -march=armv8.5-a+sve+sve2+bf16 -mtune=neoverse-n2
endif endif
else else
CCOMMON_OPT += -march=armv8.5-a+sve
CCOMMON_OPT += -march=armv8.5-a+sve+bf16
ifneq ($(CROSS), 1) ifneq ($(CROSS), 1)
CCOMMON_OPT += -mtune=native CCOMMON_OPT += -mtune=native
endif endif
@@ -163,13 +163,13 @@ endif
endif endif
endif endif
else else
CCOMMON_OPT += -march=armv8.2-a+sve -mtune=cortex-a72
CCOMMON_OPT += -march=armv8.2-a+sve+bf16 -mtune=cortex-a72
ifneq ($(F_COMPILER), NAG) ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72 FCOMMON_OPT += -march=armv8.2-a -mtune=cortex-a72
endif endif
endif endif
else else
CCOMMON_OPT += -march=armv8-a+sve -mtune=cortex-a72
CCOMMON_OPT += -march=armv8-a+sve+bf16 -mtune=cortex-a72
ifneq ($(F_COMPILER), NAG) ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72 FCOMMON_OPT += -march=armv8-a -mtune=cortex-a72
endif endif


Loading…
Cancel
Save