-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatch_file
29 lines (20 loc) · 855 Bytes
/
batch_file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
#SBATCH --job-name=dhruvsrikanth-hpc
#SBATCH --output=batch_file.stdout
#SBATCH --error=batch_file.stderr
#SBATCH --partition=caslake
#SBATCH --nodes=16
#SBATCH --exclusive
#SBATCH --ntasks-per-node=1
#SBATCH --mem-per-cpu=2000
#SBATCH --cpus-per-task=48
export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK
module load openmpi python
module show openmpi
mpi++ ./final-version/advection_simulation.cpp -o ./final-version/advection_simulation -O3 -ffast-math -mtune=native -march=native -fopenmp -lmpi
mpiexec --bind-to none --report-bindings ./final-version/advection_simulation 400 20000 1.0 1.0e6 5.0e-7 2.85e-7 48 "LAX"
rm ./final-version/advection_simulation
rm ./final-version/initial_gaussian.txt
rm ./final-version/simulation_NTby2_timesteps.txt
rm ./final-version/simulation_NT_timesteps.txt
# python3 ./final-version/generate_plots.py