Permalink
Browse files

fix SPpMVM tests

  • Loading branch information...
gentryx committed Nov 5, 2018
1 parent 4fefd93 commit fb6e316f9fa345c40935f6635f3604224800e889
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/testbed/spmvmtests/main.cpp
@@ -377,7 +377,7 @@ class SparseMatrixVectorMultiplicationMM : public CPUBenchmark
{
Coord<3> dim(rawDim[0], rawDim[1], rawDim[2]);
// 1. create grids
const CoordBox<1> size(Coord<1>(0), Coord<1>(dim.x()));
const Coord<1> size(dim.x());
Grid gridOld(size);
Grid gridNew(size);
@@ -389,7 +389,7 @@ class SparseMatrixVectorMultiplicationMM : public CPUBenchmark
// 3. call updateFunctor()
double seconds = 0;
Region<1> region;
region << Streak<1>(Coord<1>(0), size.dimensions.x());
region << Streak<1>(Coord<1>(0), size.x());
{
ScopedTimer t(&seconds);
updateFunctor(region, gridOld, &gridNew, 0);
@@ -460,7 +460,7 @@ class SparseMatrixVectorMultiplicationMMNative : public CPUBenchmark
Coord<3> dim(rawDim[0], rawDim[1], rawDim[2]);
// 1. create grids
const CoordBox<1> size(Coord<1>(0), Coord<1>(dim.x()));
const Coord<1> size(dim.x());
Grid gridOld(size);
Grid gridNew(size);
@@ -478,7 +478,7 @@ class SparseMatrixVectorMultiplicationMMNative : public CPUBenchmark
double *rhsPtr; // = hoodOld.valuePtr;
double *resPtr; // = hoodNew.sumPtr;
gridOld.callback(&gridNew, GetPointer(&resPtr, &rhsPtr));
const int rowsPadded = ((size.dimensions.x() - 1) / C + 1) * C;
const int rowsPadded = ((size.x() - 1) / C + 1) * C;
double seconds = 0;
{
ScopedTimer t(&seconds);
@@ -678,7 +678,7 @@ class SparseMatrixVectorMultiplicationMMCRS : public CPUBenchmark
Coord<3> dim(rawDim[0], rawDim[1], rawDim[2]);
// 1. create grids
const CoordBox<1> size(Coord<1>(0), Coord<1>(dim.x()));
const Coord<1> size(dim.x());
Grid gridOld(size);
Grid gridNew(size);

0 comments on commit fb6e316

Please sign in to comment.