hypre


Introduction:

HYPRE is a library of linear solvers, multigrid methods, and eigenvalue
computations for extremely large scale systems.

The library has special
features to handle systems associated with both structured and
unstructured spatial grids.

The library relies on MPI for parallel execution, and PETSC for
various linear algebra operations.

Web Site:

The HYPRE home page:

http://computation.llnl.gov/projects/hypre-scalable-linear-solvers-multigrid-methods

Reference:

Usage:

On any ARC cluster, check the installation details
by typing "module spider hypre".

HYPRE requires that the appropriate modules be loaded before it can
be used. One version of the appropriate commands for use on NewRiver is:

module purge
module load gcc/4.7.2
module load openmpi/1.8.5
module load openblas/0.2.14
module load hypre/2.10.0b
    

Examples:

The following batch file demonstrates the use of HYPRE:

#! /bin/bash
#
#PBS -l walltime=00:05:00
#PBS -l nodes=1:ppn=16
#PBS -W group_list=newriver
#PBS -q open_q
#PBS -j oe
#
cd $PBS_O_WORKDIR
#
module purge
module load gcc/4.7.2
module load openmpi/1.8.5
module load openblas/0.2.14
module load hypre/2.10.0b
#
#  Compile two functions that should be supplied by the g2c library,
#  which I can't find.
#
gcc -c s_copy.c
gcc -c s_cmp.c
#
mpicc -g -Wall -I$HYPRE_INC -DHAVE_CONFIG_H -DHYPRE_TIMING -c ex11.c
#
mpicc -o ex11 ex11.o s_copy.o s_cmp.o -L$HYPRE_LIB -L$OPENBLAS_LIB -lHYPRE -lopenblas -lm -lstdc++
rm ex11.o
rm s_copy.o
rm s_cmp.o
#
mpiexec -np 16 ex11 -n 33 > ex11_newriver.txt

A complete set of files to carry out a similar process are available in
hypre_example.tar