Running multiple slurm tasks
AnsweredHi,
I am trying to run 50 gurobi tasks simultaneously on cluster. This is what my batch file looks like:
#!/bin/bash
#SBATCH --partition common
#SBATCH --mem=8G # Memory limit for each tasks (in GBs)
#SBATCH --array=1-50
#SBATCH -o outfile_%j.out # File to which STDOUT will be written
#SBATCH -e errfile_%j.err # File to which STDERR will be written
python run.py $SLURM_ARRAY_TASK_ID
Gurobi optimization is used in python file "run.py". However, I kept encountering this error "
gurobipy.GurobiError: Too many sessions, 5 active sessions for a baseline of 2"
How do I make it run 50 tasks simultaneously? I am using a free academic license (WLS).
Thanks!
0
-
Hi,
I will create a ticket for you.
For the future: How do I obtain a free academic license for a cluster or a shared computer lab?
The cluster admin can set up an appropriate license.Cheers,
David0
Please sign in to leave a comment.
Comments
1 comment