Skip to content

Commit 006c7f6

Browse files
authored
Change "HALF" and "sh" to "BFLOAT16" and "sb"
1 parent 85154c2 commit 006c7f6

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

driver/level3/Makefile

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ ifeq ($(ARCH), MIPS)
1919
USE_GEMM3M = 1
2020
endif
2121

22-
ifeq ($(BUILD_HALF),1)
23-
SHBLASOBJS += shgemm_nn.$(SUFFIX) shgemm_nt.$(SUFFIX) shgemm_tn.$(SUFFIX) shgemm_tt.$(SUFFIX)
22+
ifeq ($(BUILD_BFLOAT16),1)
23+
SHBLASOBJS += sbgemm_nn.$(SUFFIX) sbgemm_nt.$(SUFFIX) sbgemm_tn.$(SUFFIX) sbgemm_tt.$(SUFFIX)
2424
endif
2525

2626
SBLASOBJS += \
@@ -207,8 +207,8 @@ COMMONOBJS += gemm_thread_m.$(SUFFIX) gemm_thread_n.$(SUFFIX) gemm_thread_mn.$(
207207
COMMONOBJS += syrk_thread.$(SUFFIX)
208208

209209
ifndef USE_SIMPLE_THREADED_LEVEL3
210-
ifeq ($(BUILD_HALF),1)
211-
SHBLASOBJS += shgemm_thread_nn.$(SUFFIX) shgemm_thread_nt.$(SUFFIX) shgemm_thread_tn.$(SUFFIX) shgemm_thread_tt.$(SUFFIX)
210+
ifeq ($(BUILD_BFLOAT16),1)
211+
SHBLASOBJS += sbgemm_thread_nn.$(SUFFIX) sbgemm_thread_nt.$(SUFFIX) sbgemm_thread_tn.$(SUFFIX) sbgemm_thread_tt.$(SUFFIX)
212212
endif
213213
SBLASOBJS += sgemm_thread_nn.$(SUFFIX) sgemm_thread_nt.$(SUFFIX) sgemm_thread_tn.$(SUFFIX) sgemm_thread_tt.$(SUFFIX)
214214
DBLASOBJS += dgemm_thread_nn.$(SUFFIX) dgemm_thread_nt.$(SUFFIX) dgemm_thread_tn.$(SUFFIX) dgemm_thread_tt.$(SUFFIX)
@@ -343,16 +343,16 @@ endif
343343

344344
all ::
345345

346-
shgemm_nn.$(SUFFIX) : gemm.c level3.c ../../param.h
346+
sbgemm_nn.$(SUFFIX) : gemm.c level3.c ../../param.h
347347
$(CC) $(CFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DNN $< -o $(@F)
348348

349-
shgemm_nt.$(SUFFIX) : gemm.c level3.c ../../param.h
349+
sbgemm_nt.$(SUFFIX) : gemm.c level3.c ../../param.h
350350
$(CC) $(CFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DNT $< -o $(@F)
351351

352-
shgemm_tn.$(SUFFIX) : gemm.c level3.c ../../param.h
352+
sbgemm_tn.$(SUFFIX) : gemm.c level3.c ../../param.h
353353
$(CC) $(CFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DTN $< -o $(@F)
354354

355-
shgemm_tt.$(SUFFIX) : gemm.c level3.c ../../param.h
355+
sbgemm_tt.$(SUFFIX) : gemm.c level3.c ../../param.h
356356
$(CC) $(CFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DTT $< -o $(@F)
357357

358358
sgemm_nn.$(SUFFIX) : gemm.c level3.c ../../param.h
@@ -550,16 +550,16 @@ gemm_thread_variable.$(SUFFIX) : gemm_thread_variable.c ../../common.h
550550
beta_thread.$(SUFFIX) : beta_thread.c ../../common.h
551551
$(CC) -c $(CFLAGS) $< -o $(@F)
552552

553-
shgemm_thread_nn.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
553+
sbgemm_thread_nn.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
554554
$(CC) $(CFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DNN $< -o $(@F)
555555

556-
shgemm_thread_nt.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
556+
sbgemm_thread_nt.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
557557
$(CC) $(CFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DNT $< -o $(@F)
558558

559-
shgemm_thread_tn.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
559+
sbgemm_thread_tn.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
560560
$(CC) $(CFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DTN $< -o $(@F)
561561

562-
shgemm_thread_tt.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
562+
sbgemm_thread_tt.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
563563
$(CC) $(CFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DTT $< -o $(@F)
564564

565565
sgemm_thread_nn.$(SUFFIX) : gemm.c level3_thread.c ../../param.h
@@ -2735,16 +2735,16 @@ xtrsm_RCLU.$(SUFFIX) : trsm_R.c
27352735
xtrsm_RCLN.$(SUFFIX) : trsm_R.c
27362736
$(CC) -c $(CFLAGS) -DCOMPLEX -DXDOUBLE -DTRANSA -UUPPER -UUNIT -DCONJ $< -o $(@F)
27372737

2738-
shgemm_nn.$(PSUFFIX) : gemm.c level3.c ../../param.h
2738+
sbgemm_nn.$(PSUFFIX) : gemm.c level3.c ../../param.h
27392739
$(CC) $(PFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DNN $< -o $(@F)
27402740

2741-
shgemm_nt.$(PSUFFIX) : gemm.c level3.c ../../param.h
2741+
sbgemm_nt.$(PSUFFIX) : gemm.c level3.c ../../param.h
27422742
$(CC) $(PFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DNT $< -o $(@F)
27432743

2744-
shgemm_tn.$(PSUFFIX) : gemm.c level3.c ../../param.h
2744+
sbgemm_tn.$(PSUFFIX) : gemm.c level3.c ../../param.h
27452745
$(CC) $(PFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DTN $< -o $(@F)
27462746

2747-
shgemm_tt.$(PSUFFIX) : gemm.c level3.c ../../param.h
2747+
sbgemm_tt.$(PSUFFIX) : gemm.c level3.c ../../param.h
27482748
$(CC) $(PFLAGS) $(BLOCKS) -c -DHALF -UDOUBLE -UCOMPLEX -DTT $< -o $(@F)
27492749

27502750
sgemm_nn.$(PSUFFIX) : gemm.c level3.c ../../param.h
@@ -2943,16 +2943,16 @@ beta_thread.$(PSUFFIX) : beta_thread.c ../../common.h
29432943
$(CC) -c $(PFLAGS) $< -o $(@F)
29442944

29452945

2946-
shgemm_thread_nn.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
2946+
sbgemm_thread_nn.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
29472947
$(CC) $(PFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DNN $< -o $(@F)
29482948

2949-
shgemm_thread_nt.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
2949+
sbgemm_thread_nt.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
29502950
$(CC) $(PFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DNT $< -o $(@F)
29512951

2952-
shgemm_thread_tn.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
2952+
sbgemm_thread_tn.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
29532953
$(CC) $(PFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DTN $< -o $(@F)
29542954

2955-
shgemm_thread_tt.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
2955+
sbgemm_thread_tt.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h
29562956
$(CC) $(PFLAGS) $(BLOCKS) -c -DTHREADED_LEVEL3 -DHALF -UDOUBLE -UCOMPLEX -DTT $< -o $(@F)
29572957

29582958
sgemm_thread_nn.$(PSUFFIX) : gemm.c level3_thread.c ../../param.h

0 commit comments

Comments
 (0)