Skip to content

Commit

Permalink
add missing N to example 4
Browse files Browse the repository at this point in the history
  • Loading branch information
artv3 committed Sep 1, 2024
1 parent 4a6ca9f commit 38d5edf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Intro_Tutorial/lessons/04_raja_forall/04_raja_forall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ int main()
{
double* data{nullptr};

constexpr int N = 100;

auto& rm = umpire::ResourceManager::getInstance();
auto allocator = rm.getAllocator("HOST");

data = static_cast<double*>(allocator.allocate(100*sizeof(double)));
data = static_cast<double*>(allocator.allocate(N*sizeof(double)));

std::cout << "Address of data: " << data << std::endl;

Expand Down

0 comments on commit 38d5edf

Please sign in to comment.