-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chhwang/put-get-interface
- Loading branch information
Showing
30 changed files
with
388 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us fix | ||
title: "[Bug]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: "[Feature]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Performance improvement | ||
about: Discuss on performance issues | ||
title: "[Perf]" | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
FROM nvidia/cuda:11.8.0-devel-ubuntu20.04 | ||
|
||
LABEL maintainer="MSCCL++" | ||
LABEL org.opencontainers.image.source https://github.com/microsoft/mscclpp | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN rm -rf /opt/nvidia | ||
|
||
RUN apt-get clean && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
ca-certificates \ | ||
curl \ | ||
git \ | ||
libcap2 \ | ||
libnuma-dev \ | ||
openssh-client \ | ||
openssh-server \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-wheel \ | ||
sudo \ | ||
wget \ | ||
&& \ | ||
apt-get autoremove && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* | ||
|
||
# Install OFED | ||
ENV OFED_VERSION=5.2-2.2.3.0 | ||
RUN cd /tmp && \ | ||
wget -q https://content.mellanox.com/ofed/MLNX_OFED-${OFED_VERSION}/MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu20.04-x86_64.tgz && \ | ||
tar xzf MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu20.04-x86_64.tgz && \ | ||
MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu20.04-x86_64/mlnxofedinstall --user-space-only --without-fw-update --force --all && \ | ||
rm -rf /tmp/MLNX_OFED_LINUX-${OFED_VERSION}* | ||
|
||
# Install OpenMPI | ||
ENV OPENMPI_VERSION=4.1.5 | ||
RUN cd /tmp && \ | ||
export ompi_v_parsed="$(echo ${OPENMPI_VERSION} | sed -E 's/^([0-9]+)\.([0-9]+)\..*/\1.\2/')" && \ | ||
wget -q https://download.open-mpi.org/release/open-mpi/v${ompi_v_parsed}/openmpi-${OPENMPI_VERSION}.tar.gz && \ | ||
tar xzf openmpi-${OPENMPI_VERSION}.tar.gz && \ | ||
cd openmpi-${OPENMPI_VERSION} && \ | ||
./configure --prefix=/usr/local/mpi && \ | ||
make -j && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /tmp/openmpi-${OPENMPI_VERSION}* | ||
|
||
ENV PATH="/usr/local/mpi/bin:${PATH}" \ | ||
LD_LIBRARY_PATH="/usr/local/mpi/lib:/usr/local/cuda-11.8/lib64:${LD_LIBRARY_PATH}" | ||
|
||
RUN echo PATH="${PATH}" > /etc/environment && \ | ||
echo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" >> /etc/environment | ||
|
||
ENTRYPOINT [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ghcr.io/microsoft/mscclpp/mscclpp:base-cuda11.8 | ||
|
||
LABEL maintainer="MSCCL++" | ||
LABEL org.opencontainers.image.source https://github.com/microsoft/mscclpp | ||
|
||
ENV MSCCLPP_HOME="/usr/local/mscclpp" \ | ||
MSCCLPP_SRC_DIR="/tmp/mscclpp" \ | ||
CMAKE_VERSION="3.26.4" | ||
|
||
# Download cmake 3.26.4 | ||
ENV CMAKE_HOME="/tmp/cmake-${CMAKE_VERSION}-linux-x86_64" \ | ||
CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.tar.gz" | ||
RUN curl -L ${CMAKE_URL} -o ${CMAKE_HOME}.tar.gz && \ | ||
tar xzf ${CMAKE_HOME}.tar.gz -C /tmp | ||
|
||
# Install MSCCL++ | ||
ADD . ${MSCCLPP_SRC_DIR} | ||
WORKDIR ${MSCCLPP_SRC_DIR} | ||
RUN rm -rf build && \ | ||
mkdir build && \ | ||
cd build && \ | ||
${CMAKE_HOME}/bin/cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${MSCCLPP_HOME} .. && \ | ||
make -j mscclpp && \ | ||
make install/fast && \ | ||
strip ${MSCCLPP_HOME}/lib/libmscclpp.so.[0-9]*.[0-9]*.[0-9]* | ||
|
||
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${MSCCLPP_HOME}/lib" | ||
RUN echo LD_LIBRARY_PATH="${LD_LIBRARY_PATH}" >> /etc/environment | ||
|
||
# Cleanup | ||
WORKDIR / | ||
RUN rm -rf ${CMAKE_HOME}* ${MSCCLPP_SRC_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.