Skip to content

Commit

Permalink
Change the default value of The_Pinned_Arena release threshold (#3479)
Browse files Browse the repository at this point in the history
The old default of the size of device memory is too big for some
machines (e.g., Perlmutter 80 GB nodes). Some WarpX runs were out of
memory during restart. It is now set to half of the device memory.
  • Loading branch information
WeiqunZhang authored Aug 4, 2023
1 parent 1f1a661 commit a7f2cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Arena.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Arena::Initialize ()
#ifdef AMREX_USE_SYCL
the_arena_init_size = std::min(the_arena_init_size, Gpu::Device::maxMemAllocSize());
#endif
the_pinned_arena_release_threshold = Gpu::Device::totalGlobalMem();
the_pinned_arena_release_threshold = Gpu::Device::totalGlobalMem() / Gpu::Device::numDevicePartners() / 2L;
#endif

ParmParse pp("amrex");
Expand Down

0 comments on commit a7f2cd9

Please sign in to comment.