Commit 9aa64cca authored by Maude Le Jeune's avatar Maude Le Jeune
Browse files

pbs laucnher debug

parent 6617522b
......@@ -221,7 +221,7 @@ def launch_pbs(pipe, n, address=None, authkey='secret', job_name="job_", log_lev
f.write ("#PBS -o %s\n"%logfile)
f.write ("#PBS -e %s\n"%errfile)
f.write ("#PBS -N %s%d\n"%(job_name,i))
f.write ("#PBS -l nodes=1:ppn=%d,walltime=%s\n"%(cpu_time, ppn))
f.write ("#PBS -l nodes=1:ppn=%d,walltime=%s\n"%(ppn, cpu_time))
f.write (job_header+"\n")
f.write ("python -m pipelet.launchers -H %s -p %s -s %s -l %s"%(address[0],address[1],authkey,jobfile.replace('job','worker')))
f.close()
......@@ -300,12 +300,10 @@ mpirun -np %d python $PIPELETPATH/launchers.py -p %d -s %s -l %s -H $HOSTNAME
jobfile = get_log_file (pipe, '.job')
errfile = jobfile.replace('job', 'err')
logfile = jobfile.replace('job', 'log')
with closing(file(jobfile,'w')) as f:
f.write(server_file%(n, cpu_time, log_level, port, pipedesc, n, port, authkey, logfile))
subprocess.Popen(['qsub','-o' ,logfile, '-e', errfile,jobfile]).communicate()[0]
_job_file = """
#/bin/zsh
export PATH=/afs/in2p3.fr/home/b/betoule/software/photcalib/tools:$PATH
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment