cc_staff
1,857
edits
mNo edit summary |
mNo edit summary |
||
Line 106: | Line 106: | ||
#SBATCH --account=def-group # some account | #SBATCH --account=def-group # some account | ||
#SBATCH --time=0-00:30 # time limit (D-HH:MM) | #SBATCH --time=0-00:30 # time limit (D-HH:MM) | ||
#SBATCH --cpus-per-task= | #SBATCH --cpus-per-task=4 # number of CPUs (threads) | ||
#SBATCH --mem-per-cpu= | #SBATCH --mem-per-cpu=1000 # memory per CPU (in MB) | ||
<!--T:83--> | <!--T:83--> | ||
# | module load StdEnv/2016 # for versions < 9.0.3 | ||
module load StdEnv/ | #module load StdEnv/2020 # for versions > 9.0.2 | ||
module load gurobi/9.0.2 | module load gurobi/9.0.2 | ||
<!--T:85--> | <!--T:85--> | ||
# Create environment file in current directory | # Create environment file in current directory to set the number of threads: | ||
echo "Threads ${SLURM_CPUS_ON_NODE:-1}" > gurobi.env | echo "Threads ${SLURM_CPUS_ON_NODE:-1}" > gurobi.env | ||