Skip to content

Commit

Permalink
Merge pull request #341 from Cloudac7/lsf
Browse files Browse the repository at this point in the history
Add missing quotes for BSUB command (Fix for #337)
  • Loading branch information
AnguseZhang authored Dec 24, 2020
2 parents 80849cf + 8babd24 commit d15f199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpgen/dispatcher/LSF.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ def sub_script_head(self, res):
if len(res['partition']) > 0 :
ret += '#BSUB -q %s\n' % res['partition']
if len(res['exclude_list']) > 0:
ret += '#BSUB -R select['
ret += '#BSUB -R "select['
temp_exclude = []
for ii in res['exclude_list']:
temp_exclude.append('hname != %s' % ii)
ret += ' && '.join(temp_exclude)
ret += ']\n'
ret += ']"\n'
ret += "\n"
for ii in res['module_unload_list'] :
ret += "module unload %s\n" % ii
Expand Down

0 comments on commit d15f199

Please sign in to comment.