Skip to content

Commit

Permalink
Tacho : compile error with OpenMP (tol is used only by Team)
Browse files Browse the repository at this point in the history
Signed-off-by: iyamazaki <[email protected]>
  • Loading branch information
iyamazaki committed Nov 14, 2024
1 parent 9990b44 commit 7cd69d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ int main(int argc, char *argv[])
} else {
assert(false);
}
writeMM("Laplace.mtx",KMonolithic);

RCP<MultiVector<SC,LO,GO,NO> > xSolution = MultiVectorFactory<SC,LO,GO,NO>::Build(KMonolithic->getMap(),1);
RCP<MultiVector<SC,LO,GO,NO> > xRightHandSide = MultiVectorFactory<SC,LO,GO,NO>::Build(KMonolithic->getMap(),1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ template <> struct LU<Algo::External> {
}
}

template <typename MemberType, typename ViewTypeA, typename ViewTypeP>
KOKKOS_INLINE_FUNCTION static int invoke(MemberType &member, const double /*tol*/, const ViewTypeA &A, const ViewTypeP &P) {
// tol is not used, for now
return invoke(member, A, P);
}

template <typename ViewTypeP> inline static int modify(const ordinal_type m, const ViewTypeP &P) {

static constexpr bool runOnHost = run_tacho_on_host_v<typename ViewTypeP::execution_space>;
Expand Down
6 changes: 6 additions & 0 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_LU_Serial.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ template <> struct LU<Algo::Serial> {
}
}

template <typename MemberType, typename ViewTypeA, typename ViewTypeP>
inline static int invoke(MemberType &member, const double /*tol*/, const ViewTypeA &A, const ViewTypeP &P) {
// tol is not used, for now
return invoke(member, A, P);
}

template <typename ViewTypeP> inline static int modify(const ordinal_type m, const ViewTypeP &P) {

static constexpr bool runOnHost = run_tacho_on_host_v<typename ViewTypeP::execution_space>;
Expand Down

0 comments on commit 7cd69d1

Please sign in to comment.