CoBrALab / qbatch

The Unlicense
28 stars 13 forks source link

LSF Support #3

Open gdevenyi opened 8 years ago

gdevenyi commented 8 years ago

I worked out how LSF works with bsub a while ago for magetbrain reasons, worth adding?

gdevenyi commented 8 years ago

Future notes: LSF sucks for a couple of reasons:

gdevenyi commented 8 years ago

LSF doesn't automatically name jobs since it can only accept via stdin

gdevenyi commented 8 years ago

Need to write "run process and feed it this file via STDIN" function.

pipitone commented 8 years ago

I don't use LSF myself, so not a priority unless you or others we want to support use it.

gdevenyi commented 8 years ago

I have users on LSF to support, so I will write this at some point.

gdevenyi commented 8 years ago

Notes:

-n <number> for number of cpus to request
-M <number> the units for which at set on a cluster configuration, could be kB, MB, GB etc
-J <jobname>
-W <walltime> cannot handle seconds
-o <directory> place to store job logs
gdevenyi commented 8 years ago

LSF supports pattern matching for job names

-w done(afterok_pattern)
gdevenyi commented 8 years ago

LSF array jobs are handled in the name specification: https://sites.google.com/site/anshulkundaje/inotes/programming/clustersubmit/lsf

Relevant parameters:

Relevant environment variables LSB_JOBINDEX : For a job array this gives the index of the job in the job array

gdevenyi commented 8 years ago

@pipitone do you know how to do piping in python? I tried this before and ended up an inelegant wrapper script so that bash would save me.

gdevenyi commented 8 years ago

Note for later: open source LSF is called OpenLava http://www.openlava.org/