MEMORY_TEST
How Big Can Arrays Be?


MEMORY_TEST is a FORTRAN90 program, using integer, single precision real and double precision real arithmetic, which declares and uses a sequence of larger and larger arrays, to see how big vectors can be in a program.

The program tries an increasing series of values of N, using powers of 2. You can set an internal value of N_LOG_MAX in order to limit the maximum value of N to be checked. This can be handy, since sometimes when you ask for a really big array, instead of failing immediately, the program simply bogs down in some sort of infinite muddle.
Log(N)N
01
12
24
38
416
532
664
7128
8256
9512
101,024
112,048
124,096
138,192
1416,384
1532,768
1665,536
17131,072
18262,144
19524,288
201,048,576
212,097,152
224,194,304
238,388,608
2416,777,216
2533,554,432
2667,108,864
27134,217,728
28268,435,456
29536,870,912
301,073,741,824

Usage:

memory_test
runs the program

Related Data and Programs:

LINPACK_BENCH is a FORTRAN90 benchmark program which measures the time needed to factor and solve a linear system.

MACHINE is a FORTRAN90 library which can return various machine constants.

MATMUL is an executable FORTRAN90 program whichis an interactive matrix multiplication benchmark program.

MDBNCH is an executable FORTRAN77 program which is a benchmark code for a molecular dynamics calculation.

MEMORY_TEST is also available in a C++ version and a MATLAB version.

TIMER is a set of FORTRAN90 example programs that demonstrate how to compute CPU time or elapsed time.

Source Code:

Examples and Tests:

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 07 November 2006.