AI4OPT / OPFGenerator

Instance generator for OPF problems
MIT License
2 stars 3 forks source link

Interactive submit.sh for sysimage creation #44

Closed klamike closed 4 months ago

klamike commented 4 months ago

If app/julia.so exists, the user will be prompted to re-create the sysimage with a default of no.

If it does not exists, the user will be prompted to create the sysimage with a default of yes

Notably this does not yet check if slurm.julia_bin is set in the config file. If it did the submit script could default to skipping creating the sysimage if app/julia.so is not in the julia_bin. But the implementation would be hacky/complicated.

Fixes #41

klamike commented 4 months ago

Should also add a paragraph to the slurm readme on when (not) to generate a new sysimage

mtanneau commented 4 months ago

Thanks! Let me try this locally (hopefully some time this week 🤞)

mtanneau commented 4 months ago

Just tried it! This is great :)

I added extra comments in the README, including a warning that data-generation jobs will error if no sysimage is available.