qsub = pbs.qsub() qsub.pbshost = 'simpool.eecs.umich.edu' qsub.stdout = jobdir.file('jobout') qsub.name = job.name[:15] qsub.join = True qsub.node_type = node_type qsub.env['ROOTDIR'] = conf.rootdir qsub.env['JOBNAME'] = job.name if depend: qsub.afterok = cptjob if queue: qsub.queue = queue qsub.build(joinpath(progpath, 'job.py')) if verbose: print 'PBS Command: %s' % qsub.command if not onlyecho: ec = qsub.do() if ec == 0: jobid = qsub.result print 'PBS Jobid: %s' % jobid namehack.setname(jobid, job.name) queued = date() jobdir.echofile('.pbs_jobid', jobid) jobdir.echofile('.pbs_jobname', job.name) jobdir.echofile('.queued', queued) jobdir.setstatus('queued on %s' % queued) else: print 'PBS Failed'
#qsub.join = True #qsub.node_type = node_type #qsub.env['ROOTDIR'] = conf.rootdir #qsub.env['JOBNAME'] = job.name #if depend: # qsub.afterok = cptjob #if queue: # qsub.queue = queue qsub.properties = "64bit = 'Yes' or 64bit = 'No'" qsub.build(script) if verbose: print 'cwd: %s' % qsub.command print 'PBS Command: %s' % qsub.command if not onlyecho: ec = qsub.do() if ec == 0: jobid = qsub.result print 'OAR Jobid: %s' % jobid #namehack.setname(jobid, job.name) queued = date() jobdir.echofile('.batch_jobid', jobid) jobdir.echofile('.batch_jobname', job.name) jobdir.echofile('.queued', queued) jobdir.setstatus('queued on %s' % queued) else: print 'OAR Failed' print print