Skip to content

Commit

Permalink
Merge pull request #18 from LLNL/task/kab163/fix-issues
Browse files Browse the repository at this point in the history
Minor fixes to address github issues
  • Loading branch information
kab163 authored Oct 9, 2023
2 parents 06da65b + f242053 commit cb66f04
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Intro_Tutorial/lessons/02/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ blt_add_executable(
DEPENDS_ON )
```

Once you have added the dependencies, you can build and run the lesson as
Once you have added the dependencies, uncomment out the RAJA and Umpire header
includes in the source code. Then, you can build and run the lesson as
before. As a reminder, open the VSCode terminal (Shift + ^ + `), and then
move to the build directory:

Expand Down
4 changes: 2 additions & 2 deletions Intro_Tutorial/lessons/02/two.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <iostream>

#include "RAJA/RAJA.hpp"
#include "umpire/Umpire.hpp"
//#include "RAJA/RAJA.hpp"
//#include "umpire/Umpire.hpp"

int main()
{
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/05/five.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

int main()
{
constexpr int N{10000};
constexpr int N{1000};
double* a{nullptr};
double* b{nullptr};

Expand Down
7 changes: 5 additions & 2 deletions Intro_Tutorial/lessons/06/six.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
#include "RAJA/RAJA.hpp"
#include "umpire/Umpire.hpp"

#if defined(COMPILE)
//TODO: uncomment this out in order to build!
//#define COMPILE

int main()
{
constexpr int N{10000};
#if defined(COMPILE)

constexpr int N{1000};
//TODO: Set up a block size value
constexpr std::size_t CUDA_BLOCK_SIZE{????};
double* a{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/07/seven.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

int main()
{
constexpr int N{10000};
constexpr int N{1000};
constexpr std::size_t CUDA_BLOCK_SIZE{256};
double* a{nullptr};
double* b{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/08/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To create a new memory pool allocator using the `QuickPool` strategy, we can use

This newly created `pool` is an `umpire::Allocator` using the `QuickPool` strategy. As you can see above, we can use the `ResourceManager::makeAllocator` function to create the pool allocator. We just need to pass
in: (1) the name we would like the pool to have, and (2) the allocator we previously created with the `ResourceManager` (see line 17 in the
file `eight.cpp`).
file `eight.cpp`). Remember that you will also need to include the `umpire/strategy/QuickPool.hpp` header file.

There are other arguments that could be passed to the pool constructor if needed. These additional option arguments are a bit advanced and are beyond the scope of this tutorial. However, you can visit the documentation page for more: https://umpire.readthedocs.io/en/develop/doxygen/html/index.html

Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/08/eight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main()
{
#if defined(COMPILE)

constexpr int N{10000};
constexpr int N{1000};
constexpr std::size_t CUDA_BLOCK_SIZE{256};
double* a{nullptr};
double* b{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/09/nine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ int main()
{
#if defined(COMPILE)

constexpr int N{10000};
constexpr int N{1000};
double* a{nullptr};
double* b{nullptr};
double* c{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/10/ten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()

#if defined(COMPILE)

constexpr int N{10000};
constexpr int N{1000};
constexpr std::size_t CUDA_BLOCK_SIZE{256};
constexpr std::size_t DIM{2};

Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/11/eleven.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()
{
#if defined(COMPILE)

constexpr int N{10000};
constexpr int N{1000};
double* a{nullptr};
double* b{nullptr};
double* c{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion Intro_Tutorial/lessons/12/twelve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

int main()
{
constexpr int N{10000};
constexpr int N{1000};
double* a{nullptr};
double* b{nullptr};
double* c{nullptr};
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cmake -DENABLE_CUDA=On -DENABLE_OPENMP=Off -DCMAKE_CUDA_ARCHITECTURES=70 -DCMAKE
```

(Note: you need a cmake version greater than 3.19 and you need a more
recent gcc version which can handle c++14.)
recent gcc version which can handle c++14. For example, on the Lassen LC machine a cmake command like `cmake -DBLT_CXX_STD=c++14 -DCMAKE_CUDA_ARCHITECTURES=70 -DENABLE_CUDA=On -DCMAKE_CUDA_FLAGS="--expt-extended-lambda" ../` after loading appropriate cmake and gcc modules will work well.)

# License

Expand Down

0 comments on commit cb66f04

Please sign in to comment.