Skip to content

Commit d0a6e36

Browse files
authored
Fix rules for running the GEMM3M tests
1 parent 6e3fb2c commit d0a6e36

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

test/Makefile

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,19 @@ endif
246246
ifeq ($(BUILD_COMPLEX),1)
247247
ifeq ($(SUPPORT_GEMM3M),1)
248248
C3=cblat3 cblat3_3m
249+
C3M=cblat3_3m
249250
else
250251
C3=cblat3
252+
C3M=
251253
endif
252254
endif
253255
ifeq ($(BUILD_COMPLEX16),1)
254256
ifeq ($(SUPPORT_GEMM3M),1)
255257
Z3=zblat3 zblat3_3m
258+
Z3M=zblat3_3m
256259
else
257260
Z3=zblat3
261+
Z3M=
258262
endif
259263
endif
260264

@@ -342,28 +346,40 @@ endif
342346
endif
343347

344348

345-
level3_3m: zblat3_3m cblat3_3m
349+
level3_3m: $(C3M) $(Z3M)
346350
ifneq ($(CROSS), 1)
347351
rm -f ?BLAT3_3M.SUMM
352+
ifeq ($(BUILD_COMPLEX),1)
348353
OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 ./cblat3_3m < ./cblat3_3m.dat
349354
@$(GREP) -q FATAL CBLAT3_3M.SUMM && cat CBLAT3_3M.SUMM || exit 0
355+
endif
356+
ifeq ($(BUILD_COMPLEX16),1)
350357
OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 ./zblat3_3m < ./zblat3_3m.dat
351358
@$(GREP) -q FATAL ZBLAT3_3M.SUMM && cat ZBLAT3_3M.SUMM || exit 0
359+
endif
352360
ifdef SMP
353361
rm -f ?BLAT3_3M.SUMM
354362
ifeq ($(USE_OPENMP), 1)
363+
ifeq ($(BUILD_COMPLEX),1)
355364
OMP_NUM_THREADS=2 ./cblat3_3m < ./cblat3_3m.dat
356365
@$(GREP) -q FATAL CBLAT3_3M.SUMM && cat CBLAT3_3M.SUMM || exit 0
366+
endif
367+
ifeq ($(BUILD_COMPLEX16),1)
357368
OMP_NUM_THREADS=2 ./zblat3_3m < ./zblat3_3m.dat
358369
@$(GREP) -q FATAL ZBLAT3_3M.SUMM && cat ZBLAT3_3M.SUMM || exit 0
370+
endif
359371
else
372+
ifeq ($(BUILD_COMPLEX),1)
360373
OPENBLAS_NUM_THREADS=2 ./cblat3_3m < ./cblat3_3m.dat
361374
@$(GREP) -q FATAL CBLAT3_3M.SUMM && cat CBLAT3_3M.SUMM || exit 0
375+
endif
376+
ifeq ($(BUILD_COMPLEX16),1)
362377
OPENBLAS_NUM_THREADS=2 ./zblat3_3m < ./zblat3_3m.dat
363378
@$(GREP) -q FATAL ZBLAT3_3M.SUMM && cat ZBLAT3_3M.SUMM || exit 0
364379
endif
365380
endif
366381
endif
382+
endif
367383

368384

369385

0 commit comments

Comments
 (0)