Skip to content
Snippets Groups Projects
Commit b05c75a6 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

BF: Keep track of which jobs were submitted, so we know what outputs to expect

parent 4f591f23
No related branches found
No related tags found
1 merge request!40BF: Keep track of which jobs were submitted, so we know what outputs to expect
Pipeline #13768 passed
......@@ -49,7 +49,7 @@ eddy_args="--imain=${indir}/EddyLSRTestData/eddyData/testData
--dont_peas --very_verbose"
# run eddy
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} > ${odir}/EddyLSRTest.runEddy.o$$
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} | tee ${odir}/EddyLSRTest.runEddy.o$$
output_prefixes=$(tail -n1 ${odir}/EddyLSRTest.runEddy.o$$)
......
......@@ -55,7 +55,7 @@ eddy_args="--imain=${indir}/EddyMBSTestData/eddyData/testData
--mbs_niter=20 --mbs_lambda=10 --mbs_ksp=10 --very_verbose"
# run eddy
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} > ${odir}/EddyMBSTest.runEddy.o$$
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} | tee ${odir}/EddyMBSTest.runEddy.o$$
output_prefixes=$(tail -n1 ${odir}/EddyMBSTest.runEddy.o$$)
# Define some constants
......
......@@ -53,7 +53,7 @@ eddy_args="--imain=${indir}/EddyS2VTestData/eddyData/testData
--slspec=${indir}/EddyS2VTestData/eddyData/testSlspec "
# run eddy
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} > ${odir}/EddyS2VTest.runEddy.o$$
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} | tee ${odir}/EddyS2VTest.runEddy.o$$
output_prefixes=$(tail -n1 ${odir}/EddyS2VTest.runEddy.o$$)
# Define some constants
......
......@@ -46,7 +46,7 @@ eddy_args="--imain=${indir}/EddyTestData/eddyData/testData
--repol --fwhm=10,0,0,0,0 --dfields -v"
# run eddy
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} > ${odir}/EddyTest.runEddy.o$$
${thisdir}/runEddy ${exedir} ${odir} ${eddy_args} | tee ${odir}/EddyTest.runEddy.o$$
output_prefixes=$(tail -n1 ${odir}/EddyTest.runEddy.o$$)
# Define some constants
......
......@@ -56,6 +56,7 @@ fi
# can qalter the openmp jobs below
cuda_jids=""
cpu_jids=""
submitted=""
for exe in ${cuda_exes} ${cpu_exes};
do
variant=`basename ${exe}`
......@@ -77,6 +78,8 @@ do
continue
fi
submitted="${submitted} ${exe}"
if [[ "${exe}" == *"cuda"* ]]; then
cuda_jids="${cuda_jids} ${jid}"
else
......@@ -84,7 +87,7 @@ do
fi
done
if [ "${cuda_jids}" == "" ] && [ "${cpu_jids}" == "" ]; then
if [ "${submitted}" == "" ]; then
echo "Unable to submit any eddy executables!"
exit 1
fi
......@@ -123,7 +126,7 @@ fi
# and check that the main output file
# was created
outputs=""
for exe in ${cuda_exes} ${cpu_exes};
for exe in ${submitted};
do
tmp=`basename ${exe}`
variant=`echo ${tmp} | sed 's/eddy_//'`
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment