Skip to content

Commit

Permalink
Merge pull request #8093 from dancejic/include
Browse files Browse the repository at this point in the history
Adding ofi include to CPPFLAGS so that configure can check fabric.h
  • Loading branch information
jsquyres authored Oct 15, 2020
2 parents 7aa195f + 08e8205 commit 32dc9f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/opal_check_ofi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ AC_DEFUN([_OPAL_CHECK_OFI],[
[],
[opal_ofi_happy=no])])

CPPFLAGS="$CPPFLAGS $opal_ofi_CPPFLAGS"

AS_IF([test $opal_ofi_happy = yes],
[AC_CHECK_MEMBER([struct fi_info.nic],
[opal_check_fi_info_pci=1],
[opal_check_fi_info_pci=0],
[[#include "$with_ofi/include/rdma/fabric.h"]])])
[[#include <rdma/fabric.h>]])])

AC_DEFINE_UNQUOTED([OPAL_OFI_PCI_DATA_AVAILABLE],
[$opal_check_fi_info_pci],
Expand Down

0 comments on commit 32dc9f6

Please sign in to comment.