コード例 #1
0
ファイル: send.py プロジェクト: AMDmi3/gem5
    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'
コード例 #2
0
ファイル: send.py プロジェクト: duttresearchgroup/gem5-spm
    #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