Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pipelet
Pipelet
Commits
9aa64cca
Commit
9aa64cca
authored
Jan 12, 2015
by
Maude Le Jeune
Browse files
pbs laucnher debug
parent
6617522b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
pipelet/launchers.py
pipelet/launchers.py
+1
-3
No files found.
pipelet/launchers.py
View file @
9aa64cca
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment