Closed dwillcox closed 7 years ago
Things that do not fix this issue:
implicit none
to make_box_key
dm
in sfc_module
to integer, save :: dm = 3
dm
to make_box_key
by adding use sfc_module, only: dm
A workaround for this issue:
make_box_key
to pass dm
from the calling subroutine init_sfc_module
PR incoming.
Closed by #47
On OLCF Summitdev, the error arises when running the Microphysics test_react test suite on the cudadevice branch with the gpu branch of amrex using PGI 17.4 configured with GCC 6.3.1 with CUDA Fortran enabled.
The compile line is as follows:
make -j COMP=PGI NDEBUG=t MPI= OMP= ACC= CUDA=t NETWORK_DIR=ignition_reaclib/URCA-simple INTEGRATOR_DIR=VODE90 EOS_DIR=helmholtz
Error:
0: ALLOCATE: 281473269719360 bytes requested; not enough memory
This allocation error originates in
amrex/Src/F_BaseLib/knapsack.f90
, specifically the functionmake_box_key
that does not properly import the value ofdm
as the subroutines in the same scope.dm
is thus essentially uninitialized and takes a large value, leading the declarationinteger :: r(dm)
inmake_box_key
to attempt to allocate this absurd amount of memory.