R9010/mpie566e74cd044master
R9010/mpi
e566e74cd044master
mpi
mpi
README.md
README.md
PHPC - CONJUGATE GRADIENT PROJECT
HOWTO COMPILE AND RUN
diff -This version only works for regular matrix (not sparse matrix). -This version is still under development.
Requirements :
- a recent compiler (like gcc or intel)
- a BLAS library (like openblas or intel MKL)
- a MPI library (like mvapich2)
compile on SCITAS clusters :
$ module load gcc openblas mvapich2 $ git clone ssh://git@c4science.ch/diffusion/9010/phpc_final-project_slwang.git $ cd phpc_final-project_slwang/parallel $ make
run on a SCITAS cluster by provided script (job.sh) :
$ sbatch job
Output should be like (in slurm file):
cat slurm-<id> Matrix loaded from file lap2D_5pt_n100.mtx N = 10000 nz = 29800 val[0] = 4.000000 Call cgsolver() on matrix size (10000 x 10000) [STEP 488] residual = 1.103472E-10 Time for CG (dense solver) = 63.611155 [s]
The given example is a 5-points stencil for the 2D Laplace problem. The matrix is in sparse format. The matrix format is Matrix Market format (.mtx extension). You can use other matrices there or create your own.
c4science · Help