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
e6474371
There was an error fetching the commit references. Please try again later.
Commit
e6474371
authored
5 years ago
by
Lukas Cejka
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Uncommented all tests. Updated comments.
parent
fb7da382
No related branches found
No related tags found
1 merge request
!45
Matrices revision
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Benchmarks/SpMV/spmv.h
+8
-7
8 additions, 7 deletions
src/Benchmarks/SpMV/spmv.h
with
8 additions
and
7 deletions
src/Benchmarks/SpMV/spmv.h
+
8
−
7
View file @
e6474371
...
...
@@ -22,11 +22,14 @@
#include
<TNL/Matrices/SlicedEllpack.h>
#include
<TNL/Matrices/ChunkedEllpack.h>
// AdEllpack doesn't have the = operator for cross-device assignment implemented yet.
#include
<TNL/Matrices/AdEllpack.h>
#include
<TNL/Matrices/MatrixReader.h>
using
namespace
TNL
::
Matrices
;
#include
<TNL/Exceptions/HostBadAlloc.h>
#include
"cusparseCSRMatrix.h"
namespace
TNL
{
...
...
@@ -160,8 +163,8 @@ benchmarkSpMV( Benchmark & benchmark,
}
#ifdef HAVE_CUDA
// FIXME: This doesn't work for
Chunked
Ellpack, because
//
its
cross-device assignment is not implemented yet
// FIXME: This doesn't work for
Ad/Bi
Ellpack, because
//
their
cross-device assignment is not implemented yet
deviceMatrix
=
hostMatrix
;
#endif
...
...
@@ -313,11 +316,9 @@ benchmarkSpmvSynthetic( Benchmark & benchmark,
{
bool
result
=
true
;
// TODO: benchmark all formats from tnl-benchmark-spmv (different parameters of the base formats)
// result |= benchmarkSpMV< Real, Matrices::CSR >( benchmark, inputFileName, verboseMR );
// result |= benchmarkSpMV< Real, Matrices::Ellpack >( benchmark, inputFileName, verboseMR );
// result |= benchmarkSpMV< Real, SlicedEllpack >( benchmark, inputFileName, verboseMR );
// Chunked Ellpack doesn't have cross-device assignment ('= operator') implemented yet
result
|=
benchmarkSpMV
<
Real
,
Matrices
::
CSR
>
(
benchmark
,
inputFileName
,
verboseMR
);
result
|=
benchmarkSpMV
<
Real
,
Matrices
::
Ellpack
>
(
benchmark
,
inputFileName
,
verboseMR
);
result
|=
benchmarkSpMV
<
Real
,
SlicedEllpack
>
(
benchmark
,
inputFileName
,
verboseMR
);
result
|=
benchmarkSpMV
<
Real
,
Matrices
::
ChunkedEllpack
>
(
benchmark
,
inputFileName
,
verboseMR
);
// AdEllpack doesn't have cross-device assignment ('= operator') implemented yet
...
...
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