@@ -119,12 +119,20 @@ endif
119
119
120
120
DGEMMKERNEL = dgemm_kernel_$(DGEMM_UNROLL_M)x$(DGEMM_UNROLL_N)_zvl256b.c
121
121
DGEMMONCOPY = ../generic/gemm_ncopy_$(DGEMM_UNROLL_N).c
122
+ ifneq ($(filter $(DGEMM_UNROLL_N),4 8 16),)
123
+ DGEMMOTCOPY = gemm_tcopy_$(DGEMM_UNROLL_N)_rvv.c
124
+ else
122
125
DGEMMOTCOPY = ../generic/gemm_tcopy_$(DGEMM_UNROLL_N).c
126
+ endif
123
127
DGEMMONCOPYOBJ = dgemm_oncopy$(TSUFFIX).$(SUFFIX)
124
128
DGEMMOTCOPYOBJ = dgemm_otcopy$(TSUFFIX).$(SUFFIX)
125
129
ifneq ($(DGEMM_UNROLL_M), $(DGEMM_UNROLL_N))
126
130
DGEMMINCOPY = ../generic/gemm_ncopy_$(DGEMM_UNROLL_M).c
131
+ ifneq ($(filter $(DGEMM_UNROLL_M),4 8 16),)
132
+ DGEMMITCOPY = gemm_tcopy_$(DGEMM_UNROLL_M)_rvv.c
133
+ else
127
134
DGEMMITCOPY = ../generic/gemm_tcopy_$(DGEMM_UNROLL_M).c
135
+ endif
128
136
DGEMMINCOPYOBJ = dgemm_incopy$(TSUFFIX).$(SUFFIX)
129
137
DGEMMITCOPYOBJ = dgemm_itcopy$(TSUFFIX).$(SUFFIX)
130
138
endif
@@ -226,13 +234,23 @@ SOMATCOPY_CT = omatcopy_ct_rvv.c
226
234
ifeq ($(BUILD_HFLOAT16), 1)
227
235
SHGEMMKERNEL = shgemm_kernel_$(SHGEMM_UNROLL_M)x$(SHGEMM_UNROLL_N)_zvl256b.c
228
236
ifneq ($(SHGEMM_UNROLL_M), $(SHGEMM_UNROLL_N))
237
+ ifneq ($(filter $(SHGEMM_UNROLL_M),8 16),)
238
+ SHGEMMINCOPY = gemm_ncopy_$(SHGEMM_UNROLL_M)fp_rvv.c
239
+ SHGEMMITCOPY = gemm_tcopy_$(SHGEMM_UNROLL_M)fp_rvv.c
240
+ else
229
241
SHGEMMINCOPY = ../generic/gemm_ncopy_$(SHGEMM_UNROLL_M).c
230
242
SHGEMMITCOPY = ../generic/gemm_tcopy_$(SHGEMM_UNROLL_M).c
243
+ endif
231
244
SHGEMMINCOPYOBJ = shgemm_incopy$(TSUFFIX).$(SUFFIX)
232
245
SHGEMMITCOPYOBJ = shgemm_itcopy$(TSUFFIX).$(SUFFIX)
233
246
endif
247
+ ifneq ($(filter $(SHGEMM_UNROLL_N),8 16),)
248
+ SHGEMMONCOPY = gemm_ncopy_$(SHGEMM_UNROLL_N)fp_rvv.c
249
+ SHGEMMOTCOPY = gemm_tcopy_$(SHGEMM_UNROLL_N)fp_rvv.c
250
+ else
234
251
SHGEMMONCOPY = ../generic/gemm_ncopy_$(SHGEMM_UNROLL_N).c
235
252
SHGEMMOTCOPY = ../generic/gemm_tcopy_$(SHGEMM_UNROLL_N).c
253
+ endif
236
254
SHGEMMONCOPYOBJ = shgemm_oncopy$(TSUFFIX).$(SUFFIX)
237
255
SHGEMMOTCOPYOBJ = shgemm_otcopy$(TSUFFIX).$(SUFFIX)
238
256
ifndef SHGEMM_BETA
@@ -243,13 +261,23 @@ endif
243
261
ifeq ($(BUILD_BFLOAT16), 1)
244
262
SBGEMMKERNEL = sbgemm_kernel_$(SBGEMM_UNROLL_M)x$(SBGEMM_UNROLL_N)_zvl256b.c
245
263
ifneq ($(SBGEMM_UNROLL_M), $(SBGEMM_UNROLL_N))
264
+ ifneq ($(filter $(SBGEMM_UNROLL_M),8 16),)
265
+ SBGEMMINCOPY = gemm_ncopy_$(SBGEMM_UNROLL_M)fp_rvv.c
266
+ SBGEMMITCOPY = gemm_tcopy_$(SBGEMM_UNROLL_M)fp_rvv.c
267
+ else
246
268
SBGEMMINCOPY = ../generic/gemm_ncopy_$(SBGEMM_UNROLL_M).c
247
269
SBGEMMITCOPY = ../generic/gemm_tcopy_$(SBGEMM_UNROLL_M).c
270
+ endif
248
271
SBGEMMINCOPYOBJ = sbgemm_incopy$(TSUFFIX).$(SUFFIX)
249
272
SBGEMMITCOPYOBJ = sbgemm_itcopy$(TSUFFIX).$(SUFFIX)
250
273
endif
274
+ ifneq ($(filter $(SBGEMM_UNROLL_N),8 16),)
275
+ SBGEMMONCOPY = gemm_ncopy_$(SBGEMM_UNROLL_N)fp_rvv.c
276
+ SBGEMMOTCOPY = gemm_tcopy_$(SBGEMM_UNROLL_N)fp_rvv.c
277
+ else
251
278
SBGEMMONCOPY = ../generic/gemm_ncopy_$(SBGEMM_UNROLL_N).c
252
279
SBGEMMOTCOPY = ../generic/gemm_tcopy_$(SBGEMM_UNROLL_N).c
280
+ endif
253
281
SBGEMMONCOPYOBJ = sbgemm_oncopy$(TSUFFIX).$(SUFFIX)
254
282
SBGEMMOTCOPYOBJ = sbgemm_otcopy$(TSUFFIX).$(SUFFIX)
255
283
ifndef SBGEMM_BETA
0 commit comments