Skip to content

Commit

Permalink
clean up configure files
Browse files Browse the repository at this point in the history
  • Loading branch information
plavin committed Aug 1, 2024
1 parent 37209ac commit e5f0ab2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 14 additions & 4 deletions config/sst_check_ariel_mpi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ AC_DEFUN([SST_CHECK_ARIEL_MPI], [
AS_IF([test "$enable_ariel_mpi" = "yes"], [sst_check_ariel_mpi_happy="yes"])
dnl Ensure Core was compiled without MPI
dnl TODO: Remove this requirement in a future release
AC_MSG_CHECKING([whether sst-core was compilied without MPI])
sst_config_out=$(sst-config --MPI_CPPFLAGS)
if test -z "$sst_config_out"; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_WARN([SST-Core appears to have been compiled with MPI support. Disabling Ariel MPI support.])
sst_check_ariel_mpi_happy="no"
fi
dnl Find the MPI compilers and put them in MPICC and MIPCXX
AS_IF([test "$sst_check_ariel_mpi_happy" = "yes"], [
AC_LANG_PUSH([C])
Expand All @@ -20,10 +32,8 @@ AC_DEFUN([SST_CHECK_ARIEL_MPI], [
AC_LANG_POP([C++])
])
dnl Ensure Core was compiled without MPI
dnl todo
dnl
dnl Elements will overwrite these with the values used for compiling Core. We
dnl will save them in new variables.
ARIEL_MPICC=$MPICC
ARIEL_MPICXX=$MPICXX
AM_CONDITIONAL([SST_USE_ARIEL_MPI], [test "$sst_check_ariel_mpi_happy" = "yes"])
Expand Down
2 changes: 0 additions & 2 deletions src/sst/elements/ariel/configure.m4
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ dnl SST_CHECK_ARIEL_MPI([], [AC_MSG_ERROR([Can't enable Ariel MPI])])
AC_SUBST([ARIEL_MPICC])
AC_SUBST([ARIEL_MPICXX])
AC_SUBST([ARIEL_CFLAGS])
AC_SUBST([ARIEL_CXXFLAGS])
AC_CONFIG_FILES([src/sst/elements/ariel/api/Makefile])
AC_CONFIG_FILES([src/sst/elements/ariel/mpi/Makefile])
Expand Down

0 comments on commit e5f0ab2

Please sign in to comment.