PandA-2024.02
examples
MachSuite
MachSuite
gemm
ncubed
gemm.c
Go to the documentation of this file.
1
#include "
gemm.h
"
2
3
void
gemm
(
TYPE
m1
[
N
],
TYPE
m2
[N],
TYPE
prod[N] ){
4
int
i, j,
k
;
5
int
k_col, i_col;
6
TYPE
mult;
7
8
outer:
for
(i=0;i<
row_size
;i++) {
9
middle:
for
(j=0;j<
col_size
;j++) {
10
i_col = i *
col_size
;
11
TYPE
sum
= 0;
12
inner:
for
(k=0;k<
row_size
;k++) {
13
k_col = k *
col_size
;
14
mult =
m1
[i_col +
k
] *
m2
[k_col + j];
15
sum += mult;
16
}
17
prod[i_col + j] =
sum
;
18
}
19
}
20
}
col_size
#define col_size
Definition:
gemm.h:17
TYPE
#define TYPE
Definition:
backprop.h:21
sum
int sum
Definition:
dotproduct.h:3
row_size
#define row_size
Definition:
gemm.h:16
k
static const uint32_t k[]
Definition:
sha-256.c:22
gemm
void gemm(TYPE m1[N], TYPE m2[N], TYPE prod[N])
Definition:
gemm.c:3
m2
const unsigned long long m2
Definition:
digitrec_sw.c:13
N
#define N
Definition:
dfdiv.c:60
m1
const unsigned long long m1
Definition:
digitrec_sw.c:12
gemm.h
Generated on Mon Feb 12 2024 13:02:50 for PandA-2024.02 by
1.8.13