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

Allow mmorf executable to be specified by an environment variable

parent 683f265f
No related branches found
No related tags found
1 merge request!68Allow mmorf executable to be specified by an environment variable
Pipeline #25375 skipped
...@@ -14,10 +14,14 @@ MMORF_CONFIG=${outdir}/mmorf_config.ini ...@@ -14,10 +14,14 @@ MMORF_CONFIG=${outdir}/mmorf_config.ini
cat mov_to_ref_mm.ini | \ cat mov_to_ref_mm.ini | \
sed "s%##MMORF_INPUT_DIR##%${indir}%g" | \ sed "s%##MMORF_INPUT_DIR##%${indir}%g" | \
sed "s%##MMORF_OUTPUT_DIR##%${outdir}%g" > \ sed "s%##MMORF_OUTPUT_DIR##%${outdir}%g" > \
${MMORF_CONFIG} ${MMORF_CONFIG}
if [ "${MMORF_EXE}" == "" ]; then
MMORF_EXE=$(which mmorf)
fi
echo "-----------" echo "-----------"
echo "MMORF Test: $(which mmorf)" echo "MMORF Test: ${MMORF_EXE}"
echo "-----------" echo "-----------"
echo "" echo ""
...@@ -32,7 +36,7 @@ echo "" ...@@ -32,7 +36,7 @@ echo ""
# cluster. This will just run normally if running # cluster. This will just run normally if running
# locally (but fsl_sub will still return a job id # locally (but fsl_sub will still return a job id
# that can be used in the subsequent hold call). # that can be used in the subsequent hold call).
job_id=$(fsl_sub --coprocessor=cuda --logdir=${outdir} mmorf --version --config ${MMORF_CONFIG}) job_id=$(fsl_sub --coprocessor=cuda --logdir=${outdir} ${MMORF_EXE} --version --config ${MMORF_CONFIG})
touch ${outdir}/wait touch ${outdir}/wait
fsl_sub --jobhold ${job_id} rm ${outdir}/wait fsl_sub --jobhold ${job_id} rm ${outdir}/wait
while [ -e ${outdir}/wait ]; do while [ -e ${outdir}/wait ]; do
......
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