Lecture 9
Learning objectives
After this class, you should be able to:
- Optimize program performance by making effective use of compiler flags and feedback optimization.
- Optimize program performance by making effective use standard libraries.
Reading assignment
- Read the code under the
Lec9
andps3/spu
directory onlinprog
.Exercises and review questions
- Exercises and review questions on current lecture's material
- Use a variety of optimization flags discussed in class and determine a good set of flags for the
MM.c
code..- Use the
cblas
library of ATLAS to perform matrix-vector multiplication, and determine performance as a function of matrix size. See themakefile
andMMBLAS.c
files for examples of compilation and use ofCBLAS
. Also read theCBLAS
reference on blackboard, under the course library tab.- Preparation for the next lecture
- Determine the time taken to run
MMBLAS
using/usr/bin/time
.
Last modified: 9 Feb 2010