Skip to content

Commit 33dd9fb

Browse files
authored
Fix kokkos#2336: in StaticCrsGraph use default_size_type (kokkos#2553)
to match the default size type for CrsMatrix, BsrMatrix, etc. Signed-off-by: Brian Kelley <[email protected]>
1 parent 7c21037 commit 33dd9fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sparse/src/KokkosSparse_StaticCrsGraph.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define KOKKOSSPARSE_STATICCRSGRAPH_HPP_
1919

2020
#include <Kokkos_Core.hpp>
21+
#include "KokkosKernels_default_types.hpp"
2122

2223
#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4
2324

@@ -249,7 +250,7 @@ struct GraphRowViewConst {
249250
/// <li> <tt> entries( row_map[i0] + i1 , i2 , i3 , ... ); </tt> </li>
250251
/// </ul>
251252
template <class DataType, class Arg1Type, class Arg2Type = void, class Arg3Type = void,
252-
typename SizeType = typename Kokkos::ViewTraits<DataType*, Arg1Type, Arg2Type, Arg3Type>::size_type>
253+
typename SizeType = ::KokkosKernels::default_size_type>
253254
class StaticCrsGraph {
254255
private:
255256
using traits = Kokkos::ViewTraits<DataType*, Arg1Type, Arg2Type, Arg3Type>;

0 commit comments

Comments
 (0)