cc_staff
1,857
edits
mNo edit summary |
mNo edit summary |
||
Line 104: | Line 104: | ||
<!--T:83--> | <!--T:83--> | ||
This is an example slurm script for solving a [https://www.gurobi.com/documentation/9.5/examples/a_list_of_the_grb_examples.html simple facility location model] using [https://www.gurobi.com/documentation/9.5/examples/facility_py.html Gurobi Python]. The example shows how-to set the threads [https://www.gurobi.com/documentation/9.5/refman/parameters.html#sec:Parameters parameter] with a dynamically created [https://www.gurobi.com/documentation/9.5/quickstart_linux/using_a_grb_env_file.html gurobi.env] file when using the [https://www.gurobi.com/documentation/9.5/refman/python_parameter_examples.html Gurobi python interface]. This must be done in the working directory for each submitted job otherwise gurobi will (by default) start as many execute [https://www.gurobi.com/documentation/9.5/refman/threads.html#parameter:Threads threads] as there are physical cores on the compute node, instead of using the number of physical cores allocated to the job by slurm, potentially slowing down the job | This is an example slurm script for solving a [https://www.gurobi.com/documentation/9.5/examples/a_list_of_the_grb_examples.html simple facility location model] using [https://www.gurobi.com/documentation/9.5/examples/facility_py.html Gurobi Python]. The example shows how-to set the threads [https://www.gurobi.com/documentation/9.5/refman/parameters.html#sec:Parameters parameter] with a dynamically created [https://www.gurobi.com/documentation/9.5/quickstart_linux/using_a_grb_env_file.html gurobi.env] file when using the [https://www.gurobi.com/documentation/9.5/refman/python_parameter_examples.html Gurobi python interface]. This must be done in the working directory for each submitted job otherwise gurobi will (by default) start as many execute [https://www.gurobi.com/documentation/9.5/refman/threads.html#parameter:Threads threads] as there are physical cores on the compute node, instead of using the number of physical cores allocated to the job by slurm, potentially slowing down the job and negatively impacting other user jobs running on the same node. | ||
{{File | {{File | ||
|name=script-py_facility.sh | |name=script-py_facility.sh |