next up previous contents
Next: Other inner-loop operations Up: Inner-loop operations Previous: Inner-loop operations

timer()

Compile the program in Appendix C (replacing timer() with Appendix D if you are using Windows).

When you have the timer() routine working, compile the program with the highest optimization level of your compiler (options ``-O3 -fomit-frame-pointer'' on the gnu compiler, or ``release'' version for the Windows compiler) and compare the MFLOPS rate with the clock speed of your machine in MHz. Be sure to try problem sizes (128..512) that produce enough operations to get reasonable, repeatable measures of the rate. Optional: You may also which to compare the MFLOPS rate when you compile with or without optimization.



Tomas Arias
Mon Apr 2 13:24:52 EDT 2001