Skip to content

Commit

Permalink
Change the default value of The_Pinned_Arena release threshold
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 committed Aug 3, 2023
1 parent 1ce0303 commit 84bf503
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 84bf503

Please sign in to comment.