Skip to content

Commit

Permalink
Fix signed and unsigned integer comparison error
Browse files Browse the repository at this point in the history
  • Loading branch information
vqd8a committed May 4, 2021
1 parent 8f057ec commit 70fb15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sparse/impl/KokkosSparse_spiluk_symbolic_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,12 @@ void iluk_symbolic ( IlukHandle& thandle,
thandle.set_nnzU(cntU);

// Sort
for (size_type row_id = 0; row_id < L_row_map.extent(0)-1; row_id++) {
for (size_type row_id = 0; row_id < static_cast<size_type>(L_row_map.extent(0))-1; row_id++) {
size_type row_start = L_row_map(row_id);
size_type row_end = L_row_map(row_id + 1);
Kokkos::sort(subview(L_entries, Kokkos::make_pair(row_start, row_end)));
}
for (size_type row_id = 0; row_id < U_row_map.extent(0)-1; row_id++) {
for (size_type row_id = 0; row_id < static_cast<size_type>(U_row_map.extent(0))-1; row_id++) {
size_type row_start = U_row_map(row_id);
size_type row_end = U_row_map(row_id + 1);
Kokkos::sort(subview(U_entries, Kokkos::make_pair(row_start, row_end)));
Expand Down

0 comments on commit 70fb15c

Please sign in to comment.