Merge remote-tracking branch 'nccl/master' into develop

This commit is contained in:
BertanDogancay
2025-10-06 15:03:19 -05:00
committed by Corey Derochie
51 changed files with 3682 additions and 461 deletions
+13 -8
View File
@@ -3,15 +3,20 @@
#
# See LICENSE.txt for license information
#
NCCL_HOME:=../../build/
CUDA_HOME:=/usr/local/cuda
INC:= -I$(NCCL_HOME)/include -I$(CUDA_HOME)/include -Inccl
PLUGIN_SO:=libnccl-net.so
.DEFAULT_GOAL: build
include ../../makefiles/common.mk
SRCDIR ?= $(abspath ../..)
BUILDDIR ?= .
NCCLDIR := $(BUILDDIR)
default: $(PLUGIN_SO)
SRC_FILES := $(wildcard *.c)
$(PLUGIN_SO): plugin.c
$(CC) $(INC) -fPIC -shared -o $@ -Wl,-soname,$(PLUGIN_SO) $^
build: ${BUILDDIR}/libnccl-net-example.so
${BUILDDIR}/libnccl-net-example.so: ${SRC_FILES}
@printf "Compiling %-35s > %s\n" $< $@
@mkdir -p ${BUILDDIR}
$(CC) -Inccl -fPIC -shared -o $@ $^
clean:
rm -f $(PLUGIN_SO)
rm -f ${BUILDDIR}/libnccl-net-example.so