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

maximum array size

htg20
Beginner
893 Views
Hello!

I am using an evaluation version of Intel Visual fortran for windows xp64 with 8GB of RAM. I noticed that when I define a real or integer type Array with size more than536700000 elements, the code does not compile (code 3) or gives the error "image exceeds maximum array size(80000000).

Is this due to being an evaluation version, a bug or a compiler option? Because in 64bit versions, there shouldn't be any limitation on the array size except of physical memory.

Thanks!
Hossein
0 Kudos
1 Solution
jimdempseyatthecove
Honored Contributor III
893 Views

The static data section of a program (including preallocated arrays) cannot exceed 2GB. Make the array ALLOCATABLE then at start of program add

CALL InitArrays()

And write an InitArrays subroutine to perform your allocations (name this subroutine whatever make sense to you)

Jim Dempsey

View solution in original post

0 Kudos
1 Reply
jimdempseyatthecove
Honored Contributor III
894 Views

The static data section of a program (including preallocated arrays) cannot exceed 2GB. Make the array ALLOCATABLE then at start of program add

CALL InitArrays()

And write an InitArrays subroutine to perform your allocations (name this subroutine whatever make sense to you)

Jim Dempsey
0 Kudos
Reply