cg-project/54c6e2d33a40master
cg-project/
54c6e2d33a40master
/
/
README.md
README.md
CONJUGATE GRADIENT PROJECT
Requirements
- for cg: mpicc or mpiicc
- for cg_gpu: CUDA® compiler
Build
Compile CPU version on fidis:
module load intel intel-mpi make cg
Compile GPU version on deneb{1,2}:
slmodules -s x86_E5v2_Mellanox_GPU module load gcc cuda make cg_gpu
Run
As an example, we show a sbatch script to run the CPU version:
#!/bin/bash -l #SBATCH --reservation cours-phpc2020 #SBATCH --account phpc2020 #SBATCH --job-name=p16 #SBATCH --ntasks=16 #SBATCH --mem-per-cpu=1GB #SBATCH --time=80:00 module purge module load intel intel-mpi srun ./cg <matrix file> [mode]
mode can be 0 (dense solver) or 1 (sparse solver). Default value is 0.
The matrix format is Matrix Market format (.mtx extension).
c4science · Help