-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathargs.h
91 lines (71 loc) · 1.13 KB
/
args.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef _ARGS_H
#define _ARGS_H
typedef struct swptex_mmPara{
float *A;
float *B;
float *C;
int M;
int N;
int K;
} swptex_mmPara, *swptex_mmPara_t;
typedef struct sw_bmmPara{
float *A;
float *B;
float *C;
float *Ap;
float *Bp;
float *Cp;
int M;
int Ms;
int Me;
int N;
int Ns;
int Ne;
int K;
int Ks;
int Ke;
int transposeA;
int transposeB;
int blk_M;
int blk_N;
int blk_K;
int counts;
} sw_bmmPara, *sw_bmmPara_t;
typedef struct sw_gemmPara
{
int blk_M;
int blk_N;
int blk_K;
int sli_M[6];
int sli_N[6];
int sli_K[6];
float *A;
float *Ap;
float *A_sli[6];
float *Ap_sli[6];
float *B;
float *Bp;
float *B_sli[6];
float *Bp_sli[6];
float *C;
float *Cp;
float *C_sli[6];
float *Cp_sli[6];
int sli_C;
int M;
int Ms;
int Me;
int N;
int Ns;
int Ne;
int K;
int Ks;
int Ke;
} sw_gemmPara, *sw_gemmPara_t;
typedef struct sw_addmPara{
float* A;
float* B;
float* C;
int MN_size;
} sw_addmPara, *sw_addmPara_t;
#endif