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

How to solve the problem of 'insufficient virtual memory'

Zhanghong_T_
Novice
4,156 Views
In CVF 6.6, when I allocate a large array, program can't execute and displays 'insufficient virtual memory'. I have setthe maximum virtual memory to 4096M from Control Panel. Can I do any other thing to avoid this?
Thanks,
Zhanghong Tang
0 Kudos
26 Replies
Steven_L_Intel1
Employee
763 Views
If you use a 64-bit PC and OS with a compiler that understands it, then you can typically do dynamic allocation of much larger arrays. Note that how large still depends on your system configuration - physical memory and available disk space for the paging file.
0 Kudos
Zhanghong_T_
Novice
763 Views
Oh thanks!
Is there any requirement for using 64-bit envirnment? A 64-bit PC+Windows2003? Does IVF8.0+VS.net2003 or CVF6.6 support for 64-bit envirnment?
Zhanghong Tang
0 Kudos
Steven_L_Intel1
Employee
763 Views
Intel Fortran supports Windows Server 2003 on Intel Itanium processors, this is a 64-bit environment. A future version will support Intel processors with Intel Extended Memory 64 Technology, which provides a 64-bit environment. MS hasn't released Windows for this yet, though. CVF is 32-bit only.
0 Kudos
Zhanghong_T_
Novice
763 Views
Thank you very much!
Zhanghong Tang
0 Kudos
TimP
Honored Contributor III
763 Views
Here you could read about Visual Studio for 64-bit OS:
http://lab.msdn.microsoft.com/vs2005/(although most of the stuff there is about 32-bit).
I understand that full Intel Fortran support under 64-bit Visual Studio won't come until that releases. I don't think Steve was talking about a Visual Studio environment.
You should be able to take 32-bit binaries, built on a 32-bit OS installation, and run them on the 64-bit OS. You can't mix 32- and 64-bit .obj and .dll, but the 64-bit Windows includes 32-bit copies of the standard Windows .dll's and DirectX.
Right now, it's difficult to get a copy of the beta x64 Windows 2003, in the version which runs on the Intel platform. The Microsoft SDK is required as a base to develop software on that OS. There is only command line interface, and the ability to set up 32-bit Cygwin for partial support of software builds.
0 Kudos
Zhanghong_T_
Novice
763 Views
Oh, it seems it is difficult to build my code on 64-bit environment right now...
It's better for me to improve my algorithm and wait...
Thank all of you very much! Every time I can study a lot from you!
Sincerely,
Zhanghong Tang
0 Kudos
Reply