Skip to Content.
Sympa Menu

forum - Memory Leaks in Abinit-PAW

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Memory Leaks in Abinit-PAW


Chronological Thread 
  • From: Enrico Bellotti <bellotti@bu.edu>
  • To: forum@abinit.org
  • Subject: Memory Leaks in Abinit-PAW
  • Date: Sun, 23 Oct 2005 12:06:05 -0400

Greetings to all,
just as a minor contribution i would like to point out that some compilers have a different behavior when it comes to "garbage collection" for structure that are dynamically allocated. I have looked at this problem for the DEC Fortran Compiler, Intel Fortran Compiler and PGI. In general the first two will do a very good job in reallocating the memory for structures no longer used while the PGI keeps reallocating new memory. This is particularly problematic in subroutines that allocate local data structures. If the data structures are not explicitly de-allocated before exiting at the next call, the data-structure is allocated once again. The DEC and Intel compiler will reuse (or try to) the same memory space while the PGI will reallocate different memory pages. For the PGI the net results is a out-of-memory problem even if the machine has a lot of RAM. I am not sure what the behavior of the g95 is. Hope this is useful.
Regards.
Enrico



||||| Enrico Bellotti, Ph.D.
_ _ Assistant Professor
. . Boston University
| Electrical & Computer Engineering Dept.
\_/ 8 Saint Mary's Street
Boston, MA 02215-2421
USA
Tel. 617-358-1576
Fax. 617-353-1283
e-mail bellotti@bu.edu




Archive powered by MHonArc 2.6.16.

Top of Page