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.
38 /* Initialize the matrices. */
39 for (i = 0; i < Dim; i++)
40 for (j = 0; j < Dim; j++)
47 /* Multiply matrices. */
48 for (i = 0; i < Dim; i++)
49 for (j = 0; j < Dim; j++)
50 for (k = 0; k < Dim; k++)
51 C[i][j] += A[i][k] * B[k][j];
54 exit (C[Dim - 1][Dim - 1]);