Skip to content

Commit 81e7f6a

Browse files
committed
MNT: Clean up compile_all_models.sh script
1 parent 9260598 commit 81e7f6a

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

compile_all_models.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ if [ "x$FSLDIR" == "x" ]; then
33
echo ""
44
echo "Please set environment variable FSLDIR before compiling"
55
echo ""
6-
exit 1
6+
exit 1
77
fi
88
if [ "x$FSLDEVDIR" == "x" ]; then
99
echo ""
1010
echo "Please set environment variable FSLDEVDIR before compiling"
1111
echo ""
12-
exit 1
12+
exit 1
1313
fi
14-
if [ "x$CUDA" == "x" ]; then
14+
15+
if [ $(type -P nvcc) ]; then
1516
echo ""
16-
echo "Please set enviroment variable CUDA with the path to the version of CUDA to use"
17-
echo "For instance: export CUDA=/usr/local/cuda-8.0"
17+
echo "Please ensure that the nvcc compiler command is on your PATH"
18+
echo "For instance: export PATH=/usr/local/cuda-8.0/bin:$PATH"
1819
echo ""
19-
exit 1
20+
exit 1
2021
fi
2122

22-
. $FSLDIR/etc/fslconf/fsl.sh
23-
export FSLCONFDIR=$FSLDIR/config
24-
export FSLMACHTYPE=`$FSLDIR/etc/fslconf/fslmachtype.sh`
23+
. $FSLDIR/etc/fslconf/fsl-devel.sh
24+
2525

2626
set -e
2727
models=`ls mymodels -I utils`
2828
for m in $models; do
29-
echo
30-
echo ------------------------------
31-
echo -------- Compiling $m --------
32-
echo ------------------------------
33-
echo
34-
export modelname=$m
35-
make cleanall
36-
make install
29+
echo
30+
echo ------------------------------
31+
echo -------- Compiling $m --------
32+
echo ------------------------------
33+
echo
34+
export modelname=$m
35+
make cleanall
36+
make install
3737
done

0 commit comments

Comments
 (0)