3.1 Prerequisites

The following base libraries are needed:

BLAS

[18, 19, 26] Many vendors provide optimized versions of BLAS; if no vendor version is available for a given platform, the ATLAS software ( math-atlas.sourceforge .net) may be employed. The reference BLAS from Netlib ( www.netlib.org/blas) are meant to define the standard behaviour of the BLAS interface, so they are not optimized for any particular platform, and should only be used as a last resort. Note that BLAS computations form a relatively small part of the AMG4PSBLAS/PSBLAS; however they are critical when using preconditioners based on the MUMPS, UMFPACK or SuperLU third party libraries. UMFPACK requires a full LAPACK library; our experience is that configuring ATLAS for building full LAPACK does not always work in the expected way. Our advice is first to download the LAPACK tarfile from www.netlib.org/lapack and install it independently of ATLAS. In this case, you need to modify the OPTS and NOOPT definitions for including -fPIC compilation option in the make.inc file of the LAPACK library.

MPI

[25, 32] A version of MPI is available on most high-performance computing systems.

PSBLAS

[21, 23] Parallel Sparse BLAS (PSBLAS) is available from psctoolkit.github.io/ products/psblas/; version 3.7.0 (or later) is required. Indeed, all the prerequisites listed so far are also prerequisites of PSBLAS.

Please note that the four previous libraries must have Fortran interfaces compatible with AMG4PSBLAS; usually this means that they should all be built with the same compiler being used for AMG4PSBLAS.

If you want to use the PSBLAS support for NVIDIA GPUs, you will also need a working version of the CUDA Toolkit that is compatible with the compiler choice made to compile PSBLAS and AMG4PSBLAS. After that you will need to have configured and compiled the PSBLAS library with the options:

./configure --enable-cuda --with-cudadir=${CUDA_HOME} --with-cudacc=xx,yy,zz  

Previous versions required you to have the auxiliary libraries SPGPU and PSBLAS-EXT compiled, this is no longer necessary because they have been integrated into PSBLAS and are compiled by activating the previous flags during configuration. See also Sec 4.2.