HP MLIB User's Guide Vol. 2 7th Ed.

Chapter 10 Introduction to ScaLAPACK 695
Accessing ScaLAPACK
+autodbl4 promotes all integer logical, and real items to 8 bytes, and
complex items to 16 bytes. The +autodbl4 option does not promote the
size of double-precision and double-complex items.
mpif90 +DA2.0W +i8 [options] file ... Wl,–aarchive_shared lscalapack8
mpicc +DA2.0W
[options] file ... Wl,–aarchive_shared lscalapack8
/opt/mpi/lib/pa20_64/hpmpautodbl_isi8.o
lcl lm
mpiCC +DA2.0W [options] file ... Wl,–aarchive_shared lscalapack8
/opt/mpi/lib/pa20_64/hpmpautodbl_isi8.o
lcl lm
Linking with libisamstub.a
C language codes that call Fortran77 routines from the BLAS Standard, the
sparse linear equation system, or the sparse eigenvalue system, must explicitly
link the ISAM (Indexed Sequential Access Method) stubs library into the
program. For example,
mpicc [options] file ... –Wl,–aarchive_shared,–L/opt/fortran/lib/libisamstub.a
lscalapack
lcl lm
This only applies if you are linking with the ScaLAPACK archive library.
This option is only valid for 32-bit PA systems.
For Itanium-Based HP-UX Systems
1. To link a program that uses ScaLAPACK for use on the same machine, use
one of the following commands:
mpif90 [options] file ... –Wl,–aarchive_shared lscalapack
mpicc
[options] file ... –Wl,–aarchive_shared lscalapack lcl lm
mpiCC
[options] file ... –Wl,–aarchive_shared lscalapack lcl lm
2. Specify the entire path of the library file on the compiler command line that
links your program. To link your program with ScaLAPACK for use with 32-
or 64-bit addressing on an HP-UX system, use one of the following:
mpif90 [options] file ... /opt/mlib/lib/[hpux32|hpux64]/libscalapack.a
mpicc
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/libscalapack.a lcl lm
mpiCC
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/libscalapack.a lcl lm
Replace libscalapack.a with libscalapack.so on your compiler command line
if you want to link the shared library on an Itanium-based system.
3. Use the lscalapack option on the compiler command line that links your
program, preceded by:
Wl,–aarchive_shared,L/opt/mlib/lib/[hpux32|hpux64]