Skip to content

Commit 0d17e13

Browse files
committed
cout -> printf
1 parent b1570f6 commit 0d17e13

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Exercises/unique_token/Begin/unique_token.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include<Kokkos_Core.hpp>
1+
#include <Kokkos_Core.hpp>
22

33
// EXERCISE: need to remove the ifdef...
44
#ifdef KOKKOS_ENABLE_OPENMP
@@ -89,7 +89,7 @@ int main(int argc, char* argv[]) {
8989
Kokkos::deep_copy(values,values_h);
9090

9191
double time_dup = scatter_add_loop(values,results,D);
92-
std::cout << "Time Duplicated: " << N << " " << M << " " << time_dup << std::endl;
92+
printf("Time Duplicated: %d %d %lf\n",N,M,time_dup);
9393

9494
}
9595
Kokkos::finalize();

Exercises/unique_token/Solution/unique_token.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include<Kokkos_Core.hpp>
1+
#include <Kokkos_Core.hpp>
22

33
using atomic_2d_view = Kokkos::View<int**, Kokkos::DefaultExecutionSpace,
44
Kokkos::MemoryTraits<Kokkos::Atomic> >;
@@ -87,7 +87,7 @@ int main(int argc, char* argv[]) {
8787
Kokkos::deep_copy(values,values_h);
8888

8989
double time_dup = scatter_add_loop(values,results,D);
90-
std::cout << "Time Duplicated: " << N << " " << M << " " << time_dup << std::endl;
90+
printf("Time Duplicated: %d %d %d %lf\n",N,M,D,time_dup);
9191

9292
}
9393
Kokkos::finalize();

0 commit comments

Comments
 (0)