minor fixes,

add: slurm script
This commit is contained in:
Daniel Kapla 2022-03-15 19:44:05 +01:00
parent 19995a1f05
commit 7f716ffae6
3 changed files with 15 additions and 5 deletions

View File

@ -13,8 +13,8 @@ mpi: main.cpp Matrix.h Solver.h
all: seriel mpi all: seriel mpi
test: seriel mpi test: seriel mpi
./$(OUT)_seriel 1D 120 1000 ./$(OUT)_seriel 1D 125 1000
mpirun -n 4 ./$(OUT)_mpi 2D 120 1000 mpirun -n 4 ./$(OUT)_mpi 2D 125 1000
# for script in *.R; do R --vanilla < $${script}; done # for script in *.R; do R --vanilla < $${script}; done
clean: clean:

10
Exercise_01/src/slurm.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
#SBATCH --time=00:10:00
#SBATCH -N 1 # Nr. of nodes
#SBATCH -n 10 # Total nr. of cores
DIM=2D
resolution=125
iterations=10
mpirun main_mpi $DIM $resolution $iterations