forked from ofiwg/libfabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v1.22.x] fabtests/configure, efa: call provider specific configure
Create efa provider's own configure.m4 and make configure.ac call it. Build efa_rdma_checker conditionally when all symbols are available. Signed-off-by: Shi Jin <[email protected]> (cherry picked from commit fc5e85c)
- Loading branch information
1 parent
07cf946
commit 4efe2eb
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
dnl | ||
dnl SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0-only | ||
dnl SPDX-FileCopyrightText: Copyright Amazon.com, Inc. or its affiliates. All rights reserved. | ||
dnl | ||
dnl Configure specific to the fabtests Amazon EFA provider | ||
|
||
|
||
dnl Checks for presence of efadv verbs. Needed for building tests that calls efadv verbs. | ||
have_efadv=0 | ||
AC_CHECK_HEADER([infiniband/efadv.h], | ||
[AC_CHECK_LIB(efa, efadv_query_device, | ||
[have_efadv=1])]) | ||
|
||
efa_rdma_checker_happy=0 | ||
AS_IF([test x"$have_efadv" = x"1"], [ | ||
efa_rdma_checker_happy=1 | ||
AC_CHECK_MEMBER(struct efadv_device_attr.max_rdma_size, | ||
[], | ||
[efa_rdma_checker_happy=0], | ||
[[#include <infiniband/efadv.h>]]) | ||
AC_CHECK_MEMBER(struct efadv_device_attr.device_caps, | ||
[], | ||
[efa_rdma_checker_happy=0], | ||
[[#include <infiniband/efadv.h>]]) | ||
AC_CHECK_DECL(EFADV_DEVICE_ATTR_CAPS_RDMA_WRITE, | ||
[], | ||
[efa_rdma_checker_happy=0], | ||
[[#include <infiniband/efadv.h>]]) | ||
]) | ||
AM_CONDITIONAL([BUILD_EFA_RDMA_CHECKER], [test $efa_rdma_checker_happy -eq 1]) |