File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed
Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff 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
77fi
88if [ " x$FSLDEVDIR " == " x" ]; then
99 echo " "
1010 echo " Please set environment variable FSLDEVDIR before compiling"
1111 echo " "
12- exit 1
12+ exit 1
1313fi
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
2021fi
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
2626set -e
2727models=` ls mymodels -I utils`
2828for 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
3737done
You can’t perform that action at this time.
0 commit comments