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
explicitly mark kill accesses
[pet.git]
/
tests
/
decl.c
blob
7aa7348b57bb42509a814e57073d9502270ab8c7
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
for
(
i
=
0
;
i
<
M
;
i
++)
7
for
(
j
=
0
;
j
<
N
;
j
++) {
8
C
[
i
][
j
] =
0
;
9
for
(
k
=
0
;
k
<
K
;
k
++) {
10
float
t
=
A
[
i
][
k
] *
B
[
k
][
j
];
11
C
[
i
][
j
] +=
t
;
12
}
13
}
14
#pragma endscop
15
}