R9010/mpifa69394e25aemaster
R9010/mpi
fa69394e25aemaster
mpi
mpi
README.md
README.md
This folder contains the MPI implementation for cg-solver.
- HOW TO COMPILE?
-separately modify the c-source code, e.g. cg.c/ cg_blas.c/ etc
-$module load gcc mvapich2 openblas -$mpicc -I/$OPENBLAS_ROOT/include MODIFIED-FILE.c -c -lcuda -$make
- HOW TO RUN?
-reserve nodes on cluster -$srun ./conjugategradient lap2D_5pt_n100.mtx
-alternatively, job script is provided: script.sh,
#!/bin/bash -l #SBATCH --reservation cours-phpc2020 #SBATCH --account phpc2020 #SBATCH --partition parallel #SBATCH --nodes 1 #SBATCH --ntasks-per-node 25 #SBATCH --cpus-per-task 1
srun ./conjugategradient lap2D_5pt_n100.mtx
-$sbatch script
c4science · Help