[CPMD-list] Memory allocation - CORRUPTED

Jiri Houska jhouska at kfy.zcu.cz
Wed May 4 12:17:42 CEST 2005


Hi Axel,
thank you very much for your reply. I made the suggested change
(planned for version 3.9.2) and recompiled the program. Unfortunately, the
result was that the program (including jobs with very low memory requirements)
ends now always immediately with error message "PROGRAM STOPS IN SUBROUTINE
MEMORY CHECK| CORRUPTED MEMORY"  - please find the attachement "Axel" if you want. 

I tried also to set IERROR always to 1 or always to 0 by adding this command
just after the #if-#endif sequence changed (attachements IERROR=1 and IERROR=0).
It seems that the case IERROR=0 is equivalent to the version without this
setting (attachement Axel). However, the program is not working.

Please do you (or anybody) have any idea how to fix it (not only delete the
changes and use the original 3.9.1 version, but how to use at least 2 GB of
memory for 1 cpmd process which was my original question)? Thanks in advance!

Jiri Houska

> now you can improve the current situation a little bit by
> changing the code in memory.F around line 100 from 
> #if defined(__HP)
>        IF(IP_XM.EQ.0) THEN
>          IERROR=1
>        ENDIF
> 
> to 
> 
> #if defined(__HP) || defined(__PGI) || defined(LINUX_IFC) || defined(__OSX)
>        IF(IP_XM.EQ.0) THEN
>          IERROR=1
>        ENDIF
> 
> so you'll get at least 2GB. 
> 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Axel
Type: application/octet-stream
Size: 5410 bytes
Desc: not available
Url : http://cpmd.org/pipermail/cpmd-list/attachments/20050504/973398b6/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IERROR=0
Type: application/octet-stream
Size: 5410 bytes
Desc: not available
Url : http://cpmd.org/pipermail/cpmd-list/attachments/20050504/973398b6/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IERROR=1
Type: application/octet-stream
Size: 4140 bytes
Desc: not available
Url : http://cpmd.org/pipermail/cpmd-list/attachments/20050504/973398b6/attachment-0002.obj 


More information about the CPMD-list mailing list