Skip to content

Commit 95dead0

Browse files
authored
Merge pull request #1891 from ggouaillardet/topic/openib_exp_atomic_cap
configury + btl/openib: fix a typo
2 parents 292563f + 91ccec3 commit 95dead0

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

config/opal_check_openfabrics.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# Copyright (c) 2010-2012 Oracle and/or its affiliates. All rights reserved.
1818
# Copyright (c) 2009-2012 Oak Ridge National Laboratory. All rights reserved.
1919
# Copyright (c) 2014 Bull SAS. All rights reserved.
20-
# Copyright (c) 2014-2015 Research Organization for Information Science
20+
# Copyright (c) 2014-2016 Research Organization for Information Science
2121
# and Technology (RIST). All rights reserved.
2222
# $COPYRIGHT$
2323
#
@@ -412,7 +412,7 @@ AC_DEFUN([OPAL_CHECK_EXP_VERBS],[
412412
AC_DEFINE_UNQUOTED([HAVE_EXP_VERBS], [$have_struct_ibv_exp_send_wr], [Experimental verbs])
413413
AC_CHECK_DECLS([IBV_EXP_ATOMIC_HCA_REPLY_BE, IBV_EXP_QP_CREATE_ATOMIC_BE_REPLY, ibv_exp_create_qp, ibv_exp_query_device, IBV_EXP_QP_INIT_ATTR_ATOMICS_ARG],
414414
[], [], [#include <infiniband/verbs_exp.h>])
415-
AC_CHECK_MEMBERS([struct ibv_exp_device_attr.ext_atom, struct ibv_exp_device_attr.ext_atomic_cap], [], [],
415+
AC_CHECK_MEMBERS([struct ibv_exp_device_attr.ext_atom, struct ibv_exp_device_attr.exp_atomic_cap], [], [],
416416
[[#include <infiniband/verbs_exp.h>]])
417417
AS_IF([test '$have_struct_ibv_exp_send_wr' = 1], [$1], [$2])
418418
OPAL_VAR_SCOPE_POP

opal/mca/btl/openib/btl_openib_component.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ static int init_one_port(opal_list_t *btl_list, mca_btl_openib_device_t *device,
793793
}
794794
#endif
795795

796-
#ifdef HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXT_ATOMIC_CAP
796+
#ifdef HAVE_STRUCT_IBV_EXP_DEVICE_ATTR_EXP_ATOMIC_CAP
797797
switch (openib_btl->device->ib_exp_dev_attr.exp_atomic_cap)
798798
#else
799799
switch (openib_btl->device->ib_dev_attr.atomic_cap)
@@ -2521,7 +2521,7 @@ btl_openib_component_init(int *num_btl_modules,
25212521
mca_btl_openib_frag_init_data_t *init_data;
25222522
struct dev_distance *dev_sorted;
25232523
float distance;
2524-
int index, value;
2524+
int index;
25252525
bool found;
25262526
mca_base_var_source_t source;
25272527
int list_count = 0;
@@ -2887,13 +2887,6 @@ btl_openib_component_init(int *num_btl_modules,
28872887
mca_btl_openib_component.if_exclude_list = NULL;
28882888
}
28892889

2890-
/* If we are using ptmalloc2 and there are no posix threads
2891-
available, this will cause memory corruption. Refuse to run.
2892-
Right now, ptmalloc2 is the only memory manager that we have on
2893-
OS's that support OpenFabrics that provide both FREE and MUNMAP
2894-
support, so the following test is [currently] good enough... */
2895-
value = opal_mem_hooks_support_level();
2896-
28972890
#if OPAL_CUDA_SUPPORT
28982891
if (mca_btl_openib_component.cuda_want_gdr && (0 == opal_leave_pinned)) {
28992892
opal_show_help("help-mpi-btl-openib.txt",

0 commit comments

Comments
 (0)