Skip to content

Commit

Permalink
Install PRTE pseudo-scheduler only on request
Browse files Browse the repository at this point in the history
Add --with-prte-scheduler configure option to control
build/install of pseudo-scheduler

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 committed Aug 25, 2023
1 parent d8c4c9e commit d4791d9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
21 changes: 20 additions & 1 deletion config/prte_configure_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down Expand Up @@ -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
6 changes: 5 additions & 1 deletion src/tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d4791d9

Please sign in to comment.