added parsing of comments (# comment here...)
added "lib64" as possible location (sub-directory) for liblapack.a
This commit is contained in:
parent
2b6cb3bd84
commit
2b42896ef6
|
@ -18,7 +18,7 @@ echo "MSC version: $VERSION"
|
||||||
|
|
||||||
INSTALLDIR=''
|
INSTALLDIR=''
|
||||||
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
|
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
|
||||||
INSTALLDIR=`grep msc $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
INSTALLDIR=`grep -vE "^[[:space:]]*#|^$" | grep msc $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
||||||
fi
|
fi
|
||||||
while [ ! -d "$INSTALLDIR" ] || [ -z "$INSTALLDIR" ]
|
while [ ! -d "$INSTALLDIR" ] || [ -z "$INSTALLDIR" ]
|
||||||
do
|
do
|
||||||
|
@ -35,10 +35,10 @@ echo "MSC installation path: $INSTALLDIR"
|
||||||
BLASDIR=''
|
BLASDIR=''
|
||||||
FFTWDIR=''
|
FFTWDIR=''
|
||||||
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
|
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
|
||||||
IKMLDIR=`grep ikml $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
IKMLDIR=`grep -vE "^[[:space:]]*#|^$" | grep ikml $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
||||||
ACMLDIR=`grep acml $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
ACMLDIR=`grep -vE "^[[:space:]]*#|^$" | grep acml $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
||||||
LAPACKDIR=`grep lapack $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
LAPACKDIR=`grep -vE "^[[:space:]]*#|^$" | grep lapack $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
||||||
FFTWDIR=`grep fftw $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
FFTWDIR=`grep -vE "^[[:space:]]*#|^$" | grep fftw $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
|
||||||
if [ -d "$IKMLDIR" ]
|
if [ -d "$IKMLDIR" ]
|
||||||
BLASDIR=$IKMLDIR
|
BLASDIR=$IKMLDIR
|
||||||
BLASTYPE='IKML'
|
BLASTYPE='IKML'
|
||||||
|
@ -72,10 +72,10 @@ case $BLASTYPE in
|
||||||
BLAS=" -mkl"
|
BLAS=" -mkl"
|
||||||
;;
|
;;
|
||||||
ACML | acml)
|
ACML | acml)
|
||||||
BLAS=" -L $BLASDIR/ifort64_mp/lib -lacml_mp"
|
BLAS=" -L$BLASDIR/ifort64_mp/lib -lacml_mp"
|
||||||
;;
|
;;
|
||||||
LAPACK | lapack)
|
LAPACK | lapack)
|
||||||
BLAS=" -L $BLASDIR/lib -llapack"
|
BLAS=" -L$BLASDIR/lib -L$BLASDIR/lib64 -llapack"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "error, BLAS type must be IKML, ACML, or LAPACK"
|
echo "error, BLAS type must be IKML, ACML, or LAPACK"
|
||||||
|
|
Loading…
Reference in New Issue