Submitting Gurobi Jobs With Torque
This script is an example of launching individual Gurobi Python jobs on the Kennesaw State HPC Cluster using Torque.
Torque Shell Script
In our example, we saved the following Torque script as run_gurobi.pbs
(making sure to change netid@kennesaw.edu
in the script to your
correct email address):
run_gurobi.pbs | |
---|---|
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 |
|
- Make sure to change
netid@kennesaw.edu
on this line to your KSU email address or you won't receive emails when the job starts and stops.
Usage
Assuming you saved the Torque script from above as run_gurobi.pbs
, and
the name of your Gurobi Python script is my_script.py
, you can submit
your Gurobi job with the following command:
[barney@hpc ~]$ qsub run_gurobi.pbs -vFILE=${PWD}/my_script.py