next up previous contents
Next: Create the LAPACK Library Up: Installing LAPACK on a Previous: Create the BLAS Library   Contents

Run the BLAS Test Programs

Test programs for the Level 1, 2, and 3 BLAS are in the files xBLAT1F, xBLAT2F, and xBLAT3F.

a)
Compile the files xBLAT1F, xBLAT2F, and xBLAT3F and link them to your BLAS library or libraries. Note that each program includes a special version of the error-handling routine XERBLA, which tests the error-exits from the Level 2 and 3 BLAS. On most systems this will take precedence at link time over the standard version of XERBLA in the BLAS library. If this is not the case (the symptom will be that the program stops as soon as it tries to test an error-exit), you must temporarily delete XERBLA from ALLBLASF and recompile the BLAS library.

b)
Each BLAS test program has a corresponding data file xBLAT1D, xBLAT2D, or xBLAT3D. Associate this file with Fortran unit number 5.

c)
The name of the output file is indicated on the first line of each input file and is currently defined to be SBLAT2.SUMM for the REAL Level 2 BLAS, with similar names for the other files. If necessary, edit the name of the output file to ensure that it is valid on your system.

d)
Run the Level 1, 2, and 3 BLAS test programs.

If the tests using the supplied data files were completed successfully, consider whether the tests were sufficiently thorough. For example, on a machine with vector registers, at least one value of 13#13 greater than the length of the vector registers should be used; otherwise, important parts of the compiled code may not be exercised by the tests. If the tests were not successful, either because the program did not finish or the test ratios did not pass the threshold, you will probably have to find and correct the problem before continuing. If you have been testing a system-specific BLAS library, try using the Fortran BLAS for the routines that did not pass the tests. For more details on the BLAS test programs, see [8] and [6].


next up previous contents
Next: Create the LAPACK Library Up: Installing LAPACK on a Previous: Create the BLAS Library   Contents
Susan Blackford 2001-08-13