From 212fa0edc60fdf3627919d8bbca0ef249f1ba038 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 22 Nov 2024 20:13:01 +0000 Subject: [PATCH] Fix Begin for advanced_reductions and parallel_scan --- Exercises/advanced_reductions/Begin/advanced_reductions.cpp | 3 ++- Exercises/parallel_scan/Begin/parallel_scan.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Exercises/advanced_reductions/Begin/advanced_reductions.cpp b/Exercises/advanced_reductions/Begin/advanced_reductions.cpp index ef9943ca..fa199d8d 100644 --- a/Exercises/advanced_reductions/Begin/advanced_reductions.cpp +++ b/Exercises/advanced_reductions/Begin/advanced_reductions.cpp @@ -40,7 +40,8 @@ int main(int argc, char *argv[]) { n, KOKKOS_LAMBDA(int i) { view(i) = 1 + i / 10.; }); double result; - Kokkos::parallel_reduce(n, GeometricMean{view}, result); + /* EXERCISE */ + // Kokkos::parallel_reduce(n, GeometricMean{view}, result); auto host_view = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{}, view); diff --git a/Exercises/parallel_scan/Begin/parallel_scan.cpp b/Exercises/parallel_scan/Begin/parallel_scan.cpp index 8cef5fad..059c6bcb 100644 --- a/Exercises/parallel_scan/Begin/parallel_scan.cpp +++ b/Exercises/parallel_scan/Begin/parallel_scan.cpp @@ -27,7 +27,8 @@ int main(int argc, char *argv[]) { int n = 10; Kokkos::View view("view", n); - Kokkos::parallel_scan(n, Factorial{view}); + /* EXERCISE */ + // Kokkos::parallel_scan(n, Factorial(view)); auto host_view = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{}, view);