From d4791d9222dd201fdfb0e7826644d35f59848927 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Thu, 24 Aug 2023 19:39:53 -0600 Subject: [PATCH] Install PRTE pseudo-scheduler only on request Add --with-prte-scheduler configure option to control build/install of pseudo-scheduler Signed-off-by: Ralph Castain --- config/prte_configure_options.m4 | 21 ++++++++++++++++++++- src/tools/Makefile.am | 6 +++++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/config/prte_configure_options.m4 b/config/prte_configure_options.m4 index 61ac057b88..616d677437 100644 --- a/config/prte_configure_options.m4 +++ b/config/prte_configure_options.m4 @@ -18,7 +18,7 @@ dnl reserved. dnl Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. dnl dnl Copyright (c) 2016-2020 Intel, Inc. All rights reserved. -dnl Copyright (c) 2021-2022 Nanook Consulting. All rights reserved. +dnl Copyright (c) 2021-2023 Nanook Consulting All rights reserved. dnl Copyright (c) 2022 Amazon.com, Inc. or its affiliates. dnl All Rights reserved. dnl $COPYRIGHT$ @@ -377,4 +377,23 @@ fi AC_DEFINE_UNQUOTED([PRTE_ENABLE_GETPWUID], [$prte_want_getpwuid], [Disable getpwuid support (default: enabled)]) +# +# Do we want to install the PRRTE scheduler? +# +AC_MSG_CHECKING([if want to install PRRTE pseudo-scheduler]) +AC_ARG_WITH(prte-scheduler, + AS_HELP_STRING([--with-prte-scheduler], + [Normal PRTE users/applications do not need this. Users/applications wishing to explore dynamic allocation support probably do (default: disabled).])) +if test "$with_prte_scheduler" = "yes"; then + AC_MSG_RESULT([yes]) + prte_want_scheduler="yes" + WANT_PRTE_SCHED=1 +else + AC_MSG_RESULT([no]) + prte_want_scheduler="no" + WANT_PRTE_SCHED=0 +fi +AM_CONDITIONAL(WANT_PRTE_SCHED, test "$WANT_PRTE_SCHED" = 1) +PRTE_SUMMARY_ADD([Miscellaneous], [PRTE Pseudo-Scheduler], [], [$prte_want_scheduler]) + ])dnl diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am index 8c22710bc1..1ff74f6399 100644 --- a/src/tools/Makefile.am +++ b/src/tools/Makefile.am @@ -31,8 +31,12 @@ SUBDIRS += \ tools/pcc \ tools/prte_info \ tools/prte \ - tools/pterm \ + tools/pterm + +if WANT_PRTE_SCHED +SUBDIRS += \ tools/psched +endif DIST_SUBDIRS += \ tools/prted \