1 from ClusterConnection import ClusterConnection
2
3 LSFJobTemplate = """#!/bin/sh
4 ##execution shell environment
5
6 ##Memory limit
7 #BSUB -M %memory
8 ##Max runtime
9 #BSUB -W %wallTime
10 #BSUB -o %stdout
11 #BSUB -e %stderr
12 #BSUB -n %cores
13
14 mkdir -p %stderrDir
15 mkdir -p %stdoutDir
16
17 %commands"""
18
20 """
21 For using the Load Sharing Facility (LSF) of Platform Computing (www.platform.com).
22 """
23 - def __init__(self, account=None, workdir=None, settings=None, wallTime=None, memory=None, cores=None, modules=None):
24 if wallTime == None:
25 wallTime = "48:00"
26 if memory == None:
27 memory = 4194304
28
29
30 ClusterConnection.__init__(self, account=account, workdir=workdir, settings=settings, memory=memory, cores=cores, modules=modules, wallTime=wallTime)
31 self.submitCommand = "bsub"
32 self.jobListCommand = "bjobs"
33 self.jobTemplate = LSFJobTemplate
34