Skip to content

Commit

Permalink
Fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vqd8a committed Aug 1, 2020
1 parent 0d1a380 commit fccf879
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions packages/ifpack2/src/Ifpack2_IlukGraph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,16 +176,7 @@ class IlukGraph : public Teuchos::Describable {
size_t getNumGlobalDiagonals() const { return NumGlobalDiagonals_; }

private:
typedef typename GraphType::map_type map_type;

typedef typename crs_graph_type::local_graph_type local_graph_type;
typedef typename local_graph_type::size_type size_type;
typedef typename local_graph_type::data_type data_type;
typedef typename local_graph_type::array_layout array_layout;
typedef typename local_graph_type::device_type device_type;

typedef typename Kokkos::View<size_type*, array_layout, device_type> lno_row_view_t;
typedef typename Kokkos::View<data_type*, array_layout, device_type> lno_nonzero_view_t;
typedef typename GraphType::map_type map_type;

/// \brief Copy constructor (UNIMPLEMENTED; DO NOT USE).
///
Expand Down Expand Up @@ -573,6 +564,15 @@ void IlukGraph<GraphType, KKHandleType>::initialize(const Teuchos::RCP<KKHandleT
using Teuchos::REDUCE_SUM;
using Teuchos::reduceAll;

typedef typename crs_graph_type::local_graph_type local_graph_type;
typedef typename local_graph_type::size_type size_type;
typedef typename local_graph_type::data_type data_type;
typedef typename local_graph_type::array_layout array_layout;
typedef typename local_graph_type::device_type device_type;

typedef typename Kokkos::View<size_type*, array_layout, device_type> lno_row_view_t;
typedef typename Kokkos::View<data_type*, array_layout, device_type> lno_nonzero_view_t;

constructOverlapGraph();

// FIXME (mfh 23 Dec 2013) Use size_t or whatever
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ compute ()
kh_->destroy_sptrsv_handle();
#if defined(KOKKOSKERNELS_ENABLE_TPL_CUSPARSE) && defined(KOKKOS_ENABLE_CUDA)
// CuSparse only supports int type ordinals
if (std::is_same<Kokkos::Cuda, typename local_matrix_device_type::execution_space>::value && std::is_same<int,local_ordinal_type >::value)
if (std::is_same<Kokkos::Cuda, HandleExecSpace>::value && std::is_same<int,local_ordinal_type >::value)
{
kh_->create_sptrsv_handle(KokkosSparse::Experimental::SPTRSVAlgorithm::SPTRSV_CUSPARSE, numRows, is_lower_tri);
}
Expand Down
2 changes: 2 additions & 0 deletions packages/ifpack2/src/Ifpack2_RILUK_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@

#include "Ifpack2_LocalFilter.hpp"
#include "Tpetra_CrsMatrix.hpp"
#include "Teuchos_StandardParameterEntryValidators.hpp"
#include "Ifpack2_LocalSparseTriangularSolver.hpp"
#include "Ifpack2_Details_getParamTryingTypes.hpp"
#include "Kokkos_Sort.hpp"

namespace Ifpack2 {

Expand Down

0 comments on commit fccf879

Please sign in to comment.