Skip to content

Instantly share code, notes, and snippets.

@bbrelje
Created March 19, 2020 16:02
Show Gist options
  • Save bbrelje/4b17c29e9bd1c0afb6f1979ee0c9d113 to your computer and use it in GitHub Desktop.
Save bbrelje/4b17c29e9bd1c0afb6f1979ee0c9d113 to your computer and use it in GitHub Desktop.
FROM tacc/tacc-centos7
RUN yum -y install wget && docker-clean
# install omnipath drivers
RUN yum -y install \
libibverbs-devel \
numactl-devel \
libibmad-devel \
libibumad-devel \
librdmacm-devel \
ca-certificates \
libxml2-devel \
libibmad libibumad libibumad-devel libibverbs librdmacm libibcm libpfm.i686 ibacm \
hfi1-firmware hfi1-firmware_debug libpsm2 libpsm2-devel libpsm2-compat && docker-clean
# install libfabric
RUN wget https://github.com/ofiwg/libfabric/releases/download/v1.8.1/libfabric-1.8.1.tar.bz2 && \
tar xjf libfabric-1.8.1.tar.bz2 && \
cd libfabric-1.8.1 && \
./configure --enable-psm2=yes --prefix=/usr && \
make && make install && cd .. && \
rm -r libfabric-1.8.1 libfabric-1.8.1.tar.bz2 && docker-clean
#install MPI from Intel's repo
RUN yum-config-manager -y --add-repo https://yum.repos.intel.com/setup/intelproducts.repo && \
yum install -y intel-mpi-2018.2-046 && docker-clean
# force IMPI to load openfabric from our openfabric
ENV I_MPI_OFI_LIBRARY_INTERNAL=0
# this script needs to be sourced for Intel MPI to work properly on the container
ENV MPIVARS_SCRIPT=/opt/intel/compilers_and_libraries/linux/mpi/intel64/bin/mpivars.sh
RUN ldconfig && docker-clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment