-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "Invalid Gurobi license" on HPC using machine-file option. #325
Comments
This seems like a question for Gurobi support. What license do you have? It probably doesn't support running over multiple nodes. |
I am using the Gurobi installed on my university's HPC. I guess there shouldn't be a problem with Gurobi support. I tried to use |
Glad you got it sorted. |
For some reason, I still want to adopt the machine-file approach instead of ClusterManager to parallel on multiple nodes. I asked IT support, they told me "I'm not all that familiar with Julia and Gurobi but my guess is that the GRB_LICENSE_FILE environment variable is not being exported to the worker processes." It's weird that if I parallel across nodes using ClusterManager, it works fine. But it does not work for machine-file. |
Check if the environment variable is being set in your Julia code? This isn't a Gurobi.jl issue. Broader questions like how to use |
Ok, thanks. |
My Julia script calculates some linear programming problem using JuMP+Gurobi in parallel on HPC. When I start submit the slurm job using
machine-file
, I got the following error:Here, I use
machine-file
so that it will parallel on 2 nodes and 10 CPUs per node. When I do not usemachine-file
and instead usejulia -p 20
, i.e., parallel on 20 CPUs on the same node, there is no error.The text was updated successfully, but these errors were encountered: