Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyfeeds-tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
pyfeeds-tests
Merge requests
!41
Bf/set sge
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Bf/set sge
bf/setSGE
into
master
Overview
0
Commits
2
Pipelines
3
Changes
1
Merged
Matthew Webster
requested to merge
bf/setSGE
into
master
3 years ago
Overview
0
Commits
2
Pipelines
3
Changes
1
Expand
0
0
Merge request reports
Viewing commit
7d196a78
Prev
Next
Show latest version
1 file
+
12
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7d196a78
BF: Works for both queue and local invocation
· 7d196a78
Matthew Webster
authored
3 years ago
fsl_course/fdt/bedpostx_gpu/feedsRun
+
12
−
0
Options
@@ -11,5 +11,17 @@ cp -Lr $datadir/fsl_course_data/fdt2/subj1 $outdir/
@@ -11,5 +11,17 @@ cp -Lr $datadir/fsl_course_data/fdt2/subj1 $outdir/
bedpostx_gpu
$outdir
/subj1
--nf
=
2
--fudge
=
1
--bi
=
1000
--seed
=
1234
bedpostx_gpu
$outdir
/subj1
--nf
=
2
--fudge
=
1
--bi
=
1000
--seed
=
1234
# wait for all jobs to finish
while
[
:
]
;
do
jid
=
`
cat
$outdir
/subj1.bedpostX/logs/postproc_ID
`
echo
"JID
$jid
"
status
=
`
qstat
-j
${
jid
}
2>/dev/null |
wc
`
status
=
`
echo
$status
|
awk
'{print $1}'
`
if
[
$status
-eq
0
]
;
then
break
fi
sleep
60
done
chmod
-R
u+w
$outdir
/subj1
chmod
-R
u+w
$outdir
/subj1
rm
-r
$outdir
/subj1
rm
-r
$outdir
/subj1
Loading