marc run scripts now link against ACML (AMD Core Math Library) to enable use of BLAS routines

ACML has certainly to be installed first (currently on msuws1 only) and is included for this purpose
This commit is contained in:
Franz Roters 2011-02-14 14:25:16 +00:00
parent 874d5067c7
commit bf2082a15b
5 changed files with 21 additions and 5 deletions

View File

@ -0,0 +1,5 @@
Install the AMD Core Math Library
1. untar the tgz file to a local directory
2. run the install script, use standard directory for install otherwise run_marc scripts need to be adjusted
3. add acml path to LD_LIBRARY_PATH, the best place to do so is: /etc/csh.cshrc.local and/or /etc/bash.bashrc.local

View File

@ -1817,6 +1817,8 @@ fi
# #
# user subroutine used # 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"
if test "$user" if test "$user"
then then
@ -2768,6 +2770,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3058,6 +3061,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3347,6 +3351,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"

View File

@ -1817,6 +1817,9 @@ fi
# #
# user subroutine used # 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"
if test "$user" if test "$user"
then then
@ -2768,6 +2771,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3058,6 +3062,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3347,6 +3352,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"

View File

@ -1817,8 +1817,8 @@ fi
# #
# user subroutine used # user subroutine used
# #
# add OpenMP option for linking # add BLAS options for linking (taken from ACML, AMD CORE MATH LIBRARY)
OPENMP="-openmp" AMD_BLAS=" -L /opt/acml4.4.0/ifort64_mp/lib -lacml_mp"
if test "$user" if test "$user"
then then
@ -2770,7 +2770,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$OPENMP \ $AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3061,7 +3061,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$OPENMP \ $AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"
@ -3351,7 +3351,7 @@ then
$TKLIBS \ $TKLIBS \
$MRCLIBS \ $MRCLIBS \
$METISLIBS \ $METISLIBS \
$OPENMP \ $AMD_BLAS \
$SYSLIBS || \ $SYSLIBS || \
{ {
echo "$0: link failed for ${user:+$userobj }$objs" echo "$0: link failed for ${user:+$userobj }$objs"