Skip to content

Commit

Permalink
KokkosKernels: patch in supernodal fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-kelley committed Feb 2, 2021
1 parent e9f096c commit e07ef9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,11 @@ class SPTRSVHandle {
using integer_view_t = Kokkos::View<int*, supercols_memory_space>;
using integer_view_host_t = Kokkos::View<int*, supercols_host_memory_space>;

using workspace_t = typename Kokkos::View<scalar_t*, supercols_memory_space>;
using workspace_t = typename Kokkos::View<scalar_t*, Kokkos::Device<execution_space, supercols_memory_space>>;

//
using host_crsmat_t = KokkosSparse::CrsMatrix<scalar_t, nnz_lno_t, supercols_host_execution_space, void, size_type>;
using crsmat_t = KokkosSparse::CrsMatrix<scalar_t, nnz_lno_t, execution_space, void, size_type>;
using crsmat_t = KokkosSparse::CrsMatrix<scalar_t, nnz_lno_t, Kokkos::Device<execution_space, PersistentMemorySpace>, void, size_type>;

//
using host_graph_t = typename host_crsmat_t::StaticCrsGraphType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ struct SparseTriSupernodalSpMVFunctor

using scalar_t = typename LHSType::non_const_value_type;

using work_view_t = typename Kokkos::View<scalar_t*, memory_space>;
using work_view_t = typename Kokkos::View<scalar_t*, Kokkos::Device<execution_space, memory_space>>;

int flag;
long node_count;
Expand Down Expand Up @@ -698,7 +698,7 @@ struct LowerTriSupernodalFunctor
using scalar_t = typename ValuesType::non_const_value_type;

using integer_view_t = Kokkos::View<int*, memory_space>;
using work_view_t = typename Kokkos::View<scalar_t*, memory_space>;
using work_view_t = typename Kokkos::View<scalar_t*, Kokkos::Device<execution_space, memory_space>>;

using range_type = Kokkos::pair<int, int>;

Expand Down Expand Up @@ -875,7 +875,7 @@ struct UpperTriSupernodalFunctor
using scalar_t = typename ValuesType::non_const_value_type;

using integer_view_t = Kokkos::View<int*, memory_space>;
using work_view_t = typename Kokkos::View<scalar_t*, memory_space>;
using work_view_t = typename Kokkos::View<scalar_t*, Kokkos::Device<execution_space, memory_space>>;

using SupernodeView = typename Kokkos::View<scalar_t**, Kokkos::LayoutLeft,
memory_space, Kokkos::MemoryUnmanaged>;
Expand Down

0 comments on commit e07ef9d

Please sign in to comment.