now aware of ACMLpathinfo

This commit is contained in:
Philip Eisenlohr 2011-11-14 14:59:16 +00:00
parent 09799b5b58
commit 413805e589
7 changed files with 27 additions and 8 deletions

View File

@ -1857,7 +1857,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"

View File

@ -1857,7 +1857,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"

View File

@ -1857,7 +1857,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"

View File

@ -1818,7 +1818,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"
then

View File

@ -1818,7 +1818,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"

View File

@ -1818,7 +1818,7 @@ fi
# user subroutine used
#
# add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
AMD_BLAS=" -L %ACMLDIR%/ifort64_mp/lib -lacml_mp"
if test "$user"
then

View File

@ -1,6 +1,7 @@
#!/bin/bash
DEFAULT_INSTALLDIR='/msc'
DEFAULT_ACMLDIR='/opt/acml4.0.0'
DEFAULT_VERSION='2010.2'
WORKINGDIR=`dirname $0`
@ -16,8 +17,8 @@ done
echo "MSC version: $VERSION"
INSTALLDIR=''
if [ -f $WORKINGDIR/../../processing/MSCpath ]; then
INSTALLDIR=`head $WORKINGDIR/../../processing/MSCpath`
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
INSTALLDIR=`grep msc $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
fi
while [ ! -d "$INSTALLDIR" ] || [ -z "$INSTALLDIR" ]
do
@ -31,6 +32,22 @@ done
INSTALLDIR=${INSTALLDIR%/} # remove trailing slash
echo "MSC installation path: $INSTALLDIR"
ACMLDIR=''
if [ -f $WORKINGDIR/../../lib/pathinfo ]; then
INSTALLDIR=`grep acml $WORKINGDIR/../../lib/pathinfo | head -n1 | awk 'BEGIN { FS = "[ \t]+" } ; { print $2 }'`
fi
while [ ! -d "$ACMLDIR" ] || [ -z "$ACMLDIR" ]
do
echo "Input path of ACML installation: [${DEFAULT_ACMLDIR}]"
read ACMLDIR
if [ -z $ACMLDIR ]; then
ACMLDIR=${DEFAULT_ACMLDIR}
fi
done
ACMLDIR=${ACMLDIR%/} # remove trailing slash
echo "ACML installation path: $ACMLDIR"
# tools
echo ''
echo 'copying Marc tools...'
@ -44,6 +61,7 @@ for filename in 'comp_user' \
'include_linux64'; do
cp $WORKINGDIR/$VERSION/Marc_tools/$filename $theDIR
echo $theDIR/$filename | xargs perl -pi -e "s:%INSTALLDIR%:${INSTALLDIR}:g"
echo $theDIR/$filename | xargs perl -pi -e "s:%ACMLDIR%:${ACMLDIR}:g"
echo $theDIR/$filename | xargs perl -pi -e "s:%VERSION%:${VERSION}:g"
echo $filename
done
@ -58,6 +76,7 @@ for filename in 'edit_window' \
'submit3'; do
cp $WORKINGDIR/$VERSION/Mentat_bin/$filename $theDIR
echo $theDIR/$filename | xargs perl -pi -e "s:%INSTALLDIR%:${INSTALLDIR}:g"
echo $theDIR/$filename | xargs perl -pi -e "s:%ACMLDIR%:${ACMLDIR}:g"
echo $theDIR/$filename | xargs perl -pi -e "s:%VERSION%:${VERSION}:g"
echo $filename
done