Skip to content

Commit 7a97c4c

Browse files
committed
Rename HALF -> BFLOAT16 in some more places
1 parent ee6560c commit 7a97c4c

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

driver/level3/level3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*********************************************************************/
22
/* Copyright 2009, 2010 The University of Texas at Austin. */
3+
/* Copyright 2025 The OpenBLAS Project. */
34
/* All rights reserved. */
45
/* */
56
/* Redistribution and use in source and binary forms, with or */
@@ -305,7 +306,7 @@ int CNAME(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n,
305306
}
306307

307308
BLASLONG pad_min_l = min_l;
308-
#if defined(HALF)
309+
#if defined(BFLOAT16)
309310
#if defined(DYNAMIC_ARCH)
310311
pad_min_l = (min_l + gotoblas->sbgemm_align_k - 1) & ~(gotoblas->sbgemm_align_k-1);
311312
#else

driver/level3/level3_thread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*********************************************************************/
22
/* Copyright 2009, 2010 The University of Texas at Austin. */
3-
/* Copyright 2023 The OpenBLAS Project. */
3+
/* Copyright 2023, 2025 The OpenBLAS Project. */
44
/* All rights reserved. */
55
/* */
66
/* Redistribution and use in source and binary forms, with or */
@@ -324,7 +324,7 @@ static int inner_thread(blas_arg_t *args, BLASLONG *range_m, BLASLONG *range_n,
324324

325325
BLASLONG pad_min_l = min_l;
326326

327-
#if defined(HALF)
327+
#if defined(BFLOAT16)
328328
#if defined(DYNAMIC_ARCH)
329329
pad_min_l = (min_l + gotoblas->sbgemm_align_k - 1) & ~(gotoblas->sbgemm_align_k-1);
330330
#else

lapack/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ GenerateNamedObjects("laswp/generic/laswp_k_4.c" "" "laswp_plus" false "" "" fa
5252
GenerateNamedObjects("laswp/generic/laswp_k_4.c" "MINUS" "laswp_minus" false "" "" false 3)
5353

5454
foreach (float_type ${FLOAT_TYPES})
55-
if (${float_type} STREQUAL "HALF")
55+
if (${float_type} STREQUAL "BFLOAT16")
5656
continue()
5757
endif()
5858
GenerateNamedObjects("getrf/getrf_single.c" "UNIT" "getrf_single" false "" "" false ${float_type})

lapack/potrf/potrf_parallel.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*********************************************************************/
22
/* Copyright 2009, 2010 The University of Texas at Austin. */
3+
/* Copyright 2025 The OpenBLAS Project. */
34
/* All rights reserved. */
45
/* */
56
/* Redistribution and use in source and binary forms, with or */
@@ -405,7 +406,7 @@ static int thread_driver(blas_arg_t *args, FLOAT *sa, FLOAT *sb){
405406
#elif defined(DOUBLE)
406407
mode = BLAS_DOUBLE | BLAS_REAL;
407408
mask = MAX(DGEMM_UNROLL_M, DGEMM_UNROLL_N) - 1;
408-
#elif defined(HALF)
409+
#elif defined(BFLOAT16)
409410
mode = BLAS_HALF | BLAS_REAL;
410411
mask = MAX(SBGEMM_UNROLL_M, SBGEMM_UNROLL_N) - 1;
411412
#else

0 commit comments

Comments
 (0)