|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html >
|
|
|
|
<head><title>Configuration options</title>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
|
|
<meta name="generator" content="TeX4ht (https://tug.org/tex4ht/)">
|
|
|
|
<meta name="originator" content="TeX4ht (https://tug.org/tex4ht/)">
|
|
|
|
<!-- html,3 -->
|
|
|
|
<meta name="src" content="userhtml.tex">
|
|
|
|
<link rel="stylesheet" type="text/css" href="userhtml.css">
|
|
|
|
</head><body
|
|
|
|
>
|
|
|
|
<!--l. 98--><div class="crosslinks"><p class="noindent"><span
|
|
|
|
class="cmr-12">[</span><a
|
|
|
|
href="userhtmlsu4.html" ><span
|
|
|
|
class="cmr-12">next</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlsu2.html" ><span
|
|
|
|
class="cmr-12">prev</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlsu2.html#tailuserhtmlsu2.html" ><span
|
|
|
|
class="cmr-12">prev-tail</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="#tailuserhtmlsu3.html"><span
|
|
|
|
class="cmr-12">tail</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlse3.html#userhtmlsu3.html" ><span
|
|
|
|
class="cmr-12">up</span></a><span
|
|
|
|
class="cmr-12">] </span></p></div>
|
|
|
|
<h4 class="subsectionHead"><span class="titlemark"><span
|
|
|
|
class="cmr-12">3.3 </span></span> <a
|
|
|
|
id="x10-90003.3"></a><span
|
|
|
|
class="cmr-12">Configuration options</span></h4>
|
|
|
|
<!--l. 100--><p class="noindent" ><span
|
|
|
|
class="cmr-12">In order to build AMG4PSBLAS, the first step is to use the </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">configure</span></span></span> <span
|
|
|
|
class="cmr-12">script in the</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">main directory to generate the necessary makefile.</span>
|
|
|
|
<!--l. 105--><p class="indent" > <span
|
|
|
|
class="cmbx-12">DA RISCRIVERE</span>
|
|
|
|
<!--l. 107--><p class="indent" > <span
|
|
|
|
class="cmr-12">As a minimal example consider the following:</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pre class="verbatim" id="verbatim-1">
|
|
|
|
./configure --with-psblas=PSB-INSTALL-DIR
|
|
|
|
</pre>
|
|
|
|
<!--l. 110--><p class="nopar" > <span
|
|
|
|
class="cmr-12">which assumes that the various MPI compilers and support libraries are available in</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">the standard directories on the system, and specifies only the PSBLAS install directory</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">(note that the latter directory must be specified with an </span><span
|
|
|
|
class="cmti-12">absolute </span><span
|
|
|
|
class="cmr-12">path). The full set of</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">options may be looked at by issuing the command </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">./configure</span><span
|
|
|
|
class="cmtt-12"> --help</span></span></span><span
|
|
|
|
class="cmr-12">, which</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">produces:</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pre class="verbatim" id="verbatim-2">
|
|
|
|
‘configure’ configures MLD2P4 2.1.1 to adapt to many kinds of systems.
|
|
|
|
Usage: ./configure [OPTION]... [VAR=VALUE]...
|
|
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
|
|
|
VAR=VALUE.  See below for descriptions of some of the useful variables.
|
|
|
|
Defaults for the options are specified in brackets.
|
|
|
|
Configuration:
|
|
|
|
  -h, --help              display this help and exit
|
|
|
|
      --help=short        display options specific to this package
|
|
|
|
      --help=recursive    display the short help of all the included packages
|
|
|
|
  -V, --version           display version information and exit
|
|
|
|
  -q, --quiet, --silent   do not print ‘checking ...’ messages
|
|
|
|
      --cache-file=FILE   cache test results in FILE [disabled]
|
|
|
|
  -C, --config-cache      alias for ‘--cache-file=config.cache’
|
|
|
|
  -n, --no-create         do not create output files
|
|
|
|
      --srcdir=DIR        find the sources in DIR [configure dir or ‘..’]
|
|
|
|
Installation directories:
|
|
|
|
  --prefix=PREFIX         install architecture-independent files in PREFIX
|
|
|
|
                          [/usr/local]
|
|
|
|
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
|
|
|
|
                          [PREFIX]
|
|
|
|
By default, ‘make install’ will install all the files in
|
|
|
|
‘/usr/local/bin’, ‘/usr/local/lib’ etc.  You can specify
|
|
|
|
an installation prefix other than ‘/usr/local’ using ‘--prefix’,
|
|
|
|
for instance ‘--prefix=$HOME’.
|
|
|
|
For better control, use the options below.
|
|
|
|
Fine tuning of the installation directories:
|
|
|
|
  --bindir=DIR            user executables [EPREFIX/bin]
|
|
|
|
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
|
|
|
|
  --libexecdir=DIR        program executables [EPREFIX/libexec]
|
|
|
|
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
|
|
|
|
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
|
|
|
|
  --libdir=DIR            object code libraries [EPREFIX/lib]
|
|
|
|
  --includedir=DIR        C header files [PREFIX/include]
|
|
|
|
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
|
|
|
|
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
|
|
|
|
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
|
|
|
|
  --infodir=DIR           info documentation [DATAROOTDIR/info]
|
|
|
|
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
|
|
|
|
  --mandir=DIR            man documentation [DATAROOTDIR/man]
|
|
|
|
  --docdir=DIR            documentation root [DATAROOTDIR/doc/mld2p4]
|
|
|
|
  --htmldir=DIR           html documentation [DOCDIR]
|
|
|
|
  --dvidir=DIR            dvi documentation [DOCDIR]
|
|
|
|
  --pdfdir=DIR            pdf documentation [DOCDIR]
|
|
|
|
  --psdir=DIR             ps documentation [DOCDIR]
|
|
|
|
Program names:
|
|
|
|
  --program-prefix=PREFIX            prepend PREFIX to installed program names
|
|
|
|
  --program-suffix=SUFFIX            append SUFFIX to installed program names
|
|
|
|
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
|
|
|
|
Optional Features:
|
|
|
|
  --disable-option-checking  ignore unrecognized --enable/--with options
|
|
|
|
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
|
|
|
|
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
|
|
|
|
  --enable-silent-rules   less verbose build output (undo: "make V=1")
|
|
|
|
  --disable-silent-rules  verbose build output (undo: "make V=0")
|
|
|
|
  --enable-dependency-tracking
|
|
|
|
                          do not reject slow dependency extractors
|
|
|
|
  --disable-dependency-tracking
|
|
|
|
                          speeds up one-time build
|
|
|
|
  --enable-serial         Specify whether to enable a fake mpi library to run
|
|
|
|
                          in serial mode.
|
|
|
|
  --enable-long-integers  Specify usage of 64 bits integers.
|
|
|
|
Optional Packages:
|
|
|
|
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
|
|
|
|
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
|
|
|
|
  --with-psblas=DIR       The install directory for PSBLAS, for example,
|
|
|
|
                          --with-psblas=/opt/packages/psblas-3.5
|
|
|
|
  --with-psblas-incdir=DIR
|
|
|
|
                          Specify the directory for PSBLAS C includes.
|
|
|
|
  --with-psblas-moddir=DIR
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
                          Specify the directory for PSBLAS Fortran modules.
|
|
|
|
  --with-psblas-libdir=DIR
|
|
|
|
                          Specify the directory for PSBLAS library.
|
|
|
|
  --with-ccopt            additional [CCOPT] flags to be added: will prepend
|
|
|
|
                          to [CCOPT]
|
|
|
|
  --with-fcopt            additional [FCOPT] flags to be added: will prepend
|
|
|
|
                          to [FCOPT]
|
|
|
|
  --with-libs             List additional link flags here. For example,
|
|
|
|
                          --with-libs=-lspecial_system_lib or
|
|
|
|
                          --with-libs=-L/path/to/libs
|
|
|
|
  --with-clibs            additional [CLIBS] flags to be added: will prepend
|
|
|
|
                          to [CLIBS]
|
|
|
|
  --with-flibs            additional [FLIBS] flags to be added: will prepend
|
|
|
|
                          to [FLIBS]
|
|
|
|
  --with-library-path     additional [LIBRARYPATH] flags to be added: will
|
|
|
|
                          prepend to [LIBRARYPATH]
|
|
|
|
  --with-include-path     additional [INCLUDEPATH] flags to be added: will
|
|
|
|
                          prepend to [INCLUDEPATH]
|
|
|
|
  --with-module-path      additional [MODULE_PATH] flags to be added: will
|
|
|
|
                          prepend to [MODULE_PATH]
|
|
|
|
  --with-extra-libs       List additional link flags here. For example,
|
|
|
|
                          --with-extra-libs=-lspecial_system_lib or
|
|
|
|
                          --with-extra-libs=-L/path/to/libs
|
|
|
|
  --with-blas=<lib>       use BLAS library <lib>
|
|
|
|
  --with-blasdir=<dir>    search for BLAS library in <dir>
|
|
|
|
  --with-lapack=<lib>     use LAPACK library <lib>
|
|
|
|
  --with-mumps=LIBNAME    Specify the libname for MUMPS. Default: autodetect
|
|
|
|
                          with minimum "-lmumps_common -lpord"
|
|
|
|
  --with-mumpsdir=DIR     Specify the directory for MUMPS library and
|
|
|
|
                          includes. Note: you will need to add auxiliary
|
|
|
|
                          libraries with --extra-libs; this depends on how
|
|
|
|
                          MUMPS was configured and installed, at a minimum you
|
|
|
|
                          will need SCALAPACK and BLAS
|
|
|
|
  --with-mumpsincdir=DIR  Specify the directory for MUMPS includes.
|
|
|
|
  --with-mumpsmoddir=DIR  Specify the directory for MUMPS Fortran modules.
|
|
|
|
  --with-mumpslibdir=DIR  Specify the directory for MUMPS library.
|
|
|
|
  --with-umfpack=LIBNAME  Specify the library name for UMFPACK and its support
|
|
|
|
                          libraries. Default: "-lumfpack -lamd"
|
|
|
|
  --with-umfpackdir=DIR   Specify the directory for UMFPACK library and
|
|
|
|
                          includes.
|
|
|
|
  --with-umfpackincdir=DIR
|
|
|
|
                          Specify the directory for UMFPACK includes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
  --with-umfpacklibdir=DIR
|
|
|
|
                          Specify the directory for UMFPACK library.
|
|
|
|
  --with-superlu=LIBNAME  Specify the library name for SUPERLU library.
|
|
|
|
                          Default: "-lsuperlu"
|
|
|
|
  --with-superludir=DIR   Specify the directory for SUPERLU library and
|
|
|
|
                          includes.
|
|
|
|
  --with-superluincdir=DIR
|
|
|
|
                          Specify the directory for SUPERLU includes.
|
|
|
|
  --with-superlulibdir=DIR
|
|
|
|
                          Specify the directory for SUPERLU library.
|
|
|
|
  --with-superludist=LIBNAME
|
|
|
|
                          Specify the libname for SUPERLUDIST library.
|
|
|
|
                          Requires you also specify SuperLU. Default:
|
|
|
|
                          "-lsuperlu_dist"
|
|
|
|
  --with-superludistdir=DIR
|
|
|
|
                          Specify the directory for SUPERLUDIST library and
|
|
|
|
                          includes.
|
|
|
|
  --with-superludistincdir=DIR
|
|
|
|
                          Specify the directory for SUPERLUDIST includes.
|
|
|
|
  --with-superludistlibdir=DIR
|
|
|
|
                          Specify the directory for SUPERLUDIST library.
|
|
|
|
Some influential environment variables:
|
|
|
|
  FC          Fortran compiler command
|
|
|
|
  FCFLAGS     Fortran compiler flags
|
|
|
|
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
|
|
|
|
              nonstandard directory <lib dir>
|
|
|
|
  LIBS        libraries to pass to the linker, e.g. -l<library>
|
|
|
|
  CC          C compiler command
|
|
|
|
  CFLAGS      C compiler flags
|
|
|
|
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
|
|
|
|
              you have headers in a nonstandard directory <include dir>
|
|
|
|
  MPICC       MPI C compiler command
|
|
|
|
  MPIFC       MPI Fortran compiler command
|
|
|
|
  CPP         C preprocessor
|
|
|
|
Use these variables to override the choices made by ‘configure’ or to help
|
|
|
|
it to find libraries and programs with nonstandard names/locations.
|
|
|
|
Report bugs to <https://github.com/sfilippone/mld2p4-2/issues>.
|
|
|
|
</pre>
|
|
|
|
<!--l. 281--><p class="nopar" >
|
|
|
|
<!--l. 283--><p class="indent" > <span
|
|
|
|
class="cmr-12">For instance, if a user has built and installed PSBLAS 3.7 under the </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">/opt</span></span></span> <span
|
|
|
|
class="cmr-12">directory</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span
|
|
|
|
class="cmr-12">and is using the SuiteSparse package (which includes UMFPACK), then MLD2P4</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">might be configured with:</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pre class="verbatim" id="verbatim-3">
|
|
|
|
 ./configure --with-psblas=/opt/psblas-3.5/ \
|
|
|
|
 --with-umfpackincdir=/usr/include/suitesparse/
|
|
|
|
</pre>
|
|
|
|
<!--l. 290--><p class="nopar" > <span
|
|
|
|
class="cmr-12">Once the configure script has completed execution, it will have generated the file</span>
|
|
|
|
<span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">Make.inc</span></span></span> <span
|
|
|
|
class="cmr-12">which will then be used by all Makefiles in the directory tree; this file will be</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">copied in the install directory under the name </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">Make.inc.MLD2P4</span></span></span><span
|
|
|
|
class="cmr-12">.</span>
|
|
|
|
<!--l. 296--><p class="indent" > <span
|
|
|
|
class="cmr-12">To use the MUMPS solver package, the user has to add the appropriate options to</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">the configure script; by default we are looking for the libraries </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">-ldmumps</span><span
|
|
|
|
class="cmtt-12"> -lsmumps</span></span></span>
|
|
|
|
<span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12"> -lzmumps</span><span
|
|
|
|
class="cmtt-12"> -lcmumps</span><span
|
|
|
|
class="cmtt-12"> -mumps_common</span><span
|
|
|
|
class="cmtt-12"> -lpord</span></span></span><span
|
|
|
|
class="cmr-12">. MUMPS often uses additional</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">packages such as ScaLAPACK, ParMETIS, SCOTCH, as well as enabling OpenMP; in</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">such cases it is necessary to add linker options with the </span><span class="obeylines-h"><span class="verb"><span
|
|
|
|
class="cmtt-12">--with-extra-libs</span></span></span> <span
|
|
|
|
class="cmr-12">configure</span>
|
|
|
|
<span
|
|
|
|
class="cmr-12">option.</span>
|
|
|
|
<!--l. 304--><p class="indent" > <span
|
|
|
|
class="cmr-12">To build the library the user will now enter</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pre class="verbatim" id="verbatim-4">
|
|
|
|
make
|
|
|
|
</pre>
|
|
|
|
<!--l. 307--><p class="nopar" > <span
|
|
|
|
class="cmr-12">followed (optionally) by</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pre class="verbatim" id="verbatim-5">
|
|
|
|
make install
|
|
|
|
</pre>
|
|
|
|
<!--l. 311--><p class="nopar" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--l. 312--><div class="crosslinks"><p class="noindent"><span
|
|
|
|
class="cmr-12">[</span><a
|
|
|
|
href="userhtmlsu4.html" ><span
|
|
|
|
class="cmr-12">next</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlsu2.html" ><span
|
|
|
|
class="cmr-12">prev</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlsu2.html#tailuserhtmlsu2.html" ><span
|
|
|
|
class="cmr-12">prev-tail</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlsu3.html" ><span
|
|
|
|
class="cmr-12">front</span></a><span
|
|
|
|
class="cmr-12">] [</span><a
|
|
|
|
href="userhtmlse3.html#userhtmlsu3.html" ><span
|
|
|
|
class="cmr-12">up</span></a><span
|
|
|
|
class="cmr-12">] </span></p></div>
|
|
|
|
<!--l. 312--><p class="indent" > <a
|
|
|
|
id="tailuserhtmlsu3.html"></a>
|
|
|
|
</body></html>
|