Skip to content

Commit 8e8651f

Browse files
authored
Supply necessary gcc option for AVX512-capable Ryzens
1 parent 6876360 commit 8e8651f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Makefile.x86_64

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,28 @@ endif
130130
endif
131131
endif
132132

133+
ifeq ($(CORE), ZEN)
134+
ifdef HAVE_AVX512VL
135+
ifndef NO_AVX512
136+
CCOMMON_OPT += -march=skylake-avx512
137+
ifneq ($(F_COMPILER), NAG)
138+
FCOMMON_OPT += -march=skylake-avx512
139+
endif
140+
ifeq ($(OSNAME), CYGWIN_NT)
141+
CCOMMON_OPT += -fno-asynchronous-unwind-tables
142+
FCOMMON_OPT += -fno-asynchronous-unwind-tables
143+
endif
144+
ifeq ($(OSNAME), WINNT)
145+
ifeq ($(C_COMPILER), GCC)
146+
CCOMMON_OPT += -fno-asynchronous-unwind-tables
147+
FCOMMON_OPT += -fno-asynchronous-unwind-tables
148+
endif
149+
endif
150+
endif
151+
endif
152+
endif
153+
154+
133155
ifdef HAVE_AVX2
134156
ifndef NO_AVX2
135157
ifeq ($(C_COMPILER), GCC)

0 commit comments

Comments
 (0)