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

Not a valid win32 application

cria_ro
Beginner
1,369 Views
Hi,

I am using Intel fortran compiler for windows version 9. Whenever I put the size of an array bigger then some value I get this error when I am running the executable:

diff.exe id not a valid win32 application.
(The message is in an windows box)

and in the console ...

Access is denied.


Do you know what is happening?


I am compiling using this
ifort /4R8 /QxN /QaxP diffl-new.f

Cristi

Message Edited by cria_ro@yahoo.com on 09-14-2005 12:31 AM

0 Kudos
5 Replies
Steven_L_Intel1
Employee
1,369 Views
Are you also seeing a warning from the linker about the size? If your program has more than 2GB of static code and data, Windows can't run it.
0 Kudos
cria_ro
Beginner
1,369 Views
Can the problem be solved by allocating dyanmical the memory?
I get no warning from the linker.

Cristi

Message Edited by cria_ro@yahoo.com on 09-14-2005 06:11 AM

0 Kudos
Steven_L_Intel1
Employee
1,369 Views
Well, you can't go above 2GB in 32-bit Windows anyway. How big are your arrays?
0 Kudos
cria_ro
Beginner
1,369 Views
There are a few real arrays that have 200000000 elements. I am not sure what how much a real constant occupies, but if it is 4 bytes it is still 800 M.

Message Edited by cria_ro@yahoo.com on 09-14-2005 06:39 AM

0 Kudos
Steven_L_Intel1
Employee
1,369 Views
Well, yes, 800MB for one array. If you have two, that's 1.6GB (and that's not counting anything else in the program). Three is 2.4GB and you're well over the limit.

Sounds as if you're in the market for an EM64T system and Windows XP x64 Edition. With that, our EM64T compiler and dynamic allocation you can go much bigger.
0 Kudos
Reply