-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 1.53 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ghcr.io/converged-computing/lise-azure:ucx-15
# Build command
# docker build -t ghcr.io/converged-computing/lise-azure:osu .
# docker push ghcr.io/converged-computing/lise-azure:osu
ENV DEBIAN_FRONTEND=noninteractive
# ENV UCX_NET_DEVICES=mlx5_0:1
# ENV UCX_TLS=ib
ENV OMPI_MCA_btl_openib_warn_no_device_params_found=0
ENV LD_LIBRARY_PATH=/opt/hpcx-v2.19-gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64/hpcx-rebuild/lib:/opt/hpcx-v2.19-gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64/hcoll/lib
ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/hpcx-v2.19-gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64/hpcx-rebuild/bin
# Prepare tutorial per
# https://ulhpc-tutorials.readthedocs.io/en/latest/parallel/mpi/OSU_MicroBenchmarks/
RUN git clone --depth 1 https://github.com/ULHPC/tutorials /opt/tutorials && \
mkdir -p /opt/osu-benchmark && \
cd /opt/osu-benchmark && \
ln -s /opt/tutorials/parallel/mpi/OSU_MicroBenchmarks ref.d && \
ln -s ref.d/Makefile . && \
ln -s ref.d/scripts . && \
mkdir src && \
cd src && \
export OSU_VERSION=7.5-1 && \
wget https://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-${OSU_VERSION}.tar.gz && \
tar xf osu-micro-benchmarks-${OSU_VERSION}.tar.gz && \
cd /opt/osu-benchmark && \
# Compile based on openmpi
mkdir -p build.openmpi && cd build.openmpi && \
../src/osu-micro-benchmarks-${OSU_VERSION}/configure CC=mpicc CXX=mpicxx CFLAGS=-I$(pwd)/../src/osu-micro-benchmarks-${OSU_VERSION}/util --prefix=$(pwd) && \
make -j 4 && make install