Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
Microbenchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mattia Mancini
Microbenchmarks
Commits
e3335bd7
Commit
e3335bd7
authored
Jun 5, 2024
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Rename tests
parent
ec5697e3
Branches
Branches containing commit
No related tags found
1 merge request
!11
Add batch approach for matrix multiplication
Pipeline
#83968
passed
Jun 5, 2024
Stage: build
Stage: test
Stage: benchmark
Stage: summarize
This commit is part of merge request
!11
. Comments created here will be created in the context of that merge request.
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
benchmarks/matrix_multiplication.cpp
+8
-8
8 additions, 8 deletions
benchmarks/matrix_multiplication.cpp
ci/summarize-results.py
+1
-1
1 addition, 1 deletion
ci/summarize-results.py
with
11 additions
and
10 deletions
.gitlab-ci.yml
+
2
−
1
Edit
View file @
e3335bd7
...
...
@@ -126,4 +126,5 @@ collect-performance:
-
./*.tar
script
:
-
ls -la
-
python3 ci/summarize-results.py --filter MatrixMultiplication results*.json result-summary
-
python3 ci/summarize-results.py --filter MatrixMultiplication results*.json result-matrixmultiplication-summary
-
python3 ci/summarize-results.py --filter BatchMatrixMultiplication results*.json result-matrixmultiplicationbatch-summary
This diff is collapsed.
Click to expand it.
benchmarks/matrix_multiplication.cpp
+
8
−
8
Edit
View file @
e3335bd7
...
...
@@ -128,7 +128,7 @@ BENCHMARK_F(InitializeInput, MatrixMultiplicationNEONb)
}
#endif
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
Reference
)
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationReference
)
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
for
(
size_t
s
=
0
;
s
<
state
.
range
(
0
);
s
++
)
{
...
...
@@ -137,7 +137,7 @@ BENCHMARK_DEFINE_F(InitializeInputBatch, MatrixMultiplicationBatchReference)
}
}
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
AOCommon
)
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationAOCommon
)
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
for
(
size_t
s
=
0
;
s
<
state
.
range
(
0
);
s
++
)
{
...
...
@@ -147,31 +147,31 @@ BENCHMARK_DEFINE_F(InitializeInputBatch, MatrixMultiplicationBatchAOCommon)
}
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
RealComplexOpenMP
)
Batch
MatrixMultiplicationRealComplexOpenMP
)
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
matrixMultiplyRealComplexSIMD
(
A
,
B
,
C
,
state
.
range
(
0
));
}
}
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
RealComplex
)
BENCHMARK_DEFINE_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationRealComplex
)
(
benchmark
::
State
&
state
)
{
for
(
auto
_
:
state
)
{
matrixMultiplyRealComplex
(
A
,
B
,
C
,
state
.
range
(
0
));
}
}
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
Reference
)
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationReference
)
->
Range
(
8
,
512
);
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
AOCommon
)
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationAOCommon
)
->
Range
(
8
,
512
);
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
RealComplex
)
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
Batch
MatrixMultiplicationRealComplex
)
->
Range
(
8
,
512
);
BENCHMARK_REGISTER_F
(
InitializeInputBatch
,
MatrixMultiplication
Batch
RealComplexOpenMP
)
Batch
MatrixMultiplicationRealComplexOpenMP
)
->
Range
(
8
,
512
);
BENCHMARK_MAIN
();
This diff is collapsed.
Click to expand it.
ci/summarize-results.py
+
1
−
1
Edit
View file @
e3335bd7
...
...
@@ -5,7 +5,7 @@ import seaborn
import
pandas
import
matplotlib.pyplot
as
plt
seaborn
.
set_theme
(
palette
=
"
flare
"
,
style
=
"
whitegrid
"
)
seaborn
.
set_theme
(
style
=
"
whitegrid
"
)
def
parse_args
():
parser
=
ArgumentParser
(
description
=
"
Combine benchmark metrics from Google Benchmarks Framework
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment