@@ -126,19 +126,26 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
126
126
CPPFLAGS=" $CPPFLAGS $opal_ofi_CPPFLAGS "
127
127
128
128
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],
130
132
[opal_check_fi_info_pci= 1],
131
133
[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])
133
139
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>])
137
144
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]) ])
142
149
143
150
CPPFLAGS= $opal_check_ofi_save_CPPFLAGS
144
151
LDFLAGS= $opal_check_ofi_save_LDFLAGS
@@ -157,18 +164,6 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
157
164
[AC_MSG_WARN([OFI libfabric support requested (via --with-ofi or --with-libfabric), but not found.])
158
165
AC_MSG_ERROR([Cannot continue.])])
159
166
])
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
-
172
167
])dnl
173
168
174
169
0 commit comments