Skip to content

main branch cannot build mtl/ofi on RHEL7 like #10954

@ggouaillardet

Description

@ggouaillardet

configure passes but make fails:

how should this be resolved?

  • simply bump the OFI version requirements?
  • test the existence of these macros and do not build mtl/ofi if they are not defined?
  • test the existence of these macros and #ifdef protect some parts so mtl/ofi can be built?

FWIW

$ cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
$ rpm -q libfabric
libfabric-1.7.2-1.el7.x86_64
In file included from /home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.c:13:0:
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h: In function 'ompi_mtl_ofi_register_buffer':
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:324:17: error: 'struct fi_mr_attr' has no member named 'iface'
             attr.iface = FI_HMEM_CUDA;
                 ^
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:324:26: error: 'FI_HMEM_CUDA' undeclared (first use in this function)
             attr.iface = FI_HMEM_CUDA;
                          ^
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:324:26: note: each undeclared identifier is reported only once for each function it appears in
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:325:46: error: 'struct fi_mr_attr' has no member named 'device'
             opal_accelerator.get_device(&attr.device.cuda);
                                              ^
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:327:17: error: 'struct fi_mr_attr' has no member named 'iface'
             attr.iface = FI_HMEM_ROCR;
                 ^
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:327:26: error: 'FI_HMEM_ROCR' undeclared (first use in this function)
             attr.iface = FI_HMEM_ROCR;
                          ^
/home/gilles/src/ompi-master/ompi/mca/mtl/ofi/mtl_ofi.h:328:46: error: 'struct fi_mr_attr' has no member named 'device'
             opal_accelerator.get_device(&attr.device.cuda);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions