Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29235 Discussions

Fatal compilation error: Out of memory asking

saroberts
Beginner
1,323 Views
When compiling a rather large fortran code (module), I get the following error:

Fatal compilation error: Out of memory asking for 266240.
compilation aborted for Src/Alpha.f90 (code 1)

I am compiling with the following command:
ifort -c -O3 -module Mod -o Lib/alphamod.o Src/Alpha.f90

Any suggestions on how to get around this?

Message Edited by saroberts on 08-10-2005 08:08 AM

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,323 Views
1. Use -O2.
2. Split up the source into smaller files if possible (may be difficult if it's a module.)
3. Raise your datasize limit

I'd start with the last. If you can't resolve it, please submit a test case to Intel Premier Support.
0 Kudos
saroberts
Beginner
1,323 Views
How do you set the datasize limit?
0 Kudos
Steven_L_Intel1
Employee
1,323 Views
In the C shell, it would be:

limit datasize unlimited

Do a "limit" command with no keywords to see what the current values are. "unlimited" doesn't really mean that - rather, it's a preset value when the kernel was built. In some cases, you can specify an explicit value that is larger.
0 Kudos
mtpd
Beginner
1,323 Views
how do I change the size limit in fortran ?
0 Kudos
Steven_L_Intel1
Employee
1,323 Views
You don't do it in a language. "C shell" is a type of Linux shell - BASH is another.
0 Kudos
Reply