Skip to content

Commit a666953

Browse files
Comment out some Kokkos call in Begin exercises
advanced_reductions.cpp and parallel_scan.cpp cannot compile due to missing code (the exercise).
1 parent f72fa8f commit a666953

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 uncomment the following line when GeometricMean is implemented
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 Uncomment when Factorial is implemented
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)