Skip to content

Commit a4f4662

Browse files
authored
Merge pull request #5397 from omegacoleman/fix-cblas-bgemm
Fix cmake building with cblas_bgemm
2 parents 392d381 + 41f9701 commit a4f4662

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

driver/level3/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ foreach (GEMM_DEFINE ${GEMM_DEFINES})
1414
endif ()
1515
if (BUILD_BFLOAT16)
1616
GenerateNamedObjects("gemm.c" "${GEMM_DEFINE}" "gemm_${GEMM_DEFINE_LC}" 0 "" "" false "BFLOAT16")
17+
GenerateNamedObjects("gemm.c" "${GEMM_DEFINE};BGEMM" "gemm_${GEMM_DEFINE_LC}" 0 "" "" false "BFLOAT16")
1718
if (USE_THREAD AND NOT USE_SIMPLE_THREADED_LEVEL3)
1819
GenerateNamedObjects("gemm.c" "${GEMM_DEFINE};THREADED_LEVEL3" "gemm_thread_${GEMM_DEFINE_LC}" 0 "" "" false "BFLOAT16")
1920
endif ()

interface/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,11 @@ if ( BUILD_COMPLEX16 AND NOT BUILD_DOUBLE)
283283
GenerateNamedObjects("imax.c" "USE_ABS" "i*amax" 0 "" "" false "DOUBLE")
284284
endif ()
285285

286+
if ( BUILD_BFLOAT16 AND NO_FBLAS )
287+
GenerateNamedObjects("tobf16.c" "SINGLE_PREC" "sbstobf16" 0 "" "" true "BFLOAT16")
288+
GenerateNamedObjects("bf16to.c" "SINGLE_PREC" "sbf16tos" 0 "" "" true "BFLOAT16")
289+
endif()
290+
286291
add_library(interface OBJECT ${OPENBLAS_SRC})
287292

288293
if (USE_OPENMP)

0 commit comments

Comments
 (0)