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

View File

@ -1817,7 +1817,10 @@ 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"
if test "$user"
then
program=$usernoext.marc
@ -2768,6 +2771,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"
@ -3058,6 +3062,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"
@ -3347,6 +3352,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"

View File

@ -1817,8 +1817,8 @@ fi
#
# user subroutine used
#
# add OpenMP option for linking
OPENMP="-openmp"
# 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"
then
@ -2770,7 +2770,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$OPENMP \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"
@ -3061,7 +3061,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$OPENMP \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"
@ -3351,7 +3351,7 @@ then
$TKLIBS \
$MRCLIBS \
$METISLIBS \
$OPENMP \
$AMD_BLAS \
$SYSLIBS || \
{
echo "$0: link failed for ${user:+$userobj }$objs"