You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ST6 package is running out of memory on SMC grid with O(2.5M) points (or 3.9GB per MPI process) under development branch. No issues in version 6.07. It appears to be an issues related to Intel's legacy compiler ifort and Intel's OneAPI compiler ifx. No issues found with GCC compiler gfortran.
The text was updated successfully, but these errors were encountered:
It appears that changing the file extension
from .ftn in v6.07 to .F90 in v7 triggered a memory leak in
Intel's Fortran compilers. The issue occurs when mapping
from a dynamically allocated array to a static array.
GCC gfortran on the other hand will make sure that allocated
arrays will be freed on exit of a subroutine.
The leak is about 250B per grid point and subroutine call.
This translates to 5MB per time step on a 2.5M proint grid.
Updates
-------
[x] Change array type from static to allocatalbe.
[x] Explicitely add DEALLOCATE statements.
[x] Move arrays with constantes to MODULE level.
[x] Add checks for allocation status.
Describe the bug
ST6 package is running out of memory on SMC grid with O(2.5M) points (or 3.9GB per MPI process) under development branch. No issues in version 6.07. It appears to be an issues related to Intel's legacy compiler
ifort
and Intel's OneAPI compilerifx
. No issues found with GCC compilergfortran
.The text was updated successfully, but these errors were encountered: