Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
metaclade2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Riccardo Vicedomini
metaclade2
Commits
b46f6d15
Commit
b46f6d15
authored
Feb 15, 2020
by
Riccardo Vicedomini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first working implementation of MetaCLADE with SGE support
parent
f1060fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
metaclade2
metaclade2
+16
-16
No files found.
metaclade2
View file @
b46f6d15
...
...
@@ -243,19 +243,19 @@ if [ "${MCLADE_USESGE}" = true ] ; then
f
=
"
${
MCLADE_WORKDIR
}
/jobs/1_search/
${
MCLADE_JOBNAME
}
_
${
i
}
.sh"
# run a qsub job for each non-empty script
if
[
-f
"
${
f
}
"
]
&&
[
-s
"
${
f
}
"
]
;
then
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
"
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.err"
-o
"
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.out"
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
${
NTHREADS
}
-b
y
${
PEXEC_CMD
}
${
f
}
&
CMD
=
"
${
PEXEC_CMD
}
${
f
}
"
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.err
-o
${
MCLADE_WORKDIR
}
/log/search_
${
i
}
.out
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
${
NTHREADS
}
-b
y
"
${
CMD
}
"
2>&1
>
"
${
MCLADE_WORKDIR
}
/log/search_qsub_
${
i
}
.log"
&
pid
=
$!
pidarr[
$i
]=
$pid
((
i++
))
fi
done
# wait search jobs to finish
print_status
"waiting the search jobs to finish"
for
i
in
${
!pid
tab
[@]
}
;
do
wait
${
pid
tab
[
${
i
}
]
}
ret
=
$?
if
((
ret
!=
0
))
;
then
echo
"
MetaCLADE search job
${
i
}
failed (exit status:
${
ret
}
)"
for
i
in
${
!pid
arr
[@]
}
;
do
wait
${
pid
arr
[
${
i
}
]
}
p
ret
=
$?
if
((
p
ret
!=
0
))
;
then
echo
"
search job
${
i
}
failed (exit status:
${
p
ret
}
)"
exit
1
fi
done
...
...
@@ -268,19 +268,19 @@ if [ "${MCLADE_USESGE}" = true ] ; then
f
=
"
${
MCLADE_WORKDIR
}
/jobs/2_filter/
${
MCLADE_JOBNAME
}
_
${
i
}
.sh"
# run a qsub job for each non-empty script
if
[
-f
"
${
f
}
"
]
&&
[
-s
"
${
f
}
"
]
;
then
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
"
${
MCLADE_WORKDIR
}
/log/filter_
${
i
}
.err"
-o
"
${
MCLADE_WORKDIR
}
/log/filter_
${
i
}
.out"
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
${
NTHREADS
}
-b
y
${
PEXEC_CMD
}
${
f
}
&
CMD
=
"
${
PEXEC_CMD
}
${
f
}
"
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
"
${
MCLADE_WORKDIR
}
/log/filter_
${
i
}
.err"
-o
"
${
MCLADE_WORKDIR
}
/log/filter_
${
i
}
.out"
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
${
NTHREADS
}
-b
y
"
${
CMD
}
"
2>&1
>
"
${
MCLADE_WORKDIR
}
/log/filter_qsub_
${
i
}
.log"
&
pid
=
$!
pidarr[
$i
]=
$pid
((
i++
))
fi
done
# wait search jobs to finish
print_status
"waiting the filter jobs to finish"
for
i
in
${
!pid
tab
[@]
}
;
do
wait
${
pid
tab
[
${
i
}
]
}
ret
=
$?
if
((
ret
!=
0
))
;
then
echo
"
MetaCLADE filter job
${
i
}
failed (exit status:
${
ret
}
)"
for
i
in
${
!pid
arr
[@]
}
;
do
wait
${
pid
arr
[
${
i
}
]
}
p
ret
=
$?
if
((
p
ret
!=
0
))
;
then
echo
"
filter job
${
i
}
failed (exit status:
${
p
ret
}
)"
exit
1
fi
done
...
...
@@ -289,10 +289,10 @@ if [ "${MCLADE_USESGE}" = true ] ; then
# create architecture
print_status
"computing architecture"
f
=
"
${
MCLADE_WORKDIR
}
/jobs/3_arch/
${
MCLADE_JOBNAME
}
.sh"
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
"
${
MCLADE_WORKDIR
}
/log/arch.err"
-o
"
${
MCLADE_WORKDIR
}
/log/arch.out"
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
1
-b
y
${
PEXEC_CMD
}
${
f
}
qsub
$SGE_QUEUEARG
$SGE_TIMELIMARG
-e
"
${
MCLADE_WORKDIR
}
/log/arch.err"
-o
"
${
MCLADE_WORKDIR
}
/log/arch.out"
-cwd
-sync
yes
-N
${
MCLADE_JOBNAME
}
-pe
${
SGE_PENAME
}
1
-b
y
${
PEXEC_CMD
}
${
f
}
2>&1
>>
"
${
MCLADE_WORKDIR
}
/log/arch_qsub.log"
qret
=
$?
if
((
qret
!=
0
))
;
then
echo
"
error during MetaCLADE architecture step (
$qret
)"
echo
"
architecture job failed (exit status:
${
qret
}
)"
exit
1
fi
print_status
"architecture job finished successfully"
...
...
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