// C Driver Program to demonstrate lbstime.a library for timing C and Fortan Codes // // Andrew J. Pounds, Ph.D. // Departments of Chemistry and Computer Science // Mercer University // Spring 2007 #include #include #define MAXSIZE 1000 /* Function Prototypes */ void mmult( int N, float *A, float *B, float *C); double walltime_(); double cputime_(); int main() { int i, j, k, idim; float *A, *B, *C; float sum; double wall, cpu; // Create space for matrices A = (float *) malloc(MAXSIZE*MAXSIZE*sizeof(float)); B = (float *) malloc(MAXSIZE*MAXSIZE*sizeof(float)); C = (float *) malloc(MAXSIZE*MAXSIZE*sizeof(float)); // Create matrices for (i=0;i