Skip to content

Commit

Permalink
update distribution usege in LayoutInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
rasolca committed Oct 9, 2023
1 parent 4ad45a0 commit 8d97c2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/dlaf/matrix/layout_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ inline LayoutInfo colMajorLayout(const LocalElementSize& size, const TileElement
}
/// Returns LayoutInfo for a distributed column major matrix.
inline LayoutInfo colMajorLayout(const matrix::Distribution& distribution, SizeType ld) {
return colMajorLayout(distribution.localSize(), distribution.blockSize(), ld);
return colMajorLayout(distribution.local_size(), distribution.block_size(), ld);
}

/// Returns LayoutInfo for a local matrix which use the tile layout (Advanced interface).
Expand All @@ -143,7 +143,7 @@ inline LayoutInfo tileLayout(const LocalElementSize& size, const TileElementSize
/// Returns LayoutInfo for a distributed matrix which use the tile layout (Advanced interface).
inline LayoutInfo tileLayout(const matrix::Distribution& distribution, SizeType ld_tile,
SizeType tiles_per_col) {
return tileLayout(distribution.localSize(), distribution.blockSize(), ld_tile, tiles_per_col);
return tileLayout(distribution.local_size(), distribution.block_size(), ld_tile, tiles_per_col);
}

/// Returns LayoutInfo for a local matrix which use the tile layout (Basic interface).
Expand All @@ -155,7 +155,7 @@ inline LayoutInfo tileLayout(const LocalElementSize& size, const TileElementSize

/// Returns LayoutInfo for a distributed matrix which use the tile layout (Basic interface).
inline LayoutInfo tileLayout(const matrix::Distribution& distribution) {
return tileLayout(distribution.localSize(), distribution.blockSize());
return tileLayout(distribution.local_size(), distribution.block_size());
}
}
}

0 comments on commit 8d97c2d

Please sign in to comment.