From 8b31289fd80c5666593f3f9563510b97a686199f Mon Sep 17 00:00:00 2001 From: Arturo Vargas Date: Mon, 12 Aug 2024 12:16:28 -0700 Subject: [PATCH] clean up 8 --- .../{eight.cpp => 08_raja_umpire_quick_pool.cpp} | 0 .../lessons/08_raja_umpire_quick_pool/CMakeLists.txt | 4 ++-- Intro_Tutorial/lessons/08_raja_umpire_quick_pool/README.md | 6 +++--- ..._solution.cpp => 08_raja_umpire_quick_pool_solution.cpp} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename Intro_Tutorial/lessons/08_raja_umpire_quick_pool/{eight.cpp => 08_raja_umpire_quick_pool.cpp} (100%) rename Intro_Tutorial/lessons/08_raja_umpire_quick_pool/solution/{eight_solution.cpp => 08_raja_umpire_quick_pool_solution.cpp} (100%) diff --git a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/eight.cpp b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/08_raja_umpire_quick_pool.cpp similarity index 100% rename from Intro_Tutorial/lessons/08_raja_umpire_quick_pool/eight.cpp rename to Intro_Tutorial/lessons/08_raja_umpire_quick_pool/08_raja_umpire_quick_pool.cpp diff --git a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/CMakeLists.txt b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/CMakeLists.txt index fef5044..83a0ca2 100644 --- a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/CMakeLists.txt +++ b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/CMakeLists.txt @@ -1,6 +1,6 @@ if (ENABLE_CUDA) blt_add_executable( - NAME eight - SOURCES eight.cpp + NAME 08_raja_umpire_quick_pool + SOURCES 08_raja_umpire_quick_pool.cpp DEPENDS_ON RAJA umpire cuda) endif() diff --git a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/README.md b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/README.md index e0d45be..587bed7 100644 --- a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/README.md +++ b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/README.md @@ -21,13 +21,13 @@ 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`). Remember that you will also need to include the `umpire/strategy/QuickPool.hpp` header file. +file `08_raja_umpire_quick_pool.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 When you have created your QuickPool allocator, uncomment the COMPILE define on line 7; then compile and run the code: ``` -$ make eight -$ ./bin/eight +$ make 08_raja_umpire_quick_pool +$ ./bin/08_raja_umpire_quick_pool ``` diff --git a/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/solution/eight_solution.cpp b/Intro_Tutorial/lessons/08_raja_umpire_quick_pool/solution/08_raja_umpire_quick_pool_solution.cpp similarity index 100% rename from Intro_Tutorial/lessons/08_raja_umpire_quick_pool/solution/eight_solution.cpp rename to Intro_Tutorial/lessons/08_raja_umpire_quick_pool/solution/08_raja_umpire_quick_pool_solution.cpp