HP MLIB for PA-RISC and Itanium HP-UX Version 9.5.6 Release Note

HP MLIB for PA-RISC and Itanium HP-UX Version 9.5.6 Release Note
Compatibility Information
25
% mpicc
[options] file
... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist] -lcl -lm
% mpiCC
[options] file
... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist] -lcl -lm
To select the shared library, either omit the -aarchive_shared flag or use the
-ashared_archive flag instead.
For programs that link VECLIB, LAPACK, SOLVERS, or VMATH for use on a specific
machine, you can specify the entire path of the library file on the compiler command line.
For example, the following commands link your program with VECLIB, LAPACK,
SOLVERS, or VMATH for use with 32-bit addressing on an Itanium-based operating
system:
% f90
[options] file
... /opt/mlib/lib/hpux32/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a]
% cc
[options] file
... /opt/mlib/lib/hpux32/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a] -lcl -lm
% aCC
[options] file
... /opt/mlib/lib/hpux32/[libveclib.a|liblapack.a|
libsolvers.a|libvmath.a] -lcl -lm
Replace .a with .so if you want to link the shared library on an Itanium-based operating
system.
For ScaLAPACK or SuperLU_DIST use:
% mpif90
[options] file
... /opt/mlib/lib/hpux32/[libscalapack.a|
libsuperlu_dist.a]
% mpicc
[options] file
... /opt/mlib/lib/hpux32/[libscalapack.a|
libsuperlu_dist.a] -lcl -lm
% mpiCC
[options] file
... /opt/mlib/lib/hpux32/[libscalapack.a|
libsuperlu_dist.a] -lcl -lm
Replace .a with .so if you want to link the shared library on an Itanium-based operating
system.
You can also use the following compile line commands to link VECLIB, LAPACK,
SOLVERS, or VMATH for use on a specific machine for Itanium 32- or 64-bit:
% f90 [+DD32|+DD64]
[options] file
... -Wl,–aarchive_shared,-L/opt/
mlib/lib/[hpux32|hpux64] [-lveclib|-llapack|-lsolvers|-lvmath]
% cc
[+DD32|+DD64] [options] file
... -Wl,–aarchive_shared,-L/opt/mlib/
lib/[hpux32|hpux64] [-lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm