Skip to content

Commit

Permalink
clean up 7
Browse files Browse the repository at this point in the history
  • Loading branch information
artv3 committed Aug 12, 2024
1 parent fa5f1db commit 3508dfc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
if (ENABLE_CUDA)
blt_add_executable(
NAME seven
SOURCES seven.cpp
NAME 07_raja_umpire_host_device
SOURCES 07_raja_umpire_host_device.cpp
DEPENDS_ON RAJA umpire cuda)
endif()
8 changes: 4 additions & 4 deletions Intro_Tutorial/lessons/07_raja_umpire_host_device/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
In this lesson, you will learn how to use Umpire's operations to copy data
between CPU and GPU memory in a portable way.

In `seven.cpp`, we create an allocator for the GPU with:
In `07_raja_umpire_host_device.cpp`, we create an allocator for the GPU with:
```
auto allocator = rm.getAllocator("DEVICE");
```
Expand All @@ -30,12 +30,12 @@ void umpire::ResourceManager::copy (void* dst_ptr, void * src_ptr, std::size_t s

*Note:* The destination is the first argument.

In the file `seven.cpp`, there is a `TODO` comment where you should insert two copy
In the file `07_raja_umpire_host_device.cpp`, there is a `TODO` comment where you should insert two copy
calls to copy data from the CPU memory to the DEVICE memory.

When you are done editing the file, compile and run it:

```
$ make seven
$ ./bin/seven
$ make 07_raja_umpire_host_device
$ ./bin/07_raja_umpire_host_device
```

0 comments on commit 3508dfc

Please sign in to comment.