libflame revision_anchor
Functions
FLA_Gemm_cn_blk_var4.c File Reference

(r)

Functions

FLA_Error FLA_Gemm_cn_blk_var4 (FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
 

Function Documentation

◆ FLA_Gemm_cn_blk_var4()

FLA_Error FLA_Gemm_cn_blk_var4 ( FLA_Obj  alpha,
FLA_Obj  A,
FLA_Obj  B,
FLA_Obj  beta,
FLA_Obj  C,
fla_gemm_t cntl 
)
16{
17 FLA_Obj BL, BR, B0, B1, B2;
18
19 FLA_Obj CL, CR, C0, C1, C2;
20
21 dim_t b;
22
23 FLA_Part_1x2( B, &BL, &BR, 0, FLA_RIGHT );
24
25 FLA_Part_1x2( C, &CL, &CR, 0, FLA_RIGHT );
26
27 while ( FLA_Obj_width( BR ) < FLA_Obj_width( B ) ){
28
30
31 FLA_Repart_1x2_to_1x3( BL, /**/ BR, &B0, &B1, /**/ &B2,
32 b, FLA_LEFT );
33
34 FLA_Repart_1x2_to_1x3( CL, /**/ CR, &C0, &C1, /**/ &C2,
35 b, FLA_LEFT );
36
37 /*------------------------------------------------------------*/
38
39 /* C1 = alpha * A * B1 + C1; */
41 alpha, A, B1, beta, C1,
42 FLA_Cntl_sub_gemm( cntl ) );
43
44 /*------------------------------------------------------------*/
45
46 FLA_Cont_with_1x3_to_1x2( &BL, /**/ &BR, B0, /**/ B1, B2,
47 FLA_RIGHT );
48
49 FLA_Cont_with_1x3_to_1x2( &CL, /**/ &CR, C0, /**/ C1, C2,
50 FLA_RIGHT );
51
52 }
53
54 return FLA_SUCCESS;
55}
FLA_Error FLA_Gemm_internal(FLA_Trans transa, FLA_Trans transb, FLA_Obj alpha, FLA_Obj A, FLA_Obj B, FLA_Obj beta, FLA_Obj C, fla_gemm_t *cntl)
Definition FLA_Gemm_internal.c:16
FLA_Error FLA_Cont_with_1x3_to_1x2(FLA_Obj *AL, FLA_Obj *AR, FLA_Obj A0, FLA_Obj A1, FLA_Obj A2, FLA_Side side)
Definition FLA_View.c:475
dim_t FLA_Obj_width(FLA_Obj obj)
Definition FLA_Query.c:123
FLA_Error FLA_Part_1x2(FLA_Obj A, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition FLA_View.c:110
FLA_Error FLA_Repart_1x2_to_1x3(FLA_Obj AL, FLA_Obj AR, FLA_Obj *A0, FLA_Obj *A1, FLA_Obj *A2, dim_t nb, FLA_Side side)
Definition FLA_View.c:267
dim_t FLA_Determine_blocksize(FLA_Obj A_unproc, FLA_Quadrant to_dir, fla_blocksize_t *cntl_blocksizes)
Definition FLA_Blocksize.c:234
unsigned long dim_t
Definition FLA_type_defs.h:71
int i
Definition bl1_axmyv2.c:145
Definition FLA_type_defs.h:159

References FLA_Cont_with_1x3_to_1x2(), FLA_Determine_blocksize(), FLA_Gemm_internal(), FLA_Obj_width(), FLA_Part_1x2(), FLA_Repart_1x2_to_1x3(), and i.

Referenced by FLA_Gemm_cn().