Accessing VECLIB
| When you use the | |
| ||
| library is not available, then it links the shared library. If you omit | |
| ||
| shared library. Link with | |
| If your program uses subprograms from VECLIB, LAPACK, ScaLAPACK, | |
| Distributed SuperLU, SOLVERS and VMATH, specify −llapack, −lveclib, | |
| −lscalapack, −lsuperlu_dist, −lsolvers, and −lvmath or −llapack8, −lveclib8, | |
| −lscalapack8, −lsuperlu_dist8, −lsolvers8 and −lvmath8 on the compiler | |
| command line. | |
|
|
|
NOTE |
| Do not mix subprograms from the two types of |
|
| (those with |
|
| program. |
|
|
|
| Each of the VECLIB and LAPACK library files is complete in itself, meaning | |
| that you do not need to link one library because you have called subprograms | |
| from another. This is because various subprograms are included in both | |
| libraries. For example, VECLIB subroutine SGEMV is called by several | |
| LAPACK subprograms, and therefore, is included in the LAPACK library. Thus, | |
| in general, you have to link only the library or libraries you need. |
For
1.To link a program that uses VECLIB for use on the same machine, use one of the following commands:
f90 [options] file ...
cc [options] file ...
aCC [options] file ...
2.Specify the entire path of the library file on the compiler command line that links your program. For example, to link your program with VECLIB for use with 32- or
f90 [options] file ... /opt/mlib/lib/[pa2.0pa20_64]/libveclib.a
cc [options] file ... /opt/mlib/lib/[pa2.0pa20_64]/libveclib.a −lcl −lm
aCC [options] file ... /opt/mlib/lib/[pa2.0pa20_64]/libveclib.a −lcl −lm
Replace libveclib.a with libveclib.sl on your compiler command line if you want to link the shared library on a
3.Use the −lveclib option on the compiler command line that links your program, preceded by:
6HP MLIB User’s Guide