Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gartavanis committed Dec 10, 2024
1 parent f31ba16 commit a4183b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ endif()
# Include Umpire for pool allocation
if((${PARFLOW_HAVE_CUDA}) OR (${PARFLOW_HAVE_KOKKOS}))
if(DEFINED umpire_ROOT)
find_package(umpire)
find_package(umpire REQUIRED)
set(PARFLOW_HAVE_UMPIRE "yes")
message(STATUS "ACCELERATOR: Compiling with CUDA and Umpire")
endif(DEFINED umpire_ROOT)
Expand Down
2 changes: 2 additions & 0 deletions cmake/parflow_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,6 @@

#cmakedefine PARFLOW_HAVE_OMP

#cmakedefine PARFLOW_HAVE_UMPIRE

#endif // PARFLOW_CONFIG_H
2 changes: 1 addition & 1 deletion pfsimulator/amps/common/umpire_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
extern "C" {
void umpireInit() {
// Create a pool allocator
// Initial size (default: 512MB) and pool increase size (1MB) can be tuned in the constructor.
// Initial size (default: 512MB) and pool increase size (1MB) can be tuned in the constructor.
auto& rm = umpire::ResourceManager::getInstance();
auto allocator = rm.getAllocator("UM");
auto pooled_allocator = rm.makeAllocator<umpire::strategy::DynamicPoolList>("UM_pool", allocator);
Expand Down

0 comments on commit a4183b4

Please sign in to comment.