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

Virtual Memory Problem

emersonone
Beginner
382 Views

Hi,

I have a simple test code to test memory

Program Main

ALLOCATABLE :: PNEW(:)
M=1024*1024*470
ALLOCATE (PNEW(0:M))

DO J=1,M
PNEW(J)=J
ENDDO

WRITE(*,*) PNEW(M)
DEALLOCATE (PNEW)
END

The code runs properly with M set at 1024*1024*470, once I increase M to 1024*1024*480. The erros comes out:

Forrt1: severe (41): insufficient virtual memory

I have 3G memory (XP) and 8G virutual memory. I increased the Virtual memory, the problem still exists. What step do you think I should take?

Thanks,

Emerson

0 Kudos
3 Replies
Steven_L_Intel1
Employee
382 Views
You do not have 8G virtual memory unless you're using XP x64 (or another 64-bit OS.) 2GB is the limit.
0 Kudos
emersonone
Beginner
382 Views

So if I upgrade my machine to 64 bit, I can have up to 4 GB virtual memory, right?

Thanks for your reply.

Emerson

0 Kudos
Steven_L_Intel1
Employee
382 Views
You'd have MUCH more than 4GB virtual memory available, depending on how much disk space you had for your swapfile.
0 Kudos
Reply