Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/05_raja_reduce/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down
8 changes: 5 additions & 3 deletions Intro_Tutorial/lessons/09_raja_view/README.md
Original file line number Diff line number Diff line change
@@ -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, LAYOUT>` type takes two template parameters. The `TYPE`
Expand Down Expand Up @@ -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
Expand Down