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

Chapter 11 Introduction to Distributed SuperLU 729
Accessing Distributed SuperLU
mpicc [options] file ... lsuperlu_dist openmp
NOTE An LDOPTS specification takes precedence over using -Wl on the
compiler command line. That is, if you use the LDOPTS environment
variable to specify a library path, you cannot override that specification
with a -Wl option on your compiler command line.
5. Use the following commands to link your programs for use with the
SuperLU_DIST8 library on a Red Hat Linux system.
mpif90 i8 [options] file ... -L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[32|64]/
lsuperlu_dist8 openmp
mpicc
[options] file ... L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[32|64]/
lsuperlu_dist8 openmp
When you use the C compiler for linking, you may require one or more of
-1CEPCF90, -1F90, -1IEPCF90, -1PEPCF90, or -1POSF90.
For XC6000 Systems with the Intel V8.0 Compiler
1. Use one of the following compile line commands to link SuperLU_DIST:
mpif90 [options] file ... –L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[32|64]
lsuperlu_dist openmp lmpi
mpicc
[options] file ... –L/opt/mlib/intel_8.0/hpmpi_2.1/lib/[32|64]
lsuperlu_dist openmp lmpi
2. Specify the entire path of the library file on the compiler command line that
links your program. For example, to link your program with SuperLU_DIST
for use with 64-bit addressing on an XC6000 system with the Intel V8.0
compiler, use one of the following:
mpif90 [options] file ... /opt/mlib/lib/intel_8.0/hpmpi_2.1/lib/64/
libsuperlu_dist.a openmp
lmpi
mpicc
[options] file ... /opt/mlib/lib/intel_8.0/hpmpi_2.1/lib/64/
libsuperlu_dist.a openmp
lmpi
Replace libsuperlu_dist.a with libsuperlu_dist.so on your compiler
command line if you want to link the shared library on an XC6000 system.
3. Use the lsuperlu_dist option on the compiler command line that links your
program, preceded by:
Wl,–Bstatic,L/opt/mlib/lib/intel_8.0/hpmpi_2.1/lib/64
For example, the command lines in Method 2 for XC6000 could be written:
mpif90 [options] file...Wl,–Bstatic,L/opt/mlib/lib/intel_8.0/hpmpi_2.1/
lib/64 lsuperlu_dist openmp
lmpi