diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2005-11-02 14:56:18 -0500 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2005-11-02 14:56:18 -0500 |
commit | 3b66cb49ecf29e762f4659ed174ca76b8f553a1e (patch) | |
tree | b8f29795c7abf7c93882881252aff716fb33ee02 /util/qdo | |
parent | 0523736b96b2779f8a33c2315c94be55d0a4d9c7 (diff) | |
parent | a0829a7780b110a912ffc250d424b6dfe3586e62 (diff) | |
download | gem5-3b66cb49ecf29e762f4659ed174ca76b8f553a1e.tar.xz |
Merge zizzer:/bk/m5
into zeep.eecs.umich.edu:/z/saidi/work/m5
--HG--
extra : convert_revision : 3cc23080d19cc464a8ba7c1c93b6e5d45af7d463
Diffstat (limited to 'util/qdo')
-rwxr-xr-x | util/qdo | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -45,7 +45,11 @@ optparser.add_option('-o', dest='stdout_file', help='command stdout output file') optparser.add_option('-l', dest='save_log', action='store_true', help='save qsub output log file') -optparser.add_option('-q', dest='qsub_timeout', type='int', +optparser.add_option('-N', dest='job_name', + help='qsub job name') +optparser.add_option('-q', dest='dest_queue', + help='qsub destination queue') +optparser.add_option('--qwait', dest='qsub_timeout', type='int', help='qsub queue wait timeout', default=30*60) optparser.add_option('-t', dest='cmd_timeout', type='int', help='command execution timeout', default=600*60) @@ -56,6 +60,12 @@ if cmd == []: print >>sys.stderr, "%s: missing command" % progname sys.exit(1) +# 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() # Deal with systems where /n is a symlink to /.automount @@ -137,6 +147,10 @@ if False and len(cmd) > 50: print "%s: running %s on poolfs" % (progname, cmd[0]) else: shell_cmd = 'qsub -I -S /bin/sh' + if options.job_name: + shell_cmd += ' -N "%s"' % options.job_name + if options.dest_queue: + shell_cmd += ' -q ' + options.dest_queue shell = Shell(shell_cmd) |