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
24
% mpif90 +DA2.0W +i8 [options] file ... –Wl,–aarchive_shared
[-lscalapack8|-lsuperlu_dist8]
% mpicc +DA2.0W [options] file ... –Wl,–aarchive_shared [-lscalapack8|
-lsuperlu_dist8] /opt/mpi/lib/pa20_64/hpmpautodbl_isi8.o -lcl -lm
% mpiCC +DA2.0W [options] file ... –Wl,–aarchive_shared [-lscalapack8|
-lsuperlu_dist8] /opt/mpi/lib/pa20_64/hpmpautodbl_isi8.o -lcl -lm
To select the shared library, either omit the -aarchive_shared flag or use the
-ashared_archive flag instead.
• If your program uses subprograms from VECLIB, LAPACK, SOLVERS, VMATH,
ScaLAPACK, and SuperLU_DIST, specify -lveclib, -llapack, -lsolvers,-lvmath
-lscalapack, and -lsuperlu_dist, or -lveclib8, -lveclibsc8, -llapack8,
-llpacksc8, -lsolvers8, -lvmath8, -lscalapack8, and -lsuperlu_dist8 on your
command line. For example, on a PA-based operating system with 32- or 64-bit
addressing, link with:
% mpif90 [options] file ...-Wl,-aarchive_shared,-L/opt/mlib/lib/
[pa2.0|pa20_64][-lveclib|-llapack|-lsolvers|-lvmath|–lscalapack|
–lsuperlu_dist]
NOTE DO NOT mix subprograms from the two types of 64-bit address libraries
(those with 32-bit integers and those with 64-bit integers) in the same
program.
For Itanium® 2-Based Systems
• To link a program that uses VECLIB, LAPACK, SOLVERS, or VMATH for use on the
same machine, use one of the following commands:
% f90 [options] file ... –Wl,–aarchive_shared,[-lveclib|-llapack|
-lsolvers|-lvmath]
% cc [options] file ...
–Wl,–aarchive_shared,[-lveclib|-llapack|-lsolvers|-lvmath] -lcl -lm
% aCC [options] file ... –Wl,–aarchive_shared,[-lveclib|-llapack|
-lsolvers|-lvmath] -lcl -lm
For ScaLAPACK or SuperLU_DIST use:
% mpif90 [options] file ... –Wl,–aarchive_shared,[-lscalapack|
-lsuperlu_dist]