diff --git a/Intro_Tutorial/lessons/04_raja_forall/04_raja_forall.cpp b/Intro_Tutorial/lessons/04_raja_forall/04_raja_forall.cpp index 7b4f798..a0ad940 100644 --- a/Intro_Tutorial/lessons/04_raja_forall/04_raja_forall.cpp +++ b/Intro_Tutorial/lessons/04_raja_forall/04_raja_forall.cpp @@ -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(allocator.allocate(100*sizeof(double))); + data = static_cast(allocator.allocate(N*sizeof(double))); std::cout << "Address of data: " << data << std::endl;