@@ -126,19 +126,26 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
126126 CPPFLAGS=" $CPPFLAGS $opal_ofi_CPPFLAGS "
127127
128128 AS_IF([test $opal_ofi_happy = yes],
129- [AC_CHECK_MEMBER([struct fi_info.nic],
129+ [AC_CHECK_HEADERS([rdma/fi_ext.h])
130+
131+ AC_CHECK_MEMBER([struct fi_info.nic],
130132 [opal_check_fi_info_pci= 1],
131133 [opal_check_fi_info_pci= 0],
132- [[# include <rdma/fabric.h>]])])
134+ [[# include <rdma/fabric.h>]])
135+
136+ AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
137+ [$opal_check_fi_info_pci ],
138+ [check if pci data is available in ofi])
133139
134- AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
135- [$opal_check_fi_info_pci ],
136- [check if pci data is available in ofi])
140+ AC_CHECK_DECLS([PMIX_PACKAGE_RANK],
141+ [],
142+ [],
143+ [# include <pmix.h>])
137144
138- AC_CHECK_DECLS([PMIX_PACKAGE_RANK ],
139- [],
140- [],
141- [ # include <pmix.h> ])
145+ AC_CHECK_TYPES([struct fi_ops_mem_monitor], [], [ ],
146+ [ # ifdef HAVE_RDMA_FI_EXT_H
147+ # include <rdma/fi_ext.h>
148+ # endif]) ])
142149
143150 CPPFLAGS= $opal_check_ofi_save_CPPFLAGS
144151 LDFLAGS= $opal_check_ofi_save_LDFLAGS
@@ -157,18 +164,6 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
157164 [AC_MSG_WARN([OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found.])
158165 AC_MSG_ERROR([Cannot continue.])])
159166 ])
160- opal_ofi_import_monitor= no
161- AS_IF([test $opal_ofi_happy = " yes" ],
162- [OPAL_CHECK_OFI_VERSION_GE([1,14],
163- [opal_ofi_import_monitor= yes],
164- [opal_ofi_import_monitor= no])])
165-
166-
167- if test " $opal_ofi_import_monitor " = " yes" ; then
168- AC_DEFINE_UNQUOTED([OPAL_OFI_IMPORT_MONITOR_SUPPORT],1,
169- [Whether libfabric supports monitor import])
170- fi
171-
172167])dnl
173168
174169
0 commit comments