Skip to content

Commit 0eaafd0

Browse files
committed
#10: fill random output buffers so pages are not allocated during runtime
1 parent 0ecf3e9 commit 0eaafd0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/benchmarks.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ benchmark_results_t runBenchmarkLevel2(int M, int N, int iters) {
7979
Kokkos::Random_XorShift64_Pool pool(123);
8080
Kokkos::fill_random(x, pool, 10.0);
8181
Kokkos::fill_random(y, pool, 10.0);
82-
// Kokkos::fill_random(A, pool, 10.0);
82+
Kokkos::fill_random(A, pool, 10.0);
8383

8484
std::vector<double> iter_timings;
8585
double total_time = 0.0;
@@ -119,6 +119,7 @@ benchmark_results_t runBenchmarkLevel3(int M, int N, int K, int iters) {
119119
Kokkos::Random_XorShift64_Pool pool(123);
120120
Kokkos::fill_random(A, pool, 10.0);
121121
Kokkos::fill_random(B, pool, 10.0);
122+
Kokkos::fill_random(C, pool, 10.0);
122123

123124
std::vector<double> iter_timings;
124125

0 commit comments

Comments
 (0)