I have to run multiple simulations on a cluster using sbatch. In one folder I have the Python script to be run and a file to be used with sbatch:
#!/bin/bash -l
#SBATCH --time=04:00:00
#SBATCH --nodes=32
#SBATCH --ntasks-per-core=1
#SBATCH --ntasks-per-node=36
#SBATCH --cpus-per-task=1
#SBATCH --partition=normal
#SBATCH --constraint=mc
module load Python
source /scratch/.../env/bin/activate
srun python3 script.py
deactivate
What I have to do is to run the same Python script but using different values for --nodes. How can I do that? Moreover, I would like to create one folder for each run where the slurm file will be saved (output), named something like "nodes_xy".