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
Commits
8f8365f0
Commit
8f8365f0
authored
3 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
BF: Fix var naming bugs by unifying cpu/gpu submit code
parent
6e26fda4
No related branches found
No related tags found
1 merge request
!37
Major re-arrangement of eddy tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eddy/runEddy
+20
-18
20 additions, 18 deletions
eddy/runEddy
with
20 additions
and
18 deletions
eddy/runEddy
+
20
−
18
View file @
8f8365f0
...
@@ -52,30 +52,32 @@ if [ "${cuda_exes}" == "" ] && [ "${cpu_exes}" == "" ]; then
...
@@ -52,30 +52,32 @@ if [ "${cuda_exes}" == "" ] && [ "${cpu_exes}" == "" ]; then
fi
fi
# Launch both GPU and CPU versions
# Launch both GPU and CPU versions
# Store job IDs separately so we
# can qalter the openmp jobs below
cuda_jids
=
""
cuda_jids
=
""
for
cuda_exe
in
${
cuda_exes
}
;
cpu_jids
=
""
for
exe
in
${
cuda_exes
}
${
cpu_exes
}
;
do
do
tmp
=
`
basename
${
cuda_exe
}
`
variant
=
`
basename
${
exe
}
`
variant
=
`
echo
${
tmp
}
|
sed
's/eddy_//'
`
variant
=
`
echo
${
variante
| sed
's/eddy_//'
`
jid
=
`
fsl_sub
-l
${
outdir
}
-q
cuda.q
${
cuda_exe
}
--out
=
${
outdir
}
/eddyOutput_
${
variant
}
${
eddy_args
}
`
if
[
$?
-ne
0
]
;
then
if
[[
"
${
exe
}
"
==
*
"cuda"
*
]]
;
then
echo
"Error submitting
${
cuda_exe
}
${
cuda_args
}
"
fsl_sub
=
"fsl_sub -l
${
outdir
}
-q cuda.q"
exit
1
else
fsl_sub
=
"fsl_sub -l
${
outdir
}
-q long.q -s openmp,6"
fi
fi
cuda_jids
=
"
${
cuda_jids
}
${
jid
}
"
done
cpu_jids
=
""
jid
=
`
${
fsl_sub
}
${
exe
}
--out=
${
outdir
}
/eddyOutput_
${
variant
}
${
eddy_args
}
`
for
cpu_exe
in
${
cpu_exes
}
;
do
tmp
=
`
basename
${
cuda_exe
}
`
variant
=
`
echo
${
tmp
}
|
sed
's/eddy_//'
`
jid
=
`
fsl_sub
-l
${
outdir
}
-q
long.q
-s
openmp,6
${
cpu_exe
}
--out
=
${
outdir
}
/eddyOutput_
${
variant
}
${
eddy_args
}
`
if
[
$?
-ne
0
]
;
then
if
[
$?
-ne
0
]
;
then
echo
"Error submitting
${
cuda_
exe
}
${
cuda
_args
}
"
echo
"Error submitting
${
exe
}
${
eddy
_args
}
"
exit
1
exit
1
fi
fi
cpu_jids
=
"
${
cpu_jids
}
${
jid
}
"
if
[[
"
${
exe
}
"
==
*
"cuda"
*
]]
;
then
cuda_jids
=
"
${
cuda_jids
}
${
jid
}
"
else
cpu_jids
=
"
${
cpu_jids
}
${
jid
}
"
fi
done
done
# If running on a cluster, wait
# If running on a cluster, wait
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment