memory allocation problem with 32 bits fortran code on Mac
Forum » Forum / Support Questions » memory allocation problem with 32 bits fortran code on Mac
Started by: Thomas Chanier (guest)
On: 1274988741|%e %b %Y, %H:%M %Z|agohover
Number of posts: 2
rss icon RSS: New posts
memory allocation problem with 32 bits fortran code on Mac
Thomas Chanier (guest) 1274988741|%e %b %Y, %H:%M %Z|agohover

Hello,

I tried a 64 atoms supercell calculation with 8x8x8 k-point grid. There was the following error message :

excitingmpi(36114) malloc: * mmap(size=2405527552) failed (error code=12)
* error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
At line 197 of file ../../src/init1.f90
Traceback: not available, compile with -ftrace=frame or -ftrace=full
Operating system error: Cannot allocate memory
Memory allocation failed


when I add either -g -ftrace=full or frame, I have the following error message :

excitingmpi(27612) malloc: * mmap(size=2405527552) failed (error code=12)
* error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
At line 197 of file ../../src/init1.f90
Traceback: (Innermost first)
Called from line 45 of file ../../src/gndstate.f90
Called from line 31 of file ../../src/src_inputparser/tasklauncher.f90
Called from line 21 of file ../../src/mainxml/main.f90
Operating system error: Cannot allocate memory
Memory allocation failed


mpirun has exited due to process rank 5 with PID 27612 on
node supernano.physics.uiowa.edu exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).


The critical lines are :

The critical line is this:

init1.f90:197 allocate(sfacgk(ngkmax, natmtot, nspnfv, nkpt))

which is where the allocation failure occurs. From the mpi communication:

gndstate.f90: call MPI_Bcast(sfacgk, size(sfacgk), MPI_DOUBLE_PRECISION, 0, MPI_COMM_WORLD, ierr)

it appears that sfacgk is *not* split up among the different processes, but rather each process has a complete copy of sfacgk. Is it correct, and if it is a bug or was intentional?

Best,

Thomas

Reply  |  Options
Unfold memory allocation problem with 32 bits fortran code on Mac by Thomas Chanier (guest), 1274988741|%e %b %Y, %H:%M %Z|agohover
Re: memory allocation problem with 32 bits fortran code on Mac
chmbergchmberg 1275031376|%e %b %Y, %H:%M %Z|agohover

This is very interesting. You are right it is peculiar. Might well be a Bug. I need to research this one.

Reply  |  Options
New Post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License