Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
argo
aml
Commits
e66f5948
Commit
e66f5948
authored
Aug 27, 2018
by
Swann Perarnau
Browse files
[refactor] have the benchmarks use the new tileids
Modify the benchmarks to use the new functions.
parent
55500ab0
Pipeline
#6976
failed with stage
in 8 minutes and 32 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
benchmarks/dgemm_noprefetch.c
View file @
e66f5948
...
...
@@ -35,9 +35,9 @@ void do_work()
{
size_t
aoff
,
boff
,
coff
;
double
*
ap
,
*
bp
,
*
cp
;
aoff
=
i
*
ndims
[
1
]
+
k
;
boff
=
k
*
ndims
[
1
]
+
j
;
coff
=
i
*
ndims
[
1
]
+
j
;
aoff
=
aml_tiling_tileid
(
&
tiling_col
,
i
,
k
)
;
boff
=
aml_tiling_tileid
(
&
tiling_row
,
k
,
j
)
;
coff
=
aml_tiling_tileid
(
&
tiling_row
,
i
,
j
)
;
ap
=
aml_tiling_tilestart
(
&
tiling_col
,
a
,
aoff
);
bp
=
aml_tiling_tilestart
(
&
tiling_row
,
b
,
boff
);
cp
=
aml_tiling_tilestart
(
&
tiling_row
,
c
,
coff
);
...
...
benchmarks/dgemm_prefetch.c
View file @
e66f5948
...
...
@@ -53,7 +53,7 @@ void do_work()
double
*
ap
,
*
bp
,
*
cp
;
ap
=
aml_tiling_tilestart
(
&
tiling_row
,
prea
,
i
);
bp
=
aml_tiling_tilestart
(
&
tiling_row
,
preb
,
j
);
coff
=
i
*
ndims
[
1
]
+
j
;
coff
=
aml_tiling_tileid
(
&
tiling_row
,
i
,
j
)
;
cp
=
aml_tiling_tilestart
(
&
tiling_row
,
c
,
coff
);
cblas_dgemm
(
CblasRowMajor
,
CblasNoTrans
,
CblasNoTrans
,
ldc
,
lda
,
ldb
,
1
.
0
,
ap
,
lda
,
bp
,
ldb
,
1
.
0
,
cp
,
ldc
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment