Skip to content
Snippets Groups Projects
Commit 7a42db61 authored by Tim Schoof's avatar Tim Schoof
Browse files

Enable libfabric for python wheels

parent d2239f1d
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@ FROM quay.io/pypa/manylinux2010_x86_64
ENV GOPATH /tmp
RUN yum update -y && yum install -y golang wget zlib-devel
RUN yum update -y && yum install -y golang wget zlib-devel libnl3-devel
ADD install_curl.sh install_curl.sh
RUN ./install_curl.sh /curl
......@@ -10,6 +10,9 @@ RUN ./install_curl.sh /curl
ADD install_cmake.sh install_cmake.sh
RUN ./install_cmake.sh
ADD install_libfabric.sh install_libfabric.sh
RUN ./install_libfabric.sh
RUN chmod og+rwX -R /opt
ADD build.sh /bin/build.sh
\ No newline at end of file
......@@ -18,7 +18,7 @@ for python_path in /opt/python/cp{27,35,36,37,38}*; do
echo "building wheel for python_version=$python_version with numpy_version=$numpy_version"
cd /asapo/build
cmake -DENABLE_LIBFABRIC=off -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DPython_EXECUTABLE=$python -DNUMPY_VERSION=$numpy_version ..
cmake -DENABLE_LIBFABRIC=on -DCMAKE_BUILD_TYPE="Release" -DLIBCURL_DIR=/curl -DPython_EXECUTABLE=$python -DNUMPY_VERSION=$numpy_version ..
cd consumer \
&& $pip install -r api/python/dev-requirements.txt\
&& make \
......
#!/usr/bin/env bash
# rdma-core
wget https://github.com/linux-rdma/rdma-core/releases/download/v31.0/rdma-core-31.0.tar.gz
tar -xvf rdma-core-31.0.tar.gz
cd rdma-core-31.0
bash build.sh
cd ..
rm -f rdma-core-31.0.tar.gz
# rdma-core cannot be installed and some files in build are just symlinks
# therefore the folder is used as is and cannot be removed
# libfabric
wget https://github.com/ofiwg/libfabric/releases/download/v1.11.0/libfabric-1.11.0.tar.bz2
tar -xvf libfabric-1.11.0.tar.bz2
cd libfabric-1.11.0
./configure CPPFLAGS=-I/rdma-core-31.0/build/include LDFLAGS=-L/rdma-core-31.0/build/lib
make LD_LIBRARY_PATH=/rdma-core-31.0/build/lib # not sure why the flag is necessary
make install
cd ..
rm -f libfabric-1.11.0.tar.bz2
rm -rf libfabric-1.11.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment