Skip to content

Commit

Permalink
examples/gmres: use namespace Issue1172WorkAround
Browse files Browse the repository at this point in the history
  • Loading branch information
e10harvey committed Nov 29, 2021
1 parent f37335c commit b606719
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions example/gmres/gmres.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// libstdc++ half_t overloads
////////////////////////////////////////////////////////////////////////////////
namespace Kokkos {
namespace Experimental {
namespace Issue1172WorkAround {
#if !KOKKOS_HALF_T_IS_FLOAT
Kokkos::Experimental::half_t fabs(Kokkos::Experimental::half_t arg) {
using AT = Kokkos::Details::ArithTraits<half_t>;
Expand All @@ -76,7 +76,7 @@ template <class T>
KOKKOS_INLINE_FUNCTION T fabs(const Kokkos::complex<T> &x) {
return Kokkos::abs(x);
}
} // namespace Experimental
} // namespace Issue1172WorkAround
} // namespace Kokkos

// This struct is returned to the user to give solver
Expand Down Expand Up @@ -117,8 +117,7 @@ GmresStats gmres(
const GmresOpts<ScalarType> &opts,
const KokkosSparse::Experimental::Preconditioner<
ScalarType, Layout, EXSP, OrdinalType> *const M = NULL) {
using namespace Kokkos::Experimental; // For 'fabs' wrappers above
using namespace std; // For 'fabs' from std
using namespace Kokkos::Issue1172WorkAround; // For 'fabs' wrappers above
Kokkos::Profiling::pushRegion("GMRES::TotalTime:");
typedef Kokkos::Details::ArithTraits<ScalarType> AT;
typedef typename AT::val_type
Expand Down

0 comments on commit b606719

Please sign in to comment.