learning-chip / spral

Sparse Parallel Robust Algorithms Library

Home Page:https://www.numerical.rl.ac.uk/spral/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPRAL: The Sparse Parallel Robust Algorithm Library

An open-source (BSD) library for sparse linear algebra and associated algorithms. It is primarily developed by the Numerical Analysis group at STFC Rutherford Appleton Laboratory (hsl@stfc.ac.uk).

Documentation

For detailed information about the SPRAL packages and API see Fortran documentation or C documentation.

Packages

  • LSMR - Solves sparse least squares problems using LSMR algorithm.
  • RANDOM - Pseudo-random number generator.
  • RANDOM_MATRIX - Generates random matrices for testing purposes.
  • RUTHERFORD_BOEING - Read and write matrices in Rutherford-Boeing format.
  • SCALING - Calculates matrix scalings through a variety of algorithms
  • SSIDS - Sparse Symmetric Indefinite Direct Solver.
  • SSMFE - Sparse Symmetric Matrix-Free Eigensolver. Uses Jacobi-conjugate preconditioned gradients method.

If the functionality you are looking for is not supported, it may be offered by our proprietary licenced HSL Library (free to academics).

Installation

Please note that we require METIS and hwloc to be installed (hwloc should be compiled with CUDA support if building for GPU).

We use a standard autotools-based build:

./autogen.sh # If compiling from fresh git checkout
mkdir build
cd build
../configure --with-metis="-L/path/to/metis -lmetis"
make
make install

Usage at a Glance

When using SSIDS, ensure the following environment variables are set:

export OMP_CANCELLATION=TRUE
export OMP_NESTED=TRUE
export OMP_PROC_BIND=TRUE

About

Sparse Parallel Robust Algorithms Library

https://www.numerical.rl.ac.uk/spral/

License:Other


Languages

Language:Fortran 71.9%Language:C++ 16.5%Language:Cuda 5.7%Language:C 3.6%Language:M4 1.3%Language:Makefile 0.9%Language:Shell 0.0%