From ece1dcb7d6e46c1e093fd949983d4de5eb41c23e Mon Sep 17 00:00:00 2001 From: Jim Brandt Date: Tue, 16 Jan 2024 12:00:01 -0700 Subject: [PATCH] Fixes to tests and adding disable options --- configure.ac | 8 +++++--- ldms/src/Makefile.am | 3 +-- ldms/src/sampler/Makefile.am | 8 ++++++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 49b63c150..ca2162d7c 100644 --- a/configure.ac +++ b/configure.ac @@ -429,6 +429,7 @@ AS_IF([test "x$enable_papi" != xno],[ ]) AM_CONDITIONAL([HAVE_LIBPAPI], [test "x$HAVE_LIBPAPI" = xyes]) AM_CONDITIONAL([HAVE_LIBPFM], [test "x$HAVE_LIBPFM" = xyes]) +AM_CONDITIONAL([ENABLE_PAPI], [test "x$enable_papi" != no -a "x$HAVE_LIBPAPI" = xyes -a "x$HAVE_LIBPFM" = xyes]) AC_LIB_HAVE_LINKFLAGS([ibmad], [], [#include ]) AM_CONDITIONAL([HAVE_LIBIBMAD], [test "x$HAVE_LIBIBMAD" = xyes]) @@ -466,8 +467,7 @@ AC_ARG_ENABLE([ibnet], [], [enable_ibnet="check"]) AM_CONDITIONAL([ENABLE_IBNET], [test "x$enable_ibnet" != xno]) -AS_IF([test "$enable_ibnet" = xyes],[ - AC_MSG_NOTICE([Disable ibnet module NOT requested]) +AS_IF([test "x$enable_ibnet" = xyes],[ AS_IF([test "x$HAVE_LIBIBMAD" = xno], [AC_MSG_ERROR([ibnet required libibmad or not found])]) AS_IF([test "x$HAVE_LIBIBUMAD" = xno], @@ -650,7 +650,7 @@ AC_ARG_WITH([slurm], [with_slurm=check]) have_slurm=no AC_SUBST([SLURM_CFLAGS]) -AS_IF([test "x$with_slurm" != no],[ +AS_IF([test "x$with_slurm" != xno],[ save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS $SLURM_CFLAGS" AC_CHECK_HEADER([slurm/spank.h], [have_slurm=yes], [have_slurm=no]) @@ -663,6 +663,8 @@ AS_IF([test "x$with_slurm" != no],[ ]) AM_CONDITIONAL([HAVE_SLURM], [test "x$have_slurm" = xyes]) +OPTION_DEFAULT_ENABLE([spank_subscriber], [ENABLE_SPANK_SUBSCRIBER], [Builds sampler that subscribes to spank plugin]) + AC_CHECK_HEADER([linux/netlink.h], [have_netlink=yes], [have_netlink=no]) AM_CONDITIONAL([HAVE_NETLINK], [test "x$have_netlink" = xyes]) diff --git a/ldms/src/Makefile.am b/ldms/src/Makefile.am index 186a716f2..40aa6c963 100644 --- a/ldms/src/Makefile.am +++ b/ldms/src/Makefile.am @@ -4,14 +4,13 @@ SUBDIRS += third-plugins SUBDIRS += core SUBDIRS += ldmsd -SUBDIRS += decomp - if ENABLE_OVIS_AUTH SUBDIRS += auth endif if ENABLE_STORE SUBDIRS += store +SUBDIRS += decomp endif if ENABLE_SAMPLER diff --git a/ldms/src/sampler/Makefile.am b/ldms/src/sampler/Makefile.am index 96675f154..d1d1e50c2 100644 --- a/ldms/src/sampler/Makefile.am +++ b/ldms/src/sampler/Makefile.am @@ -30,10 +30,13 @@ ldmssamplerincludedir = $(includedir)/ldms/sampler ldmssamplerinclude_HEADERS = sampler_base.h SUBDIRS += netlink + +if ENABLE_LUSTRE SUBDIRS += lustre_client SUBDIRS += lustre_mdt SUBDIRS += lustre_ost SUBDIRS += lustre_mdc +endif if HAVE_DCGM SUBDIRS += dcgm_sampler @@ -131,8 +134,10 @@ SUBDIRS += job_info_slurm SUBDIRS += spank endif +if ENABLE_SPANK_SUBSCRIBER # This slurm sampler does not have a slurm build dependency SUBDIRS += slurm +endif if ENABLE_LUSTRE SUBDIRS += lustre @@ -200,8 +205,10 @@ if ENABLE_MPI_SAMPLER SUBDIRS += shm endif +if ENABLE_PAPI if HAVE_LIBPAPI SUBDIRS += papi + if HAVE_LIBPFM SUBDIRS += syspapi @@ -218,6 +225,7 @@ librapl_la_LIBADD = $(COMMON_LIBADD) $(LTLIBPAPI) $(LTLIBPFM) -lm pkglib_LTLIBRARIES += librapl.la endif endif +endif if ENABLE_PROCDISKSTATS SUBDIRS += procdiskstats