Add LL128 Protocol. Rewrite the topology detection and tree/ring creation (#179). Improve tree performance by sending/receiving from different GPUs. Add model-based tuning to switch between the different algorithms and protocols. Rework P2P/SHM detection in containers (#155, #248). Detect duplicated devices and return an error (#231). Add tuning for GCP
59 lines
1.9 KiB
Makefile
59 lines
1.9 KiB
Makefile
#
|
|
# Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
# See LICENSE.txt for license information
|
|
#
|
|
|
|
include ../../makefiles/common.mk
|
|
include ../../makefiles/version.mk
|
|
BUILDDIR ?= $(abspath ../../build)
|
|
DEBPREPDIR := $(BUILDDIR)/debian
|
|
PKGDIR := $(BUILDDIR)/pkg/deb/
|
|
|
|
DEBGEN_IN := $(wildcard *.in)
|
|
DEBGEN := $(DEBGEN_IN:.in=)
|
|
DEBFILES := compat copyright libnccl-dev.install rules $(DEBGEN)
|
|
DEBTARGETS := $(patsubst %, $(DEBPREPDIR)/%, $(DEBFILES))
|
|
|
|
PKG_TIMESTAMP := $(shell date -R)
|
|
ARCH := $(shell uname -m)
|
|
PKG_ARCH ?= $(shell uname -m | sed -e "s/x86_64/amd64/g" | sed -e "s/ppc64le/ppc64el/g"| sed -e "s/aarch64/arm64/g")
|
|
PKG_MULTIARCH ?= $(shell $(CXX) -print-multiarch)
|
|
ifeq ($(PKG_MULTIARCH),)
|
|
# Hardwire the PKG_MULTIARCH directory as the RHEL6 distribution agnostic compiler (gcc 4.8.3) doesn't set it
|
|
PKG_MULTIARCH := $(ARCH)-linux-gnu
|
|
endif
|
|
|
|
prep : $(DEBTARGETS)
|
|
$(MAKE) -C ../.. lic BUILDDIR=$(BUILDDIR)
|
|
|
|
build : prep
|
|
$(MAKE) -C ../.. src.build BUILDDIR=$(BUILDDIR)
|
|
@printf "Building Debian package\n"
|
|
(cd $(BUILDDIR); debuild -eLD_LIBRARY_PATH -uc -us -d -b)
|
|
mkdir -p $(PKGDIR)
|
|
mv $(BUILDDIR)/../libnccl*.deb $(PKGDIR)/
|
|
|
|
clean:
|
|
rm -Rf $(DEBPREPDIR) $(PKGDIR)
|
|
|
|
$(DEBPREPDIR)/% : %.in
|
|
@printf "Generating %-35s > %s\n" $< $@
|
|
mkdir -p $(DEBPREPDIR)
|
|
sed -e "s/\$${nccl:Major}/$(NCCL_MAJOR)/g" \
|
|
-e "s/\$${nccl:Minor}/$(NCCL_MINOR)/g" \
|
|
-e "s/\$${nccl:Patch}/$(NCCL_PATCH)/g" \
|
|
-e "s/\$${nccl:Suffix}/$(NCCL_SUFFIX)/g" \
|
|
-e "s/\$${cuda:Major}/$(CUDA_MAJOR)/g" \
|
|
-e "s/\$${cuda:Minor}/$(CUDA_MINOR)/g" \
|
|
-e "s/\$${pkg:Revision}/$(PKG_REVISION)/g" \
|
|
-e "s/\$${pkg:Timestamp}/$(PKG_TIMESTAMP)/g" \
|
|
-e "s/\$${pkg:Arch}/$(PKG_ARCH)/g" \
|
|
-e "s/\$${pkg:MultiArch}/$(PKG_MULTIARCH)/g" \
|
|
$< > $@
|
|
|
|
$(DEBPREPDIR)/% : %
|
|
@printf "Grabbing %-35s > %s\n" $< $@
|
|
mkdir -p $(DEBPREPDIR)
|
|
cp -f $< $@
|