d-krupke / slurminade

A decorator-based slurm runner.
https://slurminade.readthedocs.io
MIT License
11 stars 3 forks source link

Provide some options for machine dependent "preparations". #14

Closed d-krupke closed 4 months ago

d-krupke commented 11 months ago

Some machines need specific preparations before a job can be run. Provide some simple functionality to run some local preparation code, if it is available. This could look like this:

The important use case for us is to set up the Gurobi-license, which is individual for every workstation. We usually do this via the .bashrc resp. .zshrc but this is not executed when using slurm.

d-krupke commented 4 months ago

Can now be done via node_setup. This function can be anywhere in the imported code, thus, enabling simple setup e.g. by just importing a custom package import ibr_alg_utils.