Skip to content

Commit 23d59ba

Browse files
authoredSep 13, 2022
Add -mfma to -mavx2 for Apple clang, and set AVX2 options for Zen as well
1 parent 85758ab commit 23d59ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎kernel/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ifeq ($(C_COMPILER), CLANG)
2323
# Any clang posing as gcc 4.2 should be new enough (3.4 or later)
2424
GCCVERSIONCHECK := $(GCCVERSIONGT4)$(GCCVERSIONGTEQ4)$(GCCMINORVERSIONGTEQ2)
2525
ifeq ($(GCCVERSIONCHECK), $(filter $(GCCVERSIONCHECK), 011 110 111))
26-
AVX2OPT = -mavx2
26+
AVX2OPT = -mavx2 -mfma
2727
endif
2828
endif
2929
ifdef NO_AVX2
@@ -73,6 +73,8 @@ else ifeq ($(TARGET_CORE), SKYLAKEX)
7373
endif
7474
else ifeq ($(TARGET_CORE), HASWELL)
7575
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) $(AVX2OPT)
76+
else ifeq ($(TARGET_CORE), ZEN)
77+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) $(AVX2OPT)
7678
else ifeq ($(TARGET_CORE), LOONGSON3R4)
7779
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) $(MSA_FLAGS)
7880
else

0 commit comments

Comments
 (0)
Please sign in to comment.