Skip to content

Commit 212fa0e

Browse files
committed
Fix Begin for advanced_reductions and parallel_scan
1 parent 800b138 commit 212fa0e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Exercises/advanced_reductions/Begin/advanced_reductions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ int main(int argc, char *argv[]) {
4040
n, KOKKOS_LAMBDA(int i) { view(i) = 1 + i / 10.; });
4141

4242
double result;
43-
Kokkos::parallel_reduce(n, GeometricMean{view}, result);
43+
/* EXERCISE */
44+
// Kokkos::parallel_reduce(n, GeometricMean{view}, result);
4445

4546
auto host_view =
4647
Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{}, view);

Exercises/parallel_scan/Begin/parallel_scan.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ int main(int argc, char *argv[]) {
2727
int n = 10;
2828
Kokkos::View<double *> view("view", n);
2929

30-
Kokkos::parallel_scan(n, Factorial{view});
30+
/* EXERCISE */
31+
// Kokkos::parallel_scan(n, Factorial(view));
3132

3233
auto host_view =
3334
Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{}, view);

0 commit comments

Comments
 (0)