File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,18 @@ endif()
2121if (BUILD_COMPLEX16)
2222 list (APPEND OpenBLAS_Tests zblat1 zblat2 zblat3)
2323endif ()
24- message (STATUS CCOMP ${CMAKE_C_COMPILER_ID} FCOMP ${CMAKE_Fortran_COMPILER_ID} )
24+
25+ set (USE_GEMM3M 0)
26+ if (${ARCH} MATCHES x86|x86_64|ia64|mips)
27+ set (USE_GEMM3M 1)
28+ if (BUILD_COMPLEX)
29+ list (APPEND OpenBLAS_Tests cblat3_3m)
30+ endif ()
31+ if (BUILD_COMPLEX16)
32+ list (APPEND OpenBLAS_Tests zblat3_3m)
33+ endif ()
34+ endif ()
35+
2536foreach (test_bin ${OpenBLAS_Tests} )
2637 add_executable (${test_bin} ${test_bin} .f )
2738target_link_libraries (${test_bin} ${OpenBLAS_LIBNAME} )
@@ -82,4 +93,10 @@ add_test(NAME "${float_type}blas2"
8293 COMMAND ${helper_prefix} $<TARGET_FILE :${float_type} blat2 > "${PROJECT_SOURCE_DIR} /test/${float_type} blat2.dat" ${float_type_upper} BLAT2.SUMM )
8394add_test (NAME "${float_type} blas3"
8495 COMMAND ${helper_prefix} $<TARGET_FILE :${float_type} blat3 > "${PROJECT_SOURCE_DIR} /test/${float_type} blat3.dat" ${float_type_upper} BLAT3.SUMM )
96+ if (USE_GEMM3M)
97+ if ((${float_type} STREQUAL "c" ) OR (${float_type} STREQUAL "z" ))
98+ add_test (NAME "${float_type} blas3_3m"
99+ COMMAND ${helper_prefix} $<TARGET_FILE :${float_type} blat3_3m > "${PROJECT_SOURCE_DIR} /test/${float_type} blat3_3m.dat" ${float_type_upper} BLAT3_3M.SUMM )
100+ endif ()
101+ endif ()
85102endforeach ()
Original file line number Diff line number Diff line change @@ -4,6 +4,24 @@ ifeq ($(F_COMPILER),GFORTRAN)
44 override FFLAGS += -fno-tree-vectorize
55endif
66
7+ SUPPORT_GEMM3M = 0
8+
9+ ifeq ($(ARCH ) , x86)
10+ SUPPORT_GEMM3M = 1
11+ endif
12+
13+ ifeq ($(ARCH ) , x86_64)
14+ SUPPORT_GEMM3M = 1
15+ endif
16+
17+ ifeq ($(ARCH ) , ia64)
18+ SUPPORT_GEMM3M = 1
19+ endif
20+
21+ ifeq ($(ARCH ) , MIPS)
22+ SUPPORT_GEMM3M = 1
23+ endif
24+
725ifeq ($(NOFORTRAN ) ,1)
826all ::
927else
@@ -153,11 +171,20 @@ ifeq ($(BUILD_DOUBLE),1)
153171D3 =dblat3
154172endif
155173ifeq ($(BUILD_COMPLEX ) ,1)
174+ ifeq ($(SUPPORT_GEMM3M ) ,1)
175+ C3 =cblat3 cblat3_3m
176+ else
156177C3 =cblat3
157178endif
179+ endif
158180ifeq ($(BUILD_COMPLEX16 ) ,1)
181+ ifeq ($(SUPPORT_GEMM3M ) ,1)
182+ Z3 =zblat3 zblat3_3m
183+ else
159184Z3 =zblat3
160185endif
186+ endif
187+
161188
162189level3 : $(B3 ) $(S3 ) $(D3 ) $(C3 ) $(Z3 )
163190
You can’t perform that action at this time.
0 commit comments