next up previous
Next: Controlling the runtime environment Up: Investigating code segments with Previous: Compiling instrumented Fortran

Compiling instrumented C

To compile instrumented C code, use the statement:

  mpxlc_r -o my_prog.x my_prog.c -I/usr/local/packages/actc/hpmtk/include \
    -L/usr/local/packages/actc/hpmtk/pwr4/lib -lhpm -lpmapi -lm
For an code using OpenMP, the -lhpm has to be replaced by -lhpm_r and the option -qsmp=omp has to be added.



Joachim Hein
2003-11-03