Skip to main content

Running Gurobi in a cluster

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Thomas Opfer
    • Gurobi-versary
    • Thought Leader

    Hi David,

    to solve the problem with the shared object, it should be sufficient to add the path where the .so-files are located to the environment variable LD_LIBRARY_PATH, e.g.

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/david/gurobi810/linux64/lib

    (please use your actual path). You might experience other problems if your environment is too different from the cluster's. It might be better to re-compile on the cluster in case of trouble. Then you could also optimize the code for the cluster's CPUs (e.g. gcc -march=native -O2).

     

    Still, for running gurobi on a cluster, you have to consider other things:

    First, there might be a license issue if the node where gubrobi runs changes from time to time. This can be avoided using a floating license.

    Second, the usage of gurobi is very different when running on several cluster nodes simultaneously than when only using one node. Your approach is perfectly ok, when only using one cluster node. When you want to use more than one node, please have a look at the documentation. (When I did MIP solving on a cluster last time, using several nodes was not really helpful for most of the instances, but this might have changed since then.)

    0
  • david garcia
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Thomas,

    Thank you very much for your help. I will try again next time I have access to the cluster.

     

    Regards,

     

    David

    0

Post is closed for comments.