summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2005-10-23 22:18:50 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2005-10-23 22:18:50 -0400
commit5540021d89b9a28d84b5acb3956c2cd3b2994b61 (patch)
tree568fe1c45f2b0cd8fac9913902c383c39e835958 /util
parentb7b8ffa7b7800505f7008927bb3679a0ba9d5374 (diff)
downloadgem5-5540021d89b9a28d84b5acb3956c2cd3b2994b61.tar.xz
Fix qdo job name setting.
util/qdo: Don't automatically set qsub job name, as this causes qsub to fail if the job name is too long or otherwise unsuitable. --HG-- extra : convert_revision : 5ba48767574efaaff2c328549adee295780f7f70
Diffstat (limited to 'util')
-rwxr-xr-xutil/qdo10
1 files changed, 7 insertions, 3 deletions
diff --git a/util/qdo b/util/qdo
index 9593ed5ed..339d944a7 100755
--- a/util/qdo
+++ b/util/qdo
@@ -60,8 +60,11 @@ if cmd == []:
print >>sys.stderr, "%s: missing command" % progname
sys.exit(1)
-if not options.job_name:
- options.job_name = cmd[0]
+# If we want to do this, need to add check here to make sure cmd[0] is
+# a valid PBS job name, else qsub will die on us.
+#
+#if not options.job_name:
+# options.job_name = cmd[0]
cwd = os.getcwd()
@@ -144,7 +147,8 @@ if False and len(cmd) > 50:
print "%s: running %s on poolfs" % (progname, cmd[0])
else:
shell_cmd = 'qsub -I -S /bin/sh'
- shell_cmd += ' -N "%s"' % options.job_name
+ if options.job_name:
+ shell_cmd += ' -N "%s"' % options.job_name
if options.dest_queue:
shell_cmd += ' -q ' + options.dest_queue