repo.or.cz
/
pet.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pet_check_code: op_expr_extract_pw_aff: handle more types of expressions
[pet.git]
/
tests
/
matmul.c
blob
f77ec58eef6922b02b3b7cbd196dd41db32124b8
1
void
matmul
(
int
M
,
int
N
,
int
K
,
float
A
[
M
][
K
],
float
B
[
K
][
N
],
float
C
[
M
][
N
])
2
{
3
int
i
,
j
,
k
;
4
5
#pragma scop
6
#pragma live-out C
7
for
(
i
=
0
;
i
<
M
;
i
++)
8
for
(
j
=
0
;
j
<
N
;
j
++) {
9
C
[
i
][
j
] =
0
;
10
for
(
k
=
0
;
k
<
K
;
k
++)
11
C
[
i
][
j
] +=
A
[
i
][
k
] *
B
[
k
][
j
];
12
}
13
#pragma endscop
14
}