I'm building OpenMPI with verbs. I encounter this build error: make[2]: Entering directory `/global/panfs01/users1/lriesen/code/openmpi/openmpi-3.0.0/oshmem/mca/sshmem/verbs' CC sshmem_verbs_component.lo In file included from sshmem_verbs_component.c:30:0: sshmem_verbs.h: In function 'mca_sshmem_verbs_fill_shared_mr': sshmem_verbs.h:66:7: error: 'struct ibv_exp_reg_shared_mr_in' has no member named 'access' mr->access = access; ^ make[2]: *** [sshmem_verbs_component.lo] Error 1
Here is some context from sshmem_verbs.h: static inline void mca_sshmem_verbs_fill_shared_mr(struct ibv_exp_reg_shared_mr_in *mr, struct ibv_pd *pd, uint32_t handle, void *addr, uint64_t access) { mr->pd = pd; mr->addr = addr; mr->mr_handle = handle; #if (MPAGE_HAVE_SMR_EXP_ACCESS) mr->exp_access = access; #else mr->access = access; #endif mr->comp_mask = 0; } This is the configure test: ./oshmem/mca/sshmem/verbs/configure.m4: AC_DEFINE_UNQUOTED(MPAGE_HAVE_SMR_EXP_ACCESS, $exp_access_happy, [exp_access field is part of ibv_exp_reg_shared_mr_in]) Here is the structure in question: /usr/local/ofed/mlnx-4.2-1.2.0.0_74_10.2/include/infiniband/verbs_exp.h: struct ibv_exp_reg_shared_mr_in { uint32_t mr_handle; struct ibv_pd *pd; void *addr; uint64_t exp_access; /* use ibv_exp_access_flags */ uint32_t comp_mask; /* reserved for future growth (must be 0) */ }; And how configure set MPAGE_HAVE_SMR_EXP_ACCESS in opal_config.h: ./opal/include/opal_config.h.in:#undef MPAGE_HAVE_SMR_EXP_ACCESS ./opal/include/opal_config.h:#define MPAGE_HAVE_SMR_EXP_ACCESS 0 The configure command line: ./configure --prefix=/opt/crtdc/openshmem/1.4.0/oshmem_ib --with-ucx=/opt/crtdc/openshmem/1.4.0/tpl --with-verbs=/usr/local/ofed/mlnx-4.2-1.2.0.0_74_10.2 --enable-oshmem --enable-oshmem-profile --enable-shared --enable-picky --with-lsf I was able to keep going by fixing opal_config.h, but I thought I shoudl let you know. Lee Ann ----- Lee Ann Riesen, Enterprise and Government Group, Intel Corporation, Hillsboro, OR Phone 503-613-1952
_______________________________________________ users mailing list users@lists.open-mpi.org https://lists.open-mpi.org/mailman/listinfo/users