Skip to content

Commit 7639f2e

Browse files
authored
Rewrite the conditional for OSX to fix cmake parsing on others
The Makefile variable parser in utils.cmake currently does not handle conditionals. Having the definitions for non-OSX last will at least make cmake builds work again on non-OSX platforms.
1 parent 2fc7124 commit 7639f2e

File tree

1 file changed

+31
-32
lines changed

1 file changed

+31
-32
lines changed

kernel/arm64/KERNEL.ARMV8

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,38 @@ CDOTKERNEL = zdot.S
104104
ZDOTKERNEL = zdot.S
105105
DSDOTKERNEL = dot.S
106106

107-
ifneq ($(OS_DARWIN)$(CROSS),11)
107+
ifeq ($(OS_DARWIN)$(CROSS),11)
108+
109+
STRMMKERNEL = ../generic/trmmkernel_2x2.c
110+
DTRMMKERNEL = ../generic/trmmkernel_2x2.c
111+
CTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
112+
ZTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
113+
114+
SGEMMKERNEL = ../generic/gemmkernel_2x2.c
115+
SGEMMONCOPY = ../generic/gemm_ncopy_2.c
116+
SGEMMOTCOPY = ../generic/gemm_tcopy_2.c
117+
SGEMMONCOPYOBJ = sgemm_oncopy$(TSUFFIX).$(SUFFIX)
118+
SGEMMOTCOPYOBJ = sgemm_otcopy$(TSUFFIX).$(SUFFIX)
108119

120+
DGEMMKERNEL = ../generic/gemmkernel_2x2.c
121+
DGEMMONCOPY = ../generic/gemm_ncopy_2.c
122+
DGEMMOTCOPY = ../generic/gemm_tcopy_2.c
123+
DGEMMONCOPYOBJ = dgemm_oncopy$(TSUFFIX).$(SUFFIX)
124+
DGEMMOTCOPYOBJ = dgemm_otcopy$(TSUFFIX).$(SUFFIX)
125+
126+
CGEMMKERNEL = ../generic/zgemmkernel_2x2.c
127+
CGEMMONCOPY = ../generic/zgemm_ncopy_2.c
128+
CGEMMOTCOPY = ../generic/zgemm_tcopy_2.c
129+
CGEMMONCOPYOBJ = cgemm_oncopy$(TSUFFIX).$(SUFFIX)
130+
CGEMMOTCOPYOBJ = cgemm_otcopy$(TSUFFIX).$(SUFFIX)
131+
132+
ZGEMMKERNEL = ../generic/zgemmkernel_2x2.c
133+
ZGEMMONCOPY = ../generic/zgemm_ncopy_2.c
134+
ZGEMMOTCOPY = ../generic/zgemm_tcopy_2.c
135+
ZGEMMONCOPYOBJ = zgemm_oncopy$(TSUFFIX).$(SUFFIX)
136+
ZGEMMOTCOPYOBJ = zgemm_otcopy$(TSUFFIX).$(SUFFIX)
137+
138+
else
109139
SGEMMKERNEL = sgemm_kernel_$(SGEMM_UNROLL_M)x$(SGEMM_UNROLL_N).S
110140
STRMMKERNEL = strmm_kernel_$(SGEMM_UNROLL_M)x$(SGEMM_UNROLL_N).S
111141
ifneq ($(SGEMM_UNROLL_M), $(SGEMM_UNROLL_N))
@@ -173,35 +203,4 @@ ZGEMMOTCOPY = ../generic/zgemm_tcopy_$(ZGEMM_UNROLL_N).c
173203
ZGEMMONCOPYOBJ = zgemm_oncopy$(TSUFFIX).$(SUFFIX)
174204
ZGEMMOTCOPYOBJ = zgemm_otcopy$(TSUFFIX).$(SUFFIX)
175205

176-
else
177-
178-
STRMMKERNEL = ../generic/trmmkernel_2x2.c
179-
DTRMMKERNEL = ../generic/trmmkernel_2x2.c
180-
CTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
181-
ZTRMMKERNEL = ../generic/ztrmmkernel_2x2.c
182-
183-
SGEMMKERNEL = ../generic/gemmkernel_2x2.c
184-
SGEMMONCOPY = ../generic/gemm_ncopy_2.c
185-
SGEMMOTCOPY = ../generic/gemm_tcopy_2.c
186-
SGEMMONCOPYOBJ = sgemm_oncopy$(TSUFFIX).$(SUFFIX)
187-
SGEMMOTCOPYOBJ = sgemm_otcopy$(TSUFFIX).$(SUFFIX)
188-
189-
DGEMMKERNEL = ../generic/gemmkernel_2x2.c
190-
DGEMMONCOPY = ../generic/gemm_ncopy_2.c
191-
DGEMMOTCOPY = ../generic/gemm_tcopy_2.c
192-
DGEMMONCOPYOBJ = dgemm_oncopy$(TSUFFIX).$(SUFFIX)
193-
DGEMMOTCOPYOBJ = dgemm_otcopy$(TSUFFIX).$(SUFFIX)
194-
195-
CGEMMKERNEL = ../generic/zgemmkernel_2x2.c
196-
CGEMMONCOPY = ../generic/zgemm_ncopy_2.c
197-
CGEMMOTCOPY = ../generic/zgemm_tcopy_2.c
198-
CGEMMONCOPYOBJ = cgemm_oncopy$(TSUFFIX).$(SUFFIX)
199-
CGEMMOTCOPYOBJ = cgemm_otcopy$(TSUFFIX).$(SUFFIX)
200-
201-
ZGEMMKERNEL = ../generic/zgemmkernel_2x2.c
202-
ZGEMMONCOPY = ../generic/zgemm_ncopy_2.c
203-
ZGEMMOTCOPY = ../generic/zgemm_tcopy_2.c
204-
ZGEMMONCOPYOBJ = zgemm_oncopy$(TSUFFIX).$(SUFFIX)
205-
ZGEMMOTCOPYOBJ = zgemm_otcopy$(TSUFFIX).$(SUFFIX)
206-
207206
endif

0 commit comments

Comments
 (0)