Skip to content

Commit

Permalink
Bug 226 matrix (#242)
Browse files Browse the repository at this point in the history
fixed local viewspec of matrix
  • Loading branch information
fmoessbauer authored Jan 19, 2017
1 parent b4e9008 commit a231c0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dash/include/dash/matrix/internal/Matrix-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ ::allocate(
DASH_LOG_TRACE_VAR("Matrix.allocate", _lsize);
DASH_LOG_TRACE_VAR("Matrix.allocate", _lcapacity);
// Allocate and initialize memory
_glob_mem = new GlobMem_t(_lcapacity, _pattern.team());
_glob_mem = new GlobMem_t(_lsize, _pattern.team());
_begin = GlobIter_t(_glob_mem, _pattern);
_lbegin = _glob_mem->lbegin();
_lend = _glob_mem->lend();
Expand Down
4 changes: 2 additions & 2 deletions dash/test/MatrixTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ TEST_F(MatrixTest, Distribute1DimBlockcyclicY)
team_spec);

LOG_MESSAGE("Matrix initialized, wait for barrier ...");
dash::Team::All().barrier();
matrix.barrier();
LOG_MESSAGE("Team barrier passed");

size_t matrix_size = extent_cols * extent_rows;
Expand All @@ -204,7 +204,7 @@ TEST_F(MatrixTest, Distribute1DimBlockcyclicY)
}
// Units waiting for value initialization
LOG_MESSAGE("Values assigned, wait for barrier ...");
dash::Team::All().barrier();
matrix.barrier();
LOG_MESSAGE("Team barrier passed");

// Read and assert values in matrix
Expand Down

0 comments on commit a231c0b

Please sign in to comment.