Skip to content

Commit 0906f10

Browse files
committed
tests: minor edits
1 parent ef31e35 commit 0906f10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/kokkos-based/add_kokkos.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void print_elements(const T1 & v, const std::vector<ScalarType> & gold)
99
std::cout << "computed = " << v(i)
1010
<< " , gold = "
1111
<< gold[i]
12-
<< std::endl;
12+
<< "\n";
1313
}
1414
}
1515

examples/kokkos-based/dot_kokkos.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main(int argc, char* argv[])
3333
printf("Seq result = %lf\n", res_seq);
3434

3535
// This forwards to KokkosKernels
36-
auto res_kk = stdla::dot(KokkosKernelsSTD::kokkos_exec<>(), a, b, init_value);
36+
const auto res_kk = stdla::dot(KokkosKernelsSTD::kokkos_exec<>(), a, b, init_value);
3737
printf("Kokkos result = %lf\n", res_kk);
3838
}
3939
Kokkos::finalize();

examples/kokkos-based/dotc_kokkos.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(int argc, char* argv[])
3535
std::cout << "Seq result = " << res_seq << "\n";
3636

3737
// This forwards to KokkosKernels
38-
auto res_kk = stdla::dotc(KokkosKernelsSTD::kokkos_exec<>(), a, b, init_value);
38+
const auto res_kk = stdla::dotc(KokkosKernelsSTD::kokkos_exec<>(), a, b, init_value);
3939
std::cout << "Kokkos result = " << res_kk << "\n";
4040
}
4141
Kokkos::finalize();

0 commit comments

Comments
 (0)