Gurobi: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
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=1     # number of CPUs (threads) to use
#SBATCH --cpus-per-task=4     # number of CPUs (threads)
#SBATCH --mem-per-cpu=1000M  # memory per CPU (in MB)
#SBATCH --mem-per-cpu=1000    # memory per CPU (in MB)


<!--T:83-->
<!--T:83-->
# use a version <= 9.0.2
module load StdEnv/2016      # for versions < 9.0.3
module load StdEnv/2016.4    # or StdEnv/2018.3
#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 setting the number of threads:
# 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


cc_staff
1,857

edits

Navigation menu