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
0b132c07
There was an error fetching the commit references. Please try again later.
Commit
0b132c07
authored
5 years ago
by
Lukas Cejka
Committed by
Tomáš Oberhuber
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Debugging Ellpack errors
parent
25910a7a
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
+14
-4
14 additions, 4 deletions
src/Benchmarks/SpMV/spmv.h
with
14 additions
and
4 deletions
src/Benchmarks/SpMV/spmv.h
+
14
−
4
View file @
0b132c07
...
...
@@ -93,7 +93,9 @@ benchmarkSpMV( Benchmark & benchmark,
CSR_HostMatrix
CSRhostMatrix
;
CSR_DeviceMatrix
CSRdeviceMatrix
;
// Read the matrix for CSR, to setup cuSPARSE
std
::
cout
<<
"Reading CSR to set up cuSPARSE..."
<<
std
::
endl
;
// Read the matrix for CSR, to set up cuSPARSE
try
{
if
(
!
MatrixReader
<
CSR_HostMatrix
>::
readMtxFile
(
inputFileName
,
CSRhostMatrix
,
verboseMR
)
)
...
...
@@ -146,6 +148,8 @@ benchmarkSpMV( Benchmark & benchmark,
HostVector
hostVector
,
hostVector2
;
CudaVector
deviceVector
,
deviceVector2
;
std
::
cout
<<
"
\n
Reading "
<<
getMatrixFormat
(
hostMatrix
)
<<
" format..."
<<
std
::
endl
;
// Load the format
try
{
...
...
@@ -172,11 +176,17 @@ benchmarkSpMV( Benchmark & benchmark,
return
false
;
}
std
::
cout
<<
"Before cross-device assignment"
<<
std
::
endl
;
#ifdef HAVE_CUDA
// FIXME: This doesn't work for Ad/BiEllpack, because
// their cross-device assignment is not implemented yet
// THIS LINE is causing the problem with "sls.mtx".
deviceMatrix
=
hostMatrix
;
#endif
// sls.mtx: This doesn't even get printed
std
::
cout
<<
"After cross-device assignment"
<<
std
::
endl
;
// Setup MetaData here (not in tnl-benchmark-spmv.h, as done in Benchmarks/BLAS),
// because we need the matrix loaded first to get the rows and columns
...
...
@@ -326,10 +336,10 @@ 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::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
);
//
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
// result |= benchmarkSpMV< Real, Matrices::AdEllpack >( benchmark, inputFileName, verboseMR );
...
...
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