easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

Gurobi licence server modifications

Open orbsmiv opened this issue 5 years ago • 4 comments

Modifies block to check for the pre-existence of the GRB_LICENSE_FILE env var and uses its value if present, else uses license_file value from the easyconfig.

orbsmiv avatar Jan 27 '20 11:01 orbsmiv

@orbsmiv for reproducibility it is better to use the easyconfig parameter license_file instead of relying on an enviroment variable. do you have a good reason why you cannot use license_file?

smoors avatar Feb 17 '20 11:02 smoors

@smoors thanks for looking into this. I based the idea off the blocks for Ansys & Matlab where they can use either the license_file variable or an environment variable. In our case (and for a few pieces of software) we need to provide different licence files with differing licence server hostnames due to the varying DNS resolution across the various bits of our cluster. Hard-coding a licence file into an application's installation directory therefore doesn't work for us.

orbsmiv avatar Feb 18 '20 10:02 orbsmiv

@orbsmiv ok that makes sense.

but in any case the easyconfig parameter should take precedence, as is the case in Ansys and Matlab.

also, it would be nice if you could distinguish between errors file not found and no license file specified.

smoors avatar Feb 19 '20 14:02 smoors

@smoors I've made the modifications that you suggested – can you take another look?

orbsmiv avatar Feb 27 '20 13:02 orbsmiv

This PR has gone stale, so I'm closing it.

If the proposed changes are still relevant, please open a new PR on top of the latest gurobi.py from develop branch

boegel avatar Jun 21 '23 12:06 boegel