@@ -560,8 +560,16 @@ to :cpp:`The_Arena()` to reduce memory fragmentation.
560560In :cpp: `amrex::Initialize `, a large amount of GPU device memory is
561561allocated and is kept in :cpp: `The_Arena() `. The default is 3/4 of the
562562total device memory, and it can be changed with a :cpp: `ParmParse `
563- parameter, ``amrex.the_arena_init_size ``, in the unit of bytes. The default
564- initial size for other arenas is 8388608 (i.e., 8 MB). For
563+ parameter, ``amrex.the_arena_init_size ``, in the unit of bytes. The default
564+ can also be changed with an environment variable
565+ ``AMREX_THE_ARENA_INIT_SIZE=X ``, where ``X `` is the number of bytes. When
566+ both the :cpp: `ParmParse ` parameter and the environment variable are
567+ present, the former will override the latter. In both cases, the number
568+ string could have optional single quotes ``' `` as separators (e.g.,
569+ ``10'000'000'000 ``). It may also use floating-point notation (``2.5e10 ``),
570+ as long as converting it does not introduce any loss of precision.
571+
572+ The default initial size for other arenas is 8388608 (i.e., 8 MB). For
565573:cpp: `The_Managed_Arena() ` and :cpp: `The_Device_Arena() `, it can be changed
566574with ``amrex.the_managed_arena_init_size `` and
567575``amrex.the_device_arena_init_size ``, respectively, if they are not an alias
0 commit comments