3 Test program to do matrix multiplication on large arrays.
5 Intended to stress virtual memory system.
7 Ideally, we could read the matrices off of the file system,
8 and store the result back to the file system!
13 /* You should define this to be large enough that the arrays
14 don't fit in physical memory.
23 16,384 3,145,728 kB */
36 /* Initialize the matrices. */
37 for (i = 0; i < Dim; i++)
38 for (j = 0; j < Dim; j++)
45 /* Multiply matrices. */
46 for (i = 0; i < Dim; i++)
47 for (j = 0; j < Dim; j++)
48 for (k = 0; k < Dim; k++)
49 C[i][j] += A[i][k] * B[k][j];
52 exit (C[Dim - 1][Dim - 1]);