Skip to content

Commit 1690982

Browse files
authored
Merge pull request #5644 from martin-frbg/issue5641
Work around llvm failing to compile the AVX512 sgemm kernel
2 parents 5613deb + ea82d80 commit 1690982

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile.x86_64

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ endif
6161
ifeq ($(CORE), SKYLAKEX)
6262
ifndef NO_AVX512
6363
CCOMMON_OPT += -march=skylake-avx512
64+
ifeq ($(C_COMPILER), CLANG)
65+
CCOMMON_OPT += -mllvm -exhaustive-register-search
66+
endif
6467
ifneq ($(F_COMPILER), NAG)
6568
FCOMMON_OPT += -march=skylake-avx512
6669
endif
@@ -93,6 +96,7 @@ ifeq ($(C_COMPILER), GCC)
9396
endif
9497
endif
9598
else ifeq ($(C_COMPILER), CLANG)
99+
CCOMMON_OPT += -mllvm -exhaustive-register-search
96100
# cooperlake support was added in clang 9
97101
ifeq ($(CLANGVERSIONGTEQ9), 1)
98102
CCOMMON_OPT += -march=cooperlake
@@ -135,6 +139,7 @@ ifeq ($(C_COMPILER), GCC)
135139
endif
136140
endif
137141
else ifeq ($(C_COMPILER), CLANG)
142+
CCOMMON_OPT += -mllvm -exhaustive-register-search
138143
# sapphire rapids support was added in clang 12
139144
ifeq ($(CLANGVERSIONGTEQ12), 1)
140145
CCOMMON_OPT += -march=sapphirerapids

0 commit comments

Comments
 (0)