1
1

When using a platform file, allow the system to automatically pickup an associated default MCA param file for that platform. This change will first look for a file named "platform.conf" (where platform = the name of the platform you specified) in the directory where the platform file itself resides. If that isn't found, it then looks for our default mca param file name in that same location. If neither of those are found, we just use the good old standby default param file that ships with the openmpi code.

I tested this with both conventional and VPATH builds without problem. Please let me know if you hit an issue.

This commit was SVN r19296.
Этот коммит содержится в:
Ralph Castain 2008-08-14 20:26:17 +00:00
родитель 49745c5f40
Коммит a81dfa0aea
2 изменённых файлов: 31 добавлений и 2 удалений

Просмотреть файл

@ -56,5 +56,35 @@ AC_DEFUN([OMPI_LOAD_PLATFORM], [
fi
echo "Loaded platform arguments for $platform_loaded"
OMPI_LOG_MSG([Loaded platform arguments for $platform_loaded])
# look for default mca param file
# setup by getting full pathname for the platform directories
platform_base="`dirname $with_platform`"
# get full pathname of where we are so we can return
platform_savedir="`pwd`"
# go to where the platform file is located
cd "$platform_base"
# get the full path to this location
platform_file_dir=`pwd`
# return to where we started
cd "$platform_savedir"
# define an alternate default mca param filename
platform_alt_mca_file="`basename $platform_loaded`.conf"
# look where platform file is located for platform.conf name
if test -r "${platform_file_dir}/${platform_alt_mca_file}" ; then
AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [$platform_file_dir/$platform_alt_mca_file])
# if not, see if a file is there with the default name
elif test -r "${platform_file_dir}/openmpi-mca-params.conf" ; then
AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [$platform_file_dir/openmpi-mca-params.conf])
# if not, then just use the default
else
AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [openmpi-mca-params.conf])
fi
else
AC_SUBST(OPAL_DEFAULT_MCA_PARAM_CONF, [openmpi-mca-params.conf])
fi
])

Просмотреть файл

@ -17,8 +17,7 @@
# $HEADER$
#
opal_config_files = \
openmpi-mca-params.conf
opal_config_files = @OPAL_DEFAULT_MCA_PARAM_CONF@
EXTRA_DIST = $(opal_config_files)