Benchmarks: Build Pipeline - Add gpcnet as git submodule and building logic (#228)
**Description** Add gpcnet as git submodule and building logic. **Major Revision** - add gpcnet as a submodule - add build logic in third_party/Makefile
This commit is contained in:
Родитель
455ad1f873
Коммит
b592a7c793
|
@ -15,3 +15,6 @@
|
|||
[submodule "third_party/rccl-tests"]
|
||||
path = third_party/rccl-tests
|
||||
url = https://github.com/ROCmSoftwarePlatform/rccl-tests.git
|
||||
[submodule "third_party/GPCNET"]
|
||||
path = third_party/GPCNET
|
||||
url = https://github.com/netbench/GPCNET.git
|
||||
|
|
|
@ -80,6 +80,13 @@ RUN cd /tmp && \
|
|||
PATH=/usr/bin:${PATH} MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64/mlnxofedinstall --user-space-only --without-fw-update --force --all && \
|
||||
rm -rf MLNX_OFED_LINUX-${OFED_VERSION}*
|
||||
|
||||
# Install HPC-X
|
||||
RUN cd /opt && \
|
||||
wget -q https://azhpcstor.blob.core.windows.net/azhpc-images-store/hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz && \
|
||||
tar xf hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz && \
|
||||
ln -s hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64 hpcx && \
|
||||
rm hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz
|
||||
|
||||
ENV PATH="${PATH}" \
|
||||
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" \
|
||||
SB_HOME="/opt/superbench" \
|
||||
|
|
|
@ -80,6 +80,13 @@ RUN cd /tmp && \
|
|||
PATH=/usr/bin:${PATH} MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64/mlnxofedinstall --user-space-only --without-fw-update --force --all && \
|
||||
rm -rf MLNX_OFED_LINUX-${OFED_VERSION}*
|
||||
|
||||
# Install HPC-X
|
||||
RUN cd /opt && \
|
||||
wget -q https://azhpcstor.blob.core.windows.net/azhpc-images-store/hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz && \
|
||||
tar xf hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz && \
|
||||
ln -s hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64 hpcx && \
|
||||
rm hpcx-v2.8.3-gcc-MLNX_OFED_LINUX-${OFED_VERSION}-ubuntu18.04-x86_64.tbz
|
||||
|
||||
ENV PATH="${PATH}" \
|
||||
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" \
|
||||
SB_HOME="/opt/superbench" \
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit c56fd950ae6552ffce7a55cfa6d5617454e983e3
|
|
@ -8,14 +8,15 @@ MPI_HOME ?= /usr/local/mpi
|
|||
HIP_HOME ?= /opt/rocm/hip
|
||||
RCCL_HOME ?= /opt/rocm/rccl
|
||||
ROCM_VERSION ?= rocm-$(shell dpkg -l | grep 'rocm-dev ' | awk '{print $$3}' | cut -d '.' -f1-3)
|
||||
HPCX_HOME ?= /opt/hpcx
|
||||
|
||||
.PHONY: all cuda rocm common cuda_cutlass cuda_bandwidthTest cuda_nccl_tests cuda_perftest rocm_perftest fio rocm_rccl_tests rocm_rocblas rocm_bandwidthTest
|
||||
.PHONY: all cuda rocm common cuda_cutlass cuda_bandwidthTest cuda_nccl_tests cuda_perftest rocm_perftest fio rocm_rccl_tests rocm_rocblas rocm_bandwidthTest gpcnet
|
||||
|
||||
# Build all targets.
|
||||
all: cuda rocm
|
||||
cuda: common cuda_cutlass cuda_bandwidthTest cuda_nccl_tests cuda_perftest
|
||||
rocm: common rocm_perftest rocm_rccl_tests rocm_rocblas rocm_bandwidthTest
|
||||
common: fio
|
||||
common: fio gpcnet
|
||||
|
||||
# Create $(SB_MICRO_PATH)/bin and $(SB_MICRO_PATH)/lib, no error if existing, make parent directories as needed.
|
||||
sb_micro_path:
|
||||
|
@ -91,3 +92,9 @@ rocm_bandwidthTest: sb_micro_path
|
|||
cp -r -v $(shell hipconfig -p)/samples/1_Utils/hipBusBandwidth ./
|
||||
cd ./hipBusBandwidth/ && mkdir -p build && cd build && cmake .. && make
|
||||
cp -v ./hipBusBandwidth/build/hipBusBandwidth $(SB_MICRO_PATH)/bin/
|
||||
|
||||
# Build GPCNET from commit c56fd9.
|
||||
gpcnet: sb_micro_path
|
||||
bash -c "source ${HPCX_HOME}/hpcx-init.sh && hpcx_load && make CC=mpicc -C GPCNET all && hpcx_unload"
|
||||
cp -v ./GPCNET/network_test $(SB_MICRO_PATH)/bin/
|
||||
cp -v ./GPCNET/network_load_test $(SB_MICRO_PATH)/bin/
|
||||
|
|
Загрузка…
Ссылка в новой задаче