Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
GRASLAND Hadrien
Fast5x5
Commits
fa5a3ab9
Commit
fa5a3ab9
authored
Apr 19, 2018
by
GRASLAND Hadrien
Browse files
Updated the benchmarks
parent
1570b65e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
benchmark/gemm_custom.cpp
benchmark/gemm_custom.cpp
+3
-3
matrix_product_custom.cpp
matrix_product_custom.cpp
+5
-5
No files found.
benchmark/gemm_custom.cpp
View file @
fa5a3ab9
...
...
@@ -24,12 +24,12 @@ int main(int argc, char **argv) {
}
}
using
M
=
BaseMatrix
<
float
,
SIZE
,
VEC
SIZE
>
;
using
M
=
BaseMatrix
<
float
,
SIZE
,
SIZE
>
;
M
pa
(
a
),
pb
(
b
),
pc
;
for
(
unsigned
int
i
=
0
;
i
<
REPEAT
;
i
++
)
{
matrix_mul_m_m
<
M
>
(
pa
,
pb
,
pc
);
matrix_mul_m_m
<
M
>
(
pb
,
pc
,
pa
);
matrix_mul_m_m
(
pa
,
pb
,
pc
);
matrix_mul_m_m
(
pb
,
pc
,
pa
);
}
std
::
cout
<<
pa
<<
std
::
endl
;
...
...
matrix_product_custom.cpp
View file @
fa5a3ab9
...
...
@@ -32,17 +32,17 @@ int main(int argc, char **argv) {
}
}
using
M
=
BaseMatrix
<
float
,
SIZE
,
VEC
SIZE
>
;
using
M
=
BaseMatrix
<
float
,
SIZE
,
SIZE
>
;
M
pa
(
a
),
pb
(
b
),
pf
;
// std::cout << pa << std::endl;
// std::cout << pb << std::endl;
for
(
unsigned
int
i
=
0
;
i
<
200000000
;
i
++
)
{
matrix_mul_m_m
<
M
>
(
pb
,
pa
,
pf
);
matrix_mul_m_m
<
M
>
(
pf
,
pb
,
pa
);
//matrix_mul_sym
<M>
(pb, pa, pf);
//matrix_mul
<M>
(pf, pb, pa);
matrix_mul_m_m
(
pb
,
pa
,
pf
);
matrix_mul_m_m
(
pf
,
pb
,
pa
);
//matrix_mul_sym(pb, pa, pf);
//matrix_mul(pf, pb, pa);
}
std
::
cout
<<
pa
<<
std
::
endl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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