Skip to content

Commit

Permalink
SPMM: move tiles in the non-cuda version
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
  • Loading branch information
devreal committed Aug 28, 2023
1 parent 9b817f3 commit 30d7ee0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/spmm/spmm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ using namespace ttg;
#include "ttg/util/future.h"

#include "ttg/util/multiindex.h"
#include "ttg/serialization/std/pair.h"

#include "ttg/util/bug.h"

Expand Down Expand Up @@ -327,7 +328,7 @@ class SpMM25D {
ijk_keys.emplace_back(Key<3>({i, j, k}));
}
}
::broadcast<0>(ijk_keys, baseT::template get<0>(a_ik), a_ijk);
::broadcast<0>(ijk_keys, std::move(baseT::template get<0>(a_ik)), a_ijk);
}

private:
Expand Down Expand Up @@ -364,7 +365,7 @@ class SpMM25D {
procmap[p] = true;
}
}
::broadcast<0>(ikp_keys, baseT::template get<0>(a_ik), a_ikp);
::broadcast<0>(ikp_keys, std::move(baseT::template get<0>(a_ik)), a_ikp);
}

private:
Expand Down Expand Up @@ -401,7 +402,7 @@ class SpMM25D {
ijk_keys.emplace_back(Key<3>({i, j, k}));
}
}
::broadcast<0>(ijk_keys, baseT::template get<0>(b_kj), b_ijk);
::broadcast<0>(ijk_keys, std::move(baseT::template get<0>(b_kj)), b_ijk);
}

private:
Expand Down Expand Up @@ -437,7 +438,7 @@ class SpMM25D {
procmap[p] = true;
}
}
::broadcast<0>(kjp_keys, baseT::template get<0>(b_kj), b_kjp);
::broadcast<0>(kjp_keys, std::move(baseT::template get<0>(b_kj)), b_kjp);
}

private:
Expand Down Expand Up @@ -645,7 +646,7 @@ class SpMM25D {

void op(const Key<2> &ij, typename baseT::input_values_tuple_type &&c_ij_p, std::tuple<Out<Key<2>, Blk>> &c_ij) {
ttg::trace("ReduceC(", ij[0], ", ", ij[1], ")");
::send<0>(ij, baseT::template get<0>(c_ij_p), c_ij);
::send<0>(ij, std::move(baseT::template get<0>(c_ij_p)), c_ij);
}
}; // class ReduceC

Expand Down

0 comments on commit 30d7ee0

Please sign in to comment.