mirror of
https://github.com/sfilippone/psblas3.git
synced 2026-10-17 03:12:15 +00:00
README base/comm/psb_dgather.f90 base/comm/psb_dhalo.f90 base/comm/psb_dovrl.f90 base/comm/psb_dscatter.F90 base/comm/psb_ihalo.f90 base/comm/psb_zgather.f90 base/comm/psb_zhalo.f90 base/comm/psb_zovrl.f90 base/comm/psb_zscatter.F90 base/internals/psi_dswapdata.F90 base/internals/psi_dswaptran.F90 base/internals/psi_iswapdata.F90 base/internals/psi_iswaptran.F90 base/internals/psi_zswapdata.F90 base/internals/psi_zswaptran.F90 base/modules/Makefile base/modules/cutil.c base/modules/fakempi.c base/modules/psb_comm_mod.f90 base/modules/psb_const_mod.f90 base/modules/psb_desc_type.f90 base/modules/psb_error_mod.F90 base/modules/psb_inter_desc_type.f90 base/modules/psb_penv_mod.F90 base/modules/psb_psblas_mod.f90 base/modules/psb_realloc_mod.F90 base/modules/psb_serial_mod.f90 base/modules/psb_sort_mod.f90 base/modules/psb_spmat_type.f90 base/modules/psb_spsb_mod.f90 base/modules/psb_tools_mod.f90 base/modules/psi_mod.f90 base/modules/psi_serial_mod.f90 base/psblas/psb_damax.f90 base/psblas/psb_dasum.f90 base/psblas/psb_daxpby.f90 base/psblas/psb_ddot.f90 base/psblas/psb_dnrm2.f90 base/psblas/psb_dnrmi.f90 base/psblas/psb_dspmm.f90 base/psblas/psb_dspsm.f90 base/psblas/psb_zamax.f90 base/psblas/psb_zasum.f90 base/psblas/psb_zaxpby.f90 base/psblas/psb_zdot.f90 base/psblas/psb_znrm2.f90 base/psblas/psb_znrmi.f90 base/psblas/psb_zspmm.f90 base/psblas/psb_zspsm.f90 base/serial/aux/dasr.f90 base/serial/aux/dasrx.f90 base/serial/aux/dmsort_dw.f90 base/serial/aux/dmsort_up.f90 base/serial/aux/dmsr.f90 base/serial/aux/dmsrx.f90 base/serial/aux/dsr.f90 base/serial/aux/dsrx.f90 base/serial/aux/zacmp_mod.f90 base/serial/aux/zalcmp_mod.f90 base/serial/aux/zalsr.f90 base/serial/aux/zalsrx.f90 base/serial/aux/zamsort_dw.f90 base/serial/aux/zamsort_up.f90 base/serial/aux/zamsr.f90 base/serial/aux/zamsrx.f90 base/serial/aux/zasr.f90 base/serial/aux/zasrx.f90 base/serial/aux/zlcmp_mod.f90 base/serial/aux/zlsr.f90 base/serial/aux/zlsrx.f90 base/serial/coo/dcoomm.f base/serial/coo/dcoomv.f base/serial/coo/dcoonrmi.f base/serial/coo/dcoorws.f base/serial/coo/dcoosm.f base/serial/coo/dcoosv.f base/serial/coo/zcoomm.f base/serial/coo/zcoomv.f base/serial/coo/zcoonrmi.f base/serial/coo/zcoorws.f base/serial/coo/zcoosm.f base/serial/coo/zcoosv.f base/serial/csr/dcrnrmi.f base/serial/csr/dcsrck.f base/serial/csr/dcsrmm.f base/serial/csr/dcsrmv.f base/serial/csr/dcsrmv2.f base/serial/csr/dcsrmv3.f base/serial/csr/dcsrmv4.f base/serial/csr/dcsrrws.f base/serial/csr/dcsrsm.f base/serial/csr/dcsrsv.f base/serial/csr/zcrnrmi.f base/serial/csr/zcsrck.f base/serial/csr/zcsrmm.f base/serial/csr/zcsrrws.f base/serial/csr/zcsrsm.f base/serial/csr/zsrmv.f base/serial/csr/zsrsv.f base/serial/dp/dcoco.f base/serial/dp/dcocr.f base/serial/dp/dcrco.f base/serial/dp/dcrcr.f base/serial/dp/dcrjd.f base/serial/dp/dcsrp1.f base/serial/dp/dcsrrp.f base/serial/dp/dgind_tri.f base/serial/dp/dgindex.f base/serial/dp/djadrp.f base/serial/dp/djadrp1.f base/serial/dp/djdco.f base/serial/dp/djdcox.f base/serial/dp/dvtfg.f base/serial/dp/reordvn.f base/serial/dp/zcoco.f base/serial/dp/zcocr.f base/serial/dp/zcrco.f base/serial/dp/zcrcr.f base/serial/dp/zcrjd.f base/serial/dp/zgind_tri.f base/serial/dp/zgindex.f base/serial/f77/daxpby.f base/serial/f77/dcsmm.f base/serial/f77/dcsnmi.f base/serial/f77/dcsrp.f base/serial/f77/dcsrws.f base/serial/f77/dcssm.f base/serial/f77/dgelp.f base/serial/f77/dlpupd.f base/serial/f77/dswmm.f base/serial/f77/dswsm.f base/serial/f77/smmp.f base/serial/f77/zaxpby.f base/serial/f77/zcsmm.f base/serial/f77/zcsnmi.f base/serial/f77/zcsrws.f base/serial/f77/zcssm.f base/serial/f77/zgelp.f base/serial/f77/zlpupd.f base/serial/f77/zswmm.f base/serial/f77/zswsm.f base/serial/jad/djadmm.f base/serial/jad/djadmv.f base/serial/jad/djadmv2.f base/serial/jad/djadmv3.f base/serial/jad/djadmv4.f base/serial/jad/djadnr.f base/serial/jad/djadrws.f base/serial/jad/djadsm.f base/serial/jad/djadsv.f base/serial/jad/djdnrmi.f base/serial/jad/djdrws.f base/serial/psb_dcoins.f90 base/serial/psb_dcsmm.f90 base/serial/psb_dcsmv.f90 base/serial/psb_dcsnmi.f90 base/serial/psb_dcsrp.f90 base/serial/psb_dcsrws.f90 base/serial/psb_dcssm.f90 base/serial/psb_dcssv.f90 base/serial/psb_dgelp.f90 base/serial/psb_dneigh.f90 base/serial/psb_dnumbmm.f90 base/serial/psb_dspcnv.f90 base/serial/psb_dspgetrow.f90 base/serial/psb_dspgtdiag.f90 base/serial/psb_dspscal.f90 base/serial/psb_dsymbmm.f90 base/serial/psb_getrow_mod.f90 base/serial/psb_regen_mod.f90 base/serial/psb_update_mod.f90 base/serial/psb_zcoins.f90 base/serial/psb_zcsmm.f90 base/serial/psb_zcsmv.f90 base/serial/psb_zcsnmi.f90 base/serial/psb_zcsrp.f90 base/serial/psb_zcsrws.f90 base/serial/psb_zcssm.f90 base/serial/psb_zcssv.f90 base/serial/psb_zgelp.f90 base/serial/psb_zneigh.f90 base/serial/psb_znumbmm.f90 base/serial/psb_zspcnv.f90 base/serial/psb_zspgetrow.f90 base/serial/psb_zspgtdiag.f90 base/serial/psb_zspscal.f90 base/serial/psb_zsymbmm.f90 base/tools/psb_dallc.f90 base/tools/psb_dasb.f90 base/tools/psb_dfree.f90 base/tools/psb_dins.f90 base/tools/psb_dsphalo.F90 base/tools/psb_dspins.f90 base/tools/psb_zallc.f90 base/tools/psb_zasb.f90 base/tools/psb_zfree.f90 base/tools/psb_zins.f90 base/tools/psb_zsphalo.F90 base/tools/psb_zspins.f90 docs/pdf/datastruct.tex docs/pdf/penv.tex docs/userguide.pdf krylov/psb_dbicg.f90 krylov/psb_dcg.f90 krylov/psb_dcgs.f90 krylov/psb_dcgstab.F90 krylov/psb_dcgstabl.f90 krylov/psb_drgmres.f90 krylov/psb_krylov_mod.f90 krylov/psb_zbicg.f90 krylov/psb_zcg.f90 krylov/psb_zcgs.f90 krylov/psb_zcgstab.f90 krylov/psb_zcgstabl.f90 krylov/psb_zrgmres.f90 prec/psb_dbjac_aply.f90 prec/psb_dbjac_bld.f90 prec/psb_dgprec_aply.f90 prec/psb_dilu_fct.f90 prec/psb_dprc_aply.f90 prec/psb_dprecset.f90 prec/psb_prec_mod.f90 prec/psb_prec_type.f90 prec/psb_zbjac_aply.f90 prec/psb_zbjac_bld.f90 prec/psb_zgprec_aply.f90 prec/psb_zilu_fct.f90 prec/psb_zprc_aply.f90 prec/psb_zprecset.f90 test/fileread/df_sample.f90 test/fileread/getp.f90 test/fileread/zf_sample.f90 test/pargen/ppde.f90 test/util/Makefile util/psb_hbio_mod.f90 util/psb_mat_dist_mod.f90 util/psb_metispart_mod.F90 util/psb_mmio_mod.f90 util/psb_read_mat_mod.f90 Merged kind type names changes from r:2905:2906 in branches/psblas-2.2-maint.
178 lines
6.2 KiB
Plaintext
178 lines
6.2 KiB
Plaintext
This directory contains the PSBLAS library, version 2.2
|
|
|
|
|
|
Version 1.0 of the library was described in:
|
|
S. Filippone, M. Colajanni
|
|
PSBLAS: A library for parallel linear algebra computation on sparse matrices
|
|
ACM Trans. on Math. Software, 26(4), Dec. 2000, pp. 527-550.
|
|
|
|
PLATFORMS:
|
|
|
|
The compilation process relies on the choice of an appropriate
|
|
Make.inc file; we have tested with AIX XLF, Intel ifort/Linux, Nag
|
|
f95/Linux, GNU Fortran/Linux, Sun Forte 6.2. If you succeed in
|
|
compiling with other compiler/operating systems please let us know.
|
|
|
|
|
|
LINUX:
|
|
|
|
On Linux we work with the GCC compiler; note that we require version
|
|
4.2.0 (or later) as it contains support for ALLOCATABLEs (as
|
|
specified in TR15581).
|
|
|
|
For the Intel compilers, we recommend version 9.1 or later; previous
|
|
versions of the library have been compiled with version 7 and 8 of
|
|
ifort.
|
|
|
|
IBM SP.
|
|
The library has been tested on an IBM SP5, with XLC and XLF
|
|
version 10.1 and the IBM ESSL/PESSL versions of the BLAS and the
|
|
BLACS.
|
|
The setting
|
|
F90=xlf95 -qsuffix=f=f90:cpp=F90
|
|
in Make.inc.sp5 takes care of the f90/F90 extensions.
|
|
|
|
|
|
UTILITIES
|
|
The test/util directory contains some utilities to convert to/from
|
|
Harwell-Boeing and MatrixMarket file formats.
|
|
|
|
|
|
DOCUMENTATION
|
|
|
|
See userguide.pdf
|
|
Please consult the sample programs, especially test/pargen/ppde.f90.
|
|
|
|
|
|
OTHER SOFTWARE CREDITS
|
|
|
|
We include our modified implementation of some of the Sparker (serial
|
|
sparse BLAS) material, e.g. Jagged diagonal, plus a number of
|
|
extensions of our own design. The original file spblas.f can be
|
|
downloaded from matisa.cc.rl.ac.uk; of course any bugs in our
|
|
implementation are our own to fix. The main reference for the serial
|
|
sparse BLAS is:
|
|
Duff, I., Marrone, M., Radicati, G., and Vittoli, C.
|
|
Level 3 basic linear algebra subprograms for sparse matrices: a user
|
|
level interface
|
|
ACM Trans. Math. Softw., 23(3), 379-401, 1997.
|
|
|
|
In the multilevel preconditioners we use SMMP by Randolph E. Bank and
|
|
Craig C. Douglas na.bank@na-net.ornl.gov and
|
|
na.cdouglas@na-net.ornl.gov; we wrapped it in a Fortran 95 interface
|
|
with dynamic memory allocation.
|
|
|
|
INSTALLING
|
|
|
|
To compile and run our software you will need the following
|
|
prerequisites (see also SERIAL below):
|
|
|
|
1. A working version of MPI
|
|
|
|
2. The MPI version of the BLACS; some systems (e.g. IBM SP) provide
|
|
a specific version, otherwise you can find it at
|
|
http://www.netlib.org/blacs/index.html
|
|
|
|
3. A version of the BLAS; if you don't have a specific version for
|
|
your platform you may try ATLAS available from
|
|
http://math-atlas.sourceforge.net/
|
|
|
|
4. We have had good results with the METIS library, from
|
|
http://www-users.cs.umn.edu/~karypis/metis/metis/main.html
|
|
This is optional; it is used in the util and test/fileread
|
|
directories but only if you define the HAVE_METIS directive.
|
|
|
|
We offer an experimental configure script: if everything works well,
|
|
it will generate a Make.inc file suitable for building the library.
|
|
The script is capable of recognizing the needed libraries with their
|
|
default names; if they are in unusual places consider adding the paths
|
|
with --with-lib, or explicitly specifying the names in --with-blas and
|
|
friends.
|
|
Please note that a common way for the configure script to fail is to
|
|
specify inconsistent MPI vs. plain compilers, either directly or
|
|
indirectly via environment variables; e.g. specifying the Intel
|
|
compiler with FC=ifort and the default MPIFC=mpif90 which points to
|
|
GNU Fortran 4.1. The best way to avoid this situation is (in our
|
|
opinion) to use the environment modules package (see
|
|
http://modules.sourceforge.net/), and load the relevant variables with
|
|
(e.g.)
|
|
module load gnu42 mpich
|
|
This will delegate to the modules setup to make sure that the version
|
|
of mpich in use is the one compiled with the gnu42 compilers.
|
|
After the configure script has completed you can always tweak the
|
|
Make.inc file yourself.
|
|
|
|
An annoying problem exists with some versions of MPICH: the configure
|
|
script will set -DMPI_MOD, which is to say, the MPI call interfaces
|
|
will be resolved by using the MPI Fortran module. However usage of the
|
|
module may cause compilation to fail if coupled with the debugging
|
|
option -ggdb, because the compiler complains that it cannot find any
|
|
matching interface.
|
|
The solution: either take out the -ggdb option, or, if you really need
|
|
to debug, force -DMPI_H in place of -DMPI_MOD.
|
|
|
|
|
|
As a backup alternative, you can always choose a Make.inc.XXX file in
|
|
directory Make that fits your compilers, modify the paths to libraries
|
|
to match your installation and copy it to Make.inc in the top
|
|
directory.
|
|
|
|
After you have Make.inc fixed, run
|
|
make
|
|
to compile the library; go to the test directory and its
|
|
subdirectories to get test programs done.
|
|
|
|
|
|
SERIAL: We now provide an (experimental) option to run in serial
|
|
mode. This has only been tested with GCC but it should work
|
|
with the others as well. In serial mode you don't need the
|
|
prereqs 1 and 2 above, and you need to use the -serialmpi
|
|
Make.inc. BEWARE: we only provide a VERY minimal set of fake mpi
|
|
routines that is known to work with our codes; specifically, we
|
|
do not handle a process doing send/receives to itself, neither
|
|
do we handle user defined data types.
|
|
|
|
TODO:
|
|
Fix all reamining bugs. Bugs? We dont' have any ! ;-)
|
|
Work on a single precision version if there is sufficient demand for
|
|
it.
|
|
|
|
The PSBLAS team.
|
|
|
|
|
|
Contact: Salvatore Filippone salvatore.filippone@uniroma2.it
|
|
|
|
Credits for version 2.2:
|
|
Michele Martone contributed the configure machinery.
|
|
|
|
Credits for version 2.0:
|
|
Salvatore Filippone
|
|
Alfredo Buttari
|
|
|
|
|
|
In a sister package called MLD2P4 we are going to provide a library of
|
|
more sophisticated preconditioners, including parallel multilevel ones
|
|
that were developed with the contribution of:
|
|
Pasqua D'Ambra
|
|
Daniela di Serafino
|
|
|
|
In that package we will provide interfaces to the following software
|
|
packages:
|
|
-- SuperLU 3.0 http://crd.lbl.gov/~xiaoye/SuperLU/
|
|
-- UMFPACK 4.4 http://www.cise.ufl.edu/research/sparse/umfpack/
|
|
These are optional, you only need to install them if you actually want
|
|
to use them.
|
|
The MLD2P4 package will be published soon, watch this space!.
|
|
|
|
Credits for version 1.0:
|
|
|
|
Salvatore Filippone
|
|
Michele Colajanni
|
|
Fabio Cerioni
|
|
Stefano Maiolatesi
|
|
Dario Pascucci
|
|
|
|
|
|
|
|
|