Commit 7d470066 authored by Michael Blocksome's avatar Michael Blocksome Committed by Sameh Sharkawi
Browse files

pamid: Do not compile/link C++ source if it is not used.


Signed-off-by: default avatarSameh Sharkawi <sssharka@us.ibm.com>
parent e8b11d0a
......@@ -142,7 +142,6 @@ static const char _ibm_release_version_[] = "V1R2M0";
#define MPIDI_NO_ASSERT 1
#define TOKEN_FLOW_CONTROL 1
#define DYNAMIC_TASKING 1
#define QUEUE_BINARY_SEARCH_SUPPORT 1
/* 'is local task' extension and limits */
#define PAMIX_IS_LOCAL_TASK
......
......@@ -58,8 +58,14 @@ mpi_core_sources += \
src/mpid/pamid/src/mpid_mprobe.c \
src/mpid/pamid/src/mpid_imrecv.c \
src/mpid/pamid/src/mpid_improbe.c \
src/mpid/pamid/src/mpidi_nbc_sched.c \
src/mpid/pamid/src/mpidi_nbc_sched.c
if QUEUE_BINARY_SEARCH_SUPPORT
mpi_core_sources += \
src/mpid/pamid/src/mpid_recvq_mmap.cpp
endif QUEUE_BINARY_SEARCH_SUPPORT
endif BUILD_PAMID
......@@ -100,6 +100,19 @@ if test "$with_shared_memory" != "mmap" -a "$with_shared_memory" != "sysv"; then
AC_MSG_ERROR([cannot support shared memory: need either sysv shared memory functions or mmap in order to support shared memory])
fi
dnl
dnl The default is to enable the use of the recv queue binary search
dnl ... except on BGQ
dnl
enable_queue_binary_search=yes
if test "${pamid_platform}" = "BGQ" ; then
enable_queue_binary_search=no
fi
AC_ARG_ENABLE(queue-binary-search,
AC_HELP_STRING([--queue-binary-search], [Enable C++ binary search]),enable_queue_binary_search=no,enable_queue_binary_search=yes)
AM_CONDITIONAL([QUEUE_BINARY_SEARCH_SUPPORT],[test "$enable_queue_binary_search" = "yes"])
dnl
dnl This configure option allows "sandbox" bgq system software to be used.
dnl
......@@ -325,7 +338,6 @@ fi
])dnl end AM_COND_IF(BUILD_PAMID,...)
])dnl end _BODY
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment