Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Floating-Point Guide: HP 9000 Computers > Chapter 7 Performance Tuning

Matrix Operations

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

If a bottleneck contains vector and/or matrix operations, you may be able to improve program performance by specifying the +Ovectorize option. See “Optimizing Your Program” for details.

Alternatively, you may be able to replace the operations with calls to the BLAS library, libblas (provided with the HP Fortran 90 and HP FORTRAN/9000 products only).

The libblas and +Ovectorize calls are faster than code loops that you can write yourself because they take into account alignment, data cache, and other machine-dependent characteristics. Not all matrices, however, are good candidates for libblas calls or for +Ovectorize. If the array contains fewer than about twenty elements, the overhead incurred by making the calls may offset the increased performance yielded by these routines.

For more information about the libblas routines, see “The BLAS Library (libblas)”, the HP Fortran 90 Programmer's Reference, and the HP FORTRAN/9000 Programmer's Reference.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.