Skip to content

Commit 005cce5

Browse files
authored
Amend SkylakeX options to support the NVIDIA compiler
1 parent b859b6e commit 005cce5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ifeq ($(TARGET_CORE), COOPERLAKE)
3636
ifeq ($(GCCVERSIONGTEQ10), 1)
3737
override CFLAGS += -march=cooperlake
3838
else
39-
override CFLAGS += -march=skylake-avx512
39+
override CFLAGS += -march=skylake-avx512 -mavx512f
4040
endif
4141
ifeq ($(OSNAME), CYGWIN_NT)
4242
override CFLAGS += -fno-asynchronous-unwind-tables
@@ -47,7 +47,7 @@ ifeq ($(TARGET_CORE), COOPERLAKE)
4747
endif
4848
endif
4949
else ifeq ($(TARGET_CORE), SKYLAKEX)
50-
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=skylake-avx512
50+
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE) -march=skylake-avx512 -mavx512f
5151
ifeq ($(OSNAME), CYGWIN_NT)
5252
override CFLAGS += -fno-asynchronous-unwind-tables
5353
endif

0 commit comments

Comments
 (0)