Unverified Commit 419dea26 authored by Yuting Jiang's avatar Yuting Jiang Committed by GitHub
Browse files

Benchmarks: Build Pipeline - Add perftest as a submodule and add build logic (#129)

Add perftest as a submodule and add build logic
parent 8c8beb4b
......@@ -2,6 +2,9 @@
path = third_party/cutlass
url = https://github.com/NVIDIA/cutlass.git
branch = v2.4.0
[submodule "third_party/perftest"]
path = third_party/perftest
url = https://github.com/linux-rdma/perftest.git
[submodule "third_party/nccl-tests"]
path = third_party/nccl-tests
url = https://github.com/NVIDIA/nccl-tests.git
......@@ -85,14 +85,6 @@ RUN cd /tmp && \
cd /tmp && \
rm -rf nccl
# TODO: move to gitmodules
RUN git clone -b v4.5-0.2 https://github.com/linux-rdma/perftest.git /usr/local/perftest && \
cd /usr/local/perftest && \
./autogen.sh && \
./configure CUDA_H_PATH=/usr/local/cuda/include/cuda.h && \
make -j && \
make install
ENV PATH="${PATH}" \
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}" \
SB_HOME="/opt/superbench" \
......
......@@ -6,10 +6,10 @@
SB_MICRO_PATH ?= "/usr/local"
MPI_HOME_PATH ?= "/usr/local/mpi"
.PHONY: all cutlass bandwidthTest nccl_tests
.PHONY: all cutlass bandwidthTest nccl_tests perftest
# Build all targets.
all: cutlass bandwidthTest nccl_tests
all: cutlass bandwidthTest nccl_tests perftest
# Create $(SB_MICRO_PATH)/bin and $(SB_MICRO_PATH)/lib, no error if existing, make parent directories as needed.
sb_micro_path:
......@@ -41,3 +41,11 @@ ifneq (,$(wildcard nccl-tests/Makefile))
cd ./nccl-tests && make MPI=1 MPI_HOME=$(MPI_HOME_PATH) -j
cp -v ./nccl-tests/build/* $(SB_MICRO_PATH)/bin/
endif
# Build perftest.
# The version we use is the tag v4.5-0.2.
perftest:
ifneq (,$(wildcard perftest/autogen.sh))
cd perftest && ./autogen.sh && ./configure CUDA_H_PATH=/usr/local/cuda/include/cuda.h --prefix=$(SB_MICRO_PATH) && make -j && make install
endif
Subproject commit 7504ce48ac396a02f4d00de359257b2cb8458f06
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment