Browse Source

Fix Clang sapphire rapids march flag

tags/v0.3.27
Ian McInerney 1 year ago
parent
commit
8f4e325ea8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      Makefile.x86_64

+ 3
- 3
Makefile.x86_64 View File

@@ -130,11 +130,11 @@ ifeq ($(C_COMPILER), GCC)
endif
endif
else ifeq ($(C_COMPILER), CLANG)
# cooperlake support was added in clang 12
# sapphire rapids support was added in clang 12
ifeq ($(CLANGVERSIONGTEQ12), 1)
CCOMMON_OPT += -march=cooperlake
CCOMMON_OPT += -march=sapphirerapids
ifneq ($(F_COMPILER), NAG)
FCOMMON_OPT += -march=cooperlake
FCOMMON_OPT += -march=sapphirerapids
endif
else # not supported in clang, fallback to avx512
CCOMMON_OPT += -march=skylake-avx512


Loading…
Cancel
Save