next up previous contents
Next: Verifying the results Up: Running the code generator Previous: Running the code generator   Contents

A sample run

A sample run of the code generator on the results from our 15 x 15 system we have worked with before, could look like:
> ./codegen.pl -uf
---------------------------------------
    Unroll all factorization loops: yes
 Allow extra work (loop minimizer): no
 Unroll all backsubstitution loops: no
         Generate debugging checks: no
---------------------------------------
System dimension is 15
System holds 45 non-zeros
Row-/column ordering read
Building info file for the regression tester
Building ordered-system file
Generating code pre-amble
Generating code for QR factorization...
Building final-system file
Generating code for back substitution...
Terminating Fortran routine
-------------------------------
Total FLOP count:    620
In factorization:
 Looped eliminations: 0 (0)
 Single eliminations: 84
In backsubstitution:
 Looped eliminations: 4 (1)
 Single eliminations: 50
-------------------------------
Done.
This generates a complete solver written in FORTRAN-77, in the file fastqr.f. The solver generated in the above example is 866 lines long. The size depends on the dimension and non-zero element percentage of the system, as well as the unrolling options given.

The code generator also generates an information file (system.regress) for the regression tester. The regression test utility will need this file in order to read the structure of the system. The format is very similar to the input file, but easier to read for the FORTRAN-77 program.




1999-04-09