Skip to content

Commit 7ca4f7f

Browse files
committed
mpool/memkind: be careful with the memkind API
The memkind crew deprecated the API this branch of Open MPI is using. For certain releases, these deprecated functions were dropped, causing the Open MPI mpool/memkind to fail to compile. Make a configury change to not build this component/abort the config if a user is trying to use a newer version of memkind which does not support this deprecated function. Related to open-mpi#4971 Signed-off-by: Howard Pritchard <[email protected]> (cherry picked from commit 504b6e9)
1 parent b033dec commit 7ca4f7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

opal/mca/mpool/memkind/configure.m4

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- shell-script -*-
22
#
3-
# Copyright (c) 2013-2014 Los Alamos National Security, LLC. All rights
3+
# Copyright (c) 2013-2018 Los Alamos National Security, LLC. All rights
44
# reserved.
55
# $COPYRIGHT$
66
#
@@ -24,7 +24,11 @@ AC_DEFUN([MCA_opal_mpool_memkind_CONFIG],[
2424
opal_check_memkind_dir=$with_memkind
2525
fi
2626

27-
OPAL_CHECK_PACKAGE([mpool_memkind], [memkind.h], [memkind], [memkind_malloc], [ -lnuma],
27+
#
28+
# look specifically for memkind_get_kind_by_partition since
29+
# this branch of Open MPI uses this now deprecated API.
30+
#
31+
OPAL_CHECK_PACKAGE([mpool_memkind], [memkind.h], [memkind], [memkind_get_kind_by_partition], [ -lnuma],
2832
[$opal_check_memkind_dir], [], [opal_mpool_memkind_happy="yes"], [])
2933

3034
if test "$opal_mpool_memkind_happy" != "yes" -a -n "$with_memkind" ; then

0 commit comments

Comments
 (0)