Skip to content

Commit

Permalink
Merge pull request #556 from kokkos/fix-werror
Browse files Browse the repository at this point in the history
sptrsv: fix -werror
  • Loading branch information
ndellingwood authored Dec 21, 2019
2 parents 6684d19 + b9609cd commit 52cb6c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sparse/impl/KokkosSparse_sptrsv_solve_spec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ struct SPTRSV_SOLVE<KernelHandle, RowMapType, EntriesType, ValuesType, BType, XT
XType x)
{
// Call specific algorithm type
using ExecSpace = typename RowMapType::memory_space::execution_space;
auto sptrsv_handle = handle->get_sptrsv_handle();

if ( sptrsv_handle->is_lower_tri() ) {
Expand All @@ -171,6 +170,7 @@ struct SPTRSV_SOLVE<KernelHandle, RowMapType, EntriesType, ValuesType, BType, XT
}
else {
#ifdef KOKKOSKERNELS_SPTRSV_CUDAGRAPHSUPPORT
using ExecSpace = typename RowMapType::memory_space::execution_space;
if ( std::is_same<ExecSpace, Kokkos::Cuda>::value)
Experimental::lower_tri_solve_cg( *sptrsv_handle, row_map, entries, values, b, x);
else
Expand All @@ -187,6 +187,7 @@ struct SPTRSV_SOLVE<KernelHandle, RowMapType, EntriesType, ValuesType, BType, XT
}
else {
#ifdef KOKKOSKERNELS_SPTRSV_CUDAGRAPHSUPPORT
using ExecSpace = typename RowMapType::memory_space::execution_space;
if ( std::is_same<ExecSpace, Kokkos::Cuda>::value)
Experimental::upper_tri_solve_cg( *sptrsv_handle, row_map, entries, values, b, x);
else
Expand Down

0 comments on commit 52cb6c4

Please sign in to comment.