2018-11-13 10:37:20 -08:00
|
|
|
#
|
2019-03-14 19:39:20 -07:00
|
|
|
# Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved.
|
2018-11-13 10:37:20 -08:00
|
|
|
#
|
|
|
|
|
# See LICENSE.txt for license information
|
|
|
|
|
#
|
2025-06-18 10:34:47 -07:00
|
|
|
.DEFAULT_GOAL: build
|
|
|
|
|
include ../../makefiles/common.mk
|
|
|
|
|
SRCDIR ?= $(abspath ../..)
|
|
|
|
|
BUILDDIR ?= .
|
|
|
|
|
NCCLDIR := $(BUILDDIR)
|
2018-11-13 10:37:20 -08:00
|
|
|
|
2025-06-18 10:34:47 -07:00
|
|
|
SRC_FILES := $(wildcard *.c)
|
2018-11-13 10:37:20 -08:00
|
|
|
|
2025-06-18 10:34:47 -07:00
|
|
|
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 $@ $^
|
2018-11-13 10:37:20 -08:00
|
|
|
|
|
|
|
|
clean:
|
2025-06-18 10:34:47 -07:00
|
|
|
rm -f ${BUILDDIR}/libnccl-net-example.so
|