[libfabric-users] Docker containers and libfabric with shm provider

david at 3adesign.co.uk david at 3adesign.co.uk
Wed Jan 5 12:51:48 PST 2022


Hi,

 

Forgive my ignorance but how would I get that info? I've looked at the
output of fi_util but nothing is leaping out at me

 

David

 

 

From: Hefty, Sean <sean.hefty at intel.com> 
Sent: 05 January 2022 18:37
To: david at 3adesign.co.uk; libfabric-users at lists.openfabrics.org
Subject: RE: [libfabric-users] Docker containers and libfabric with shm
provider

 

For your build, are you able to see the sockets provider?

 

From: Libfabric-users <libfabric-users-bounces at lists.openfabrics.org
<mailto:libfabric-users-bounces at lists.openfabrics.org> > On Behalf Of
david at 3adesign.co.uk <mailto:david at 3adesign.co.uk> 
Sent: Tuesday, December 21, 2021 12:38 PM
To: libfabric-users at lists.openfabrics.org
<mailto:libfabric-users at lists.openfabrics.org> 
Subject: [libfabric-users] Docker containers and libfabric with shm provider

 

Hi,

 

>From what I've read docker and shm is supported but I'm finding that I
cannot get it to work. fi_info returns -61, if I use the same build approach
on a ubuntu host then I get sane looking results for fi_info

 

The docker file is not complex:

 

from ubuntu:20.04

 

ARG DEBIAN_FRONTEND=noninteractive

 

RUN  apt-get update \

  && apt-get install -y wget git-all m4 autoconf automake libtool flex
build-essential pandoc net-tools \

     iproute2 \

  && rm -rf /var/lib/apt/lists/*

 

RUN git clone https://github.com/ofiwg/libfabric.git

RUN cd /libfabric && ./autogen.sh && ./configure --prefix=/opt/libfabric
--enable-shm=yes --enable-sockets --disable-tcp \

    --disable-udp && make -j 4 && make install

 

I use the following make file to build and then run

 

REPO=registry.gitlab.com/vdi/docker-images

IMAGE_NAME=libfabric-docker:0.1

 

BUILD_ARG = --build-arg http_proxy=${http_proxy}

BUILD_ARG += --build-arg HTTP_PROXY=${HTTP_PROXY}

BUILD_ARG += --build-arg https_proxy=${https_proxy}

BUILD_ARG += --build-arg HTTPS_PROXY=${HTTPS_PROXY}

 

build-image:

    docker build ${BUILD_ARG} -t ${REPO}/${IMAGE_NAME} .

 

test:

    docker run -it --rm --network host ${REPO}/${IMAGE_NAME} bash

 

push:

    @echo "=== Pushing Docker Image ${IMAGE_NAME} to ${REPO}"

    docker push ${REPO}/${IMAGE_NAME}

 

 

 

make build-image

 

then 

 

build test

 

Any ideas or suggestions?

 

David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/libfabric-users/attachments/20220105/1d56385e/attachment.htm>


More information about the Libfabric-users mailing list