Show More
@@ -356,6 +356,18 b' eid=$(($SGE_TASK_ID - 1))' | |||
|
356 | 356 | ipengine --logfile=ipengine${eid}.log |
|
357 | 357 | """ |
|
358 | 358 | |
|
359 | class LSFEngineSet(PBSEngineSet): | |
|
360 | ||
|
361 | name = 'LSF' | |
|
362 | submit_command = 'bsub' | |
|
363 | delete_command = 'bkill' | |
|
364 | script_param_prefix = "#BSUB" | |
|
365 | job_array_regexp = '#BSUB[ \t]+\w+\[\d+-\d+\]' | |
|
366 | default_template="""#BSUB ipengine[1-%d] | |
|
367 | eid=$(($LSB_JOBINDEX - 1)) | |
|
368 | ipengine --logfile=ipengine${eid}.log | |
|
369 | """ | |
|
370 | ||
|
359 | 371 | sshx_template="""#!/bin/sh |
|
360 | 372 | "$@" &> /dev/null & |
|
361 | 373 | echo $! |
@@ -852,6 +864,20 b' def get_args():' | |||
|
852 | 864 | ) |
|
853 | 865 | parser_sge.set_defaults(func=main_sge) |
|
854 | 866 | |
|
867 | parser_lsf = subparsers.add_parser( | |
|
868 | 'lsf', | |
|
869 | help='run an lsf cluster', | |
|
870 | parents=[base_parser] | |
|
871 | ) | |
|
872 | parser_lsf.add_argument( | |
|
873 | '--lsf-script', | |
|
874 | type=str, | |
|
875 | dest='lsfscript', | |
|
876 | help='LSF script template', | |
|
877 | default='' # LSFEngineSet will create one if not specified | |
|
878 | ) | |
|
879 | parser_lsf.set_defaults(func=main_sge) | |
|
880 | ||
|
855 | 881 | parser_ssh = subparsers.add_parser( |
|
856 | 882 | 'ssh', |
|
857 | 883 | help='run a cluster using ssh, should have ssh-keys setup', |
General Comments 0
You need to be logged in to leave comments.
Login now