next up previous contents
Next: IEEE arithmetic Up: Caveats Previous: Optimization   Contents

Compiling testing/timing drivers

The testing and timing main programs (xCHKAA, xCHKEE, xTIMAA, and xTIMEE) allocate large amounts of local variables. Therefore, it is vitally important that the user know if his compiler by default allocates local variables statically or on the stack. It is not uncommon for those compilers which place local variables on the stack to cause a stack overflow at runtime in the testing or timing process. The user then has two options: increase your stack size, or force all local variables to be allocated statically.

On HPPA architectures, the compiler and loader flag -K should be used when compiling these testing and timing main programs to avoid such a stack overflow. I.e., set DRVOPTS = -K in the LAPACK/make.inc file.

For similar reasons, on SGI architectures, the compiler and loader flag -static should be used. I.e., set DRVOPTS = -static in the LAPACK/make.inc file.



Julie Langou 2007-02-26