diff --git a/Intro_Tutorial/lessons/05_raja_reduce/README.md b/Intro_Tutorial/lessons/05_raja_reduce/README.md index 95947e9..7033056 100644 --- a/Intro_Tutorial/lessons/05_raja_reduce/README.md +++ b/Intro_Tutorial/lessons/05_raja_reduce/README.md @@ -8,7 +8,7 @@ write to the same memory location at the same time. This is often called a **race condition** and can cause an algorithm to produce **non-deterministic**, order-dependent results. -Consider an attempt to write an OpenMP parallel kernel to computed the sum of +Consider an attempt to write an OpenMP parallel kernel to compute the sum of the elements in an array: ``` diff --git a/Intro_Tutorial/lessons/09_raja_view/README.md b/Intro_Tutorial/lessons/09_raja_view/README.md index 8c0045b..de4ecfa 100644 --- a/Intro_Tutorial/lessons/09_raja_view/README.md +++ b/Intro_Tutorial/lessons/09_raja_view/README.md @@ -1,10 +1,10 @@ # Lesson 9: RAJA Views and Layouts In this lesson, you will learn how to use `RAJA::View` to simplify -multidimensional indexing in a matrix-matrix multiplication kernel. +multidimensional indexing. -As is commonly done for efficiency in C and C++, we have allocated the data for -the matrices as one-dimensional arrays. Thus, we need to manually compute the +As is commonly done for efficiency in C and C++, we have allocated the data as +one-dimensional arrays. Thus, we need to manually compute the data pointer offsets for the row and column indices in the kernel. A `RAJA::View` type takes two template parameters. The `TYPE` @@ -54,6 +54,8 @@ wish to learn more details, please see [RAJA Make Permuted View](https://raja.re There are additional `TODO` comments asking you to insert bounds of nested for-loops, and fill in `A` and `R` with their respective index values. +Finally, check the output to make sure that `A`, `R`, and `L` all print out +the same ordering of index values. When you are ready, uncomment the `COMPILE` macro and compile and run the code: ``` $ make 09_raja_view