Skip to content
Browse files

add experimental LSF support (needs testing)

  • Loading branch information...
1 parent 1edb987 commit a0e2363347fded400088787dbed6cc6d9d38b456 @jtriley jtriley committed with Jul 19, 2010
Showing with 26 additions and 0 deletions.
  1. +26 −0 IPython/kernel/scripts/ipcluster.py
View
26 IPython/kernel/scripts/ipcluster.py
@@ -356,6 +356,18 @@ class SGEEngineSet(PBSEngineSet):
ipengine --logfile=ipengine${eid}.log
"""
+class LSFEngineSet(PBSEngineSet):
+
+ name = 'LSF'
+ submit_command = 'bsub'
+ delete_command = 'bkill'
+ script_param_prefix = "#BSUB"
+ job_array_regexp = '#BSUB[ \t]+\w+\[\d+-\d+\]'
+ default_template="""#BSUB ipengine[1-%d]
+eid=$(($LSB_JOBINDEX - 1))
+ipengine --logfile=ipengine${eid}.log
+"""
+
sshx_template="""#!/bin/sh
"$@" &> /dev/null &
echo $!
@@ -851,6 +863,20 @@ def get_args():
default='' # SGEEngineSet will create one if not specified
)
parser_sge.set_defaults(func=main_sge)
+
+ parser_lsf = subparsers.add_parser(
+ 'lsf',
+ help='run an lsf cluster',
+ parents=[base_parser]
+ )
+ parser_lsf.add_argument(
+ '--lsf-script',
+ type=str,
+ dest='lsfscript',
+ help='LSF script template',
+ default='' # LSFEngineSet will create one if not specified
+ )
+ parser_lsf.set_defaults(func=main_sge)
parser_ssh = subparsers.add_parser(
'ssh',

0 comments on commit a0e2363

Please sign in to comment.
Something went wrong with that request. Please try again.