From 29c977195bedff5aef40966b8c6e9c956f78517d Mon Sep 17 00:00:00 2001 From: Joseph Schuchart Date: Wed, 14 Aug 2024 14:23:05 -0400 Subject: [PATCH] SPMM bcasts: use input_refs_tuple_type and and const Signed-off-by: Joseph Schuchart --- examples/spmm/spmm.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/spmm/spmm.cc b/examples/spmm/spmm.cc index 392e1dca6..604e5f202 100644 --- a/examples/spmm/spmm.cc +++ b/examples/spmm/spmm.cc @@ -446,7 +446,7 @@ class SpMM25D { }; // class LocalBcastA /// broadcast `A[i][k]` to all processors which will contain at least one `C[i][j]` such that `B[k][j]` exists - class BcastA : public TT, std::tuple, Blk>>, BcastA, ttg::typelist> { + class BcastA : public TT, std::tuple, Blk>>, BcastA, ttg::typelist> { public: using baseT = typename BcastA::ttT; @@ -462,7 +462,7 @@ class SpMM25D { }); } - void op(const Key<2> &ik, typename baseT::input_values_tuple_type &&a_ik, + void op(const Key<2> &ik, typename baseT::input_refs_tuple_type &&a_ik, std::tuple, Blk>> &outs) { const auto i = ik[0]; // row const auto k = ik[1]; // col @@ -492,7 +492,7 @@ class SpMM25D { /// Locally broadcast `B[k][j]` assigned to this processor `p` to matmul tasks `{i,j,k}` for all `k` such that /// `A[i][k]` exists AND `k` contribution to `C[i][j]` is assigned to this processor - class LocalBcastB : public TT, std::tuple, Blk>>, LocalBcastB, ttg::typelist> { + class LocalBcastB : public TT, std::tuple, Blk>>, LocalBcastB, ttg::typelist> { public: using baseT = typename LocalBcastB::ttT; @@ -528,7 +528,7 @@ class SpMM25D { }; // class LocalBcastB /// broadcast `B[k][j]` to all processors which will contain at least one `C[i][j]` such that `A[i][k]` exists - class BcastB : public TT, std::tuple, Blk>>, BcastB, ttg::typelist> { + class BcastB : public TT, std::tuple, Blk>>, BcastB, ttg::typelist> { public: using baseT = typename BcastB::ttT; @@ -544,7 +544,7 @@ class SpMM25D { }); } - void op(const Key<2> &kj, typename baseT::input_values_tuple_type &&b_kj, + void op(const Key<2> &kj, typename baseT::input_refs_tuple_type &&b_kj, std::tuple, Blk>> &outs) { const auto k = kj[0]; // row const auto j = kj[1]; // col