forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Allocating more than 2 GB of memory

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Fri Feb 18, 2005 4:01 pm    Post subject: Allocating more than 2 GB of memory Reply with quote

We use Salford compiler for our application.
Our application contains many large arrays. Their total size exceeds 1.7 GB, sometimes more than 2 Gb.
We run our application on a Windows XP machine with 12 Gb of physical memory (24 Gb virtual memory), with the /3Gb switch.
However an "ALLOCATION error -can't allocate memory" is thrown while running the executable.

Is there any compiler switch for the Salford Compiler to allow a Fortran program to allocate more than 2 Gb of RAM?

Thanks


Nick Dumitriu
Back to top
Andrew



Joined: 09 Sep 2004
Posts: 232
Location: Frankfurt, Germany

PostPosted: Sun Feb 20, 2005 7:30 am    Post subject: Allocating more than 2 GB of memory Reply with quote

Have you read this post?

[url="http://forums.silverfrost.com/forums/forum.asp?forumid=3&page=0&select=186#xx186xx"]http://forums.silverfrost.com/forums/forum.asp?forumid=3&page=0&select=186#xx186xx[/url]

You also need to set a flag in the executable header using editbin.exe, specifically IMAGE_FILE_LARGE_ADDRESS_AWARE. See the following page for info on editbin:

[url="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_editbin_command_line.asp"]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_editbin_command_line.asp[/url]

Doing all of this does not guarantee that you will get more than 2GB however. There may be libraries loaded by third-party vendors that could be loaded at an address that prevents allocation of the amount of memory you need. There is another option to get more memory than those outlined in previous threads , and that means moving to a 64bit processor and OS, specifically AMD capable (I do not know about Itanium). Even though FTN95 is a 32bit compiler, when running on 64bit OS/processor (still as a 32bit app) there is a larger available address space for user applications.

If FTN95 is giving you the error you describe, this is being returned from the OS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group