Skip to content
Snippets Groups Projects
Commit d216c9bb authored by Moe Jette's avatar Moe Jette
Browse files

Add test for ALPS execute files

parent 89bea660
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,12 @@ AC_DEFUN([X_AC_CRAY], ...@@ -17,6 +17,12 @@ AC_DEFUN([X_AC_CRAY],
[ [
ac_have_cray="no" ac_have_cray="no"
ac_have_cray_emulation="no" ac_have_cray_emulation="no"
_x_ac_alps_dirs="/usr"
AC_ARG_WITH(
[alps-dir],
AS_HELP_STRING(--with-alps-dir=PATH,Specify path to ALPS installation),
[_x_ac_alps_dirs="$withval $_x_ac_alps_dirs"])
AC_ARG_ENABLE( AC_ARG_ENABLE(
[cray-emulation], [cray-emulation],
...@@ -54,6 +60,21 @@ AC_DEFUN([X_AC_CRAY], ...@@ -54,6 +60,21 @@ AC_DEFUN([X_AC_CRAY],
AC_MSG_ERROR([Cray BASIL requires the cray-MySQL-devel-enterprise rpm]) AC_MSG_ERROR([Cray BASIL requires the cray-MySQL-devel-enterprise rpm])
fi fi
# Check that all Cray binaries called by SLURM are in their expected places.
# On a standard XT/XE installation, both these have always been in /usr/bin.
for dir in $_x_ac_alps_dirs; do
test -d "$dir" || continue
test -d "$dir/bin" || continue
test -f "$dir/bin/apbasil" || continue
test -f "$dir/bin/apkill" || continue
_x_ac_alps_install_dir="$dir"
AC_DEFINE_UNQUOTED(HAVE_ALPS_DIR, "$dir", [Directory in which ALPS has been installed])
break
done
if test -z "$_x_ac_alps_install_dir"; then
AC_MSG_ERROR([Could not locate apbasil and apikill executables on Cray system. See --with-alps-dir option.])
fi
AC_DEFINE(HAVE_3D, 1, [Define to 1 if 3-dimensional architecture]) AC_DEFINE(HAVE_3D, 1, [Define to 1 if 3-dimensional architecture])
AC_DEFINE(SYSTEM_DIMENSIONS, 3, [3-dimensional architecture]) AC_DEFINE(SYSTEM_DIMENSIONS, 3, [3-dimensional architecture])
AC_DEFINE(HAVE_FRONT_END, 1, [Define to 1 if running slurmd on front-end only]) AC_DEFINE(HAVE_FRONT_END, 1, [Define to 1 if running slurmd on front-end only])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment