Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
RMeli committed Oct 15, 2024
1 parent 0c7e20f commit 7606b46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions include/dlaf/eigensolver/bt_band_to_tridiag/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void BackTransformationT2B<B, D, T>::call(const SizeType band_size,
const LocalTileSize tiles_per_block_hh(mat_hh.blockSize().rows() / b, mat_hh.blockSize().cols() / b);
Matrix<const T, Device::CPU> mat_hh_rt = mat_hh.retiledSubPipelineConst(tiles_per_block_hh);
const LocalTileSize tiles_per_block_e(mat_e.blockSize().rows() / b, 1);
matrix::internal::MatrixRef<T, D> mat_e_rt = mat_e.retiledSubPipeline(tiles_per_block_e);
Matrix<T, D> mat_e_rt = mat_e.retiledSubPipeline(tiles_per_block_e);

const auto& dist_hh_rt = mat_hh_rt.distribution();
const auto& dist_e_rt = mat_e_rt.distribution();
Expand Down Expand Up @@ -760,7 +760,7 @@ void BackTransformationT2B<B, D, T>::call(comm::CommunicatorGrid& grid, const Si
const SizeType group_size = getTuneParameters().bt_band_to_tridiag_hh_apply_group_size;

const LocalTileSize tiles_per_block(mat_e.blockSize().rows() / b, 1);
matrix::internal::MatrixRef<T, D> mat_e_rt = mat_e.retiledSubPipeline(tiles_per_block);
Matrix<T, D> mat_e_rt = mat_e.retiledSubPipeline(tiles_per_block);

const auto& dist_hh = mat_hh.distribution();
const auto& dist_e_rt = mat_e_rt.distribution();
Expand Down
16 changes: 6 additions & 10 deletions include/dlaf/matrix/matrix_ref.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ class MatrixRef<const T, D> : public internal::MatrixBase {
: internal::MatrixBase(Distribution(mat.distribution(), spec)), mat_const_(mat),
origin_(spec.origin) {}

MatrixRef(Matrix<const T, D>&& mat, const SubMatrixSpec& spec)
: internal::MatrixBase(Distribution(mat.distribution(), spec)), mat_const_(mat),
origin_(spec.origin) {}

/// Create a matrix reference of @p mat.
///
/// @param[in] mat is the input matrix.
Expand All @@ -79,9 +75,9 @@ class MatrixRef<const T, D> : public internal::MatrixBase {
///
/// @pre blockSize() is divisible by @p tiles_per_block
/// @pre blockSize() == tile_size()
MatrixRef<const T, D> retiledSubPipelineConst(const LocalTileSize& tiles_per_block) {
SubMatrixSpec spec = {this->distribution().origin(), this->distribution().size()};
return MatrixRef<const T, D>(std::move(mat_const_.retiledSubPipelineConst(tiles_per_block)), spec);
Matrix<const T, D> retiledSubPipelineConst(const LocalTileSize& tiles_per_block) {
// SubMatrixSpec spec = {this->distribution().origin(), this->distribution().size()};
return mat_const_.retiledSubPipelineConst(tiles_per_block);
}

/// Returns a read-only sender of the Tile with local index @p index.
Expand Down Expand Up @@ -173,9 +169,9 @@ class MatrixRef : public MatrixRef<const T, D> {
///
/// @pre blockSize() is divisible by @p tiles_per_block
/// @pre blockSize() == tile_size()
MatrixRef<T, D> retiledSubPipeline(const LocalTileSize& tiles_per_block) noexcept {
SubMatrixSpec spec = {this->distribution().origin(), this->distribution().size()};
return MatrixRef<T, D>(std::move(mat_.retiledSubPipeline(tiles_per_block)), spec);
Matrix<T, D> retiledSubPipeline(const LocalTileSize& tiles_per_block) noexcept {
// SubMatrixSpec spec = {this->distribution().origin(), this->distribution().size()};
return mat_.retiledSubPipeline(tiles_per_block);
}

/// Returns a sender of the Tile with local index @p index.
Expand Down

0 comments on commit 7606b46

Please sign in to comment.