Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
b99a7238
There was an error fetching the commit references. Please try again later.
Commit
b99a7238
authored
5 years ago
by
Lukas Cejka
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed format name declaration in logs of benchmarks.
parent
4b9c6207
No related branches found
No related tags found
1 merge request
!46
Matrices revision
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Benchmarks/SpMV/spmv.h
+11
-11
11 additions, 11 deletions
src/Benchmarks/SpMV/spmv.h
with
11 additions
and
11 deletions
src/Benchmarks/SpMV/spmv.h
+
11
−
11
View file @
b99a7238
...
...
@@ -202,17 +202,6 @@ benchmarkSpMV( Benchmark& benchmark,
// Copy the values
resultHostVector2
=
hostVector2
;
// Setup cuSPARSE MetaData, since it has the same header as CSR,
// and therefore will not get its own headers (rows, cols, speedup etc.) in log.
// * Not setting this up causes (among other undiscovered errors) the speedup from CPU to GPU on the input format to be overwritten.
benchmark
.
setMetadataColumns
(
Benchmark
::
MetadataColumns
({
{
"matrix name"
,
convertToString
(
getMatrixFileName
(
inputFileName
)
)
},
{
"non-zeros"
,
convertToString
(
hostMatrix
.
getNumberOfNonzeroMatrixElements
()
)
},
{
"rows"
,
convertToString
(
hostMatrix
.
getRows
()
)
},
{
"columns"
,
convertToString
(
hostMatrix
.
getColumns
()
)
},
{
"matrix format"
,
convertToString
(
"CSR-cuSPARSE"
)
}
}
));
#ifdef HAVE_CUDA
benchmark
.
time
<
Devices
::
Cuda
>
(
reset
,
"GPU"
,
spmvCuda
);
...
...
@@ -223,6 +212,17 @@ benchmarkSpMV( Benchmark& benchmark,
resultDeviceVector2
.
setValue
(
0.0
);
resultDeviceVector2
=
deviceVector2
;
// Setup cuSPARSE MetaData, since it has the same header as CSR,
// and therefore will not get its own headers (rows, cols, speedup etc.) in log.
// * Not setting this up causes (among other undiscovered errors) the speedup from CPU to GPU on the input format to be overwritten.
benchmark
.
setMetadataColumns
(
Benchmark
::
MetadataColumns
({
{
"matrix name"
,
convertToString
(
getMatrixFileName
(
inputFileName
)
)
},
{
"non-zeros"
,
convertToString
(
hostMatrix
.
getNumberOfNonzeroMatrixElements
()
)
},
{
"rows"
,
convertToString
(
hostMatrix
.
getRows
()
)
},
{
"columns"
,
convertToString
(
hostMatrix
.
getColumns
()
)
},
{
"matrix format"
,
convertToString
(
"CSR-cuSPARSE"
)
}
}
));
benchmark
.
time
<
Devices
::
Cuda
>
(
reset
,
"GPU"
,
spmvCusparse
);
...
...
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