Skip to content

Commit

Permalink
fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Oct 20, 2021
1 parent 0681347 commit ba77dd0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/sparse/KokkosSparse_spmv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ void spmv_struct(const char mode[], const int stencil_type,
XVector_Internal x_i = x;
YVector_Internal y_i = y;

return Impl::SPMV_STRUCT<
return KokkosSparse::Impl::SPMV_STRUCT<
typename AMatrix_Internal::value_type,
typename AMatrix_Internal::ordinal_type,
typename AMatrix_Internal::device_type,
Expand Down Expand Up @@ -693,6 +693,7 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
RANK_ONE());
return true;
}
};
#else
template <class AlphaType, class AMatrix, class XVector, class BetaType,
class YVector>
Expand All @@ -706,8 +707,9 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
const BetaType& /*beta*/, const YVector& /*y*/) {
return false;
}
#endif
};
#endif


#if defined(KOKKOSKERNELS_INST_LAYOUTLEFT) || !defined(KOKKOSKERNELS_ETI_ONLY)
template <class AlphaType, class AMatrix, class XVector, class BetaType,
Expand All @@ -724,6 +726,7 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
RANK_ONE());
return true;
}
};
#else
template <class AlphaType, class AMatrix, class XVector, class BetaType,
class YVector>
Expand All @@ -737,8 +740,8 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
const BetaType& /*beta*/, const YVector& /*y*/) {
return false;
}
#endif
};
#endif

#if defined(KOKKOSKERNELS_INST_LAYOUTLEFT) || !defined(KOKKOSKERNELS_ETI_ONLY)
template <class AlphaType, class AMatrix, class XVector, class BetaType,
Expand All @@ -755,6 +758,7 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
RANK_ONE());
return true;
}
};
#else
template <class AlphaType, class AMatrix, class XVector, class BetaType,
class YVector>
Expand All @@ -768,8 +772,9 @@ struct SPMV2D1D_STRUCT<AlphaType, AMatrix, XVector, BetaType, YVector,
const BetaType& /*beta*/, const YVector& /*y*/) {
return false;
}
#endif
};
#endif


template <class AlphaType, class AMatrix, class XVector, class BetaType,
class YVector>
Expand Down Expand Up @@ -861,7 +866,7 @@ void spmv_struct(const char mode[], const int stencil_type,
XVector_Internal x_i = x;
YVector_Internal y_i = y;

return Impl::SPMV_MV<
return KokkosSparse::Impl::SPMV_MV<
typename AMatrix_Internal::value_type,
typename AMatrix_Internal::ordinal_type,
typename AMatrix_Internal::device_type,
Expand Down

0 comments on commit ba77dd0

Please sign in to comment.