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

726 HP MLIB LAPACK User’s Guide
Accessing Distributed SuperLU
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
lsuperlu_dist
lcl lm
This only applies if you are linking with the SuperLU_DIST 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 SuperLU_DIST for use on the same machine,
use one of the following commands:
mpif90 [options] file ... –Wl,–Bstatic lsuperlu_dist
mpicc
[options] file ... –Wl,–aarchive_shared lsuperlu_dist lcl lm
mpiCC
[options] file ... –Wl,–aarchive_shared lsuperlu_dist 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 SuperLU_DIST 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]/libsuperlu_dist.a
mpicc
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/libsuperlu_dist.a lcl
lm
mpiCC
[options] file ... /opt/mlib/lib/[hpux32|hpux64]/libsuperlu_dist.a lcl
lm
Replace libsuperlu_dist.a with libsuperlu_dist.so on your compiler
command line if you want to link the shared library on an Itanium-based
system.
3. Use the lsuperlu_dist option on the compiler command line that links your
program, preceded by:
Wl,–aarchive_shared,L/opt/mlib/lib/[hpux32|hpux64]
For example, the command lines in Method 2 for HP-UX could be written:
mpif90 [+DD32|+DD64] [options] file...Wl,–aarchive_shared,L/opt/mlib/lib/
[hpux32|hpux64]
lsuperlu_dist
mpicc [+DD32|+DD64]
[options] file ... Wl,–aarchive_shared,L/opt/mlib/lib/
[hpux32|hpux64]
lsuperlu_dist lcl lm