HP MLIB for PA-RISC and Itanium2 HP-UX Version 9.5 Release Note
HP MLIB for PA-RISC and Itanium® 2 HP-UX Version 9.5 Release Note
Compatibility Information
26
% aCC [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/opt/
mlib/lib/[hpux32|hpux64] [-lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
If your program uses subprograms from more than one library, specify each library on the
compiler command line.
For ScaLAPACK or SuperLU_DIST:
% mpif90 [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[hpux32|hpux64] [-lscalapack|-lsuperlu_dist]
% mpicc [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[hpux32|hpux64] [-lscalapack|-lsuperlu_dist] -lcl -lm
% mpiCC [+DD32|+DD64] [options] file ... -Wl,–aarchive_shared,-L/
opt/mlib/lib/[hpux32|hpux64] [-lscalapack|-lsuperlu_dist] -lcl -lm
If your program uses subprograms from both ScaLAPACK and SuperLU_DIST, specify
both -lscalapack and -lsuperlu_dist on the compiler command line.
• Set the LDOPTS environment variable. An LDOPTS specification takes precedence over
using -Wl on the compiler command line. That is, if the LDOPTS environment variable is
used to specify a library path, you cannot override that specification with a -Wl option on
your compiler command line.
For example on Itanium® 2-based systems:
% setenv LDOPTS –aarchive_shared,–L/opt/mlib/lib/[hpux32|hpux64]
Then use the -lveclib, the -llapack, -lsolvers, or the -lvmath option on the compiler
command line that links your program:
% f90 [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath]
% cc [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
% aCC [options] file ...[–lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
For ScaLAPACK or SuperLU_DIST use the -lscalapack or the -lsuperlu_dist option
on the compiler command line that links your program:
% mpif90 [options] file ...[–lscalapack|-lsuperlu_dist]
% mpicc [options] file ...[–lscalapack|-lsuperlu_dist] -lcl -lm
% mpiCC [options] file ...[–lscalapack|-lsuperlu_dist] -lcl -lm
• When you use the VECLIB8, VECLIBSC8, LAPACK8, LAPACKSC8, SOLVERS8,
VMATH8, ScaLAPACK8, and SuperLU_DIST8 libraries: