2024-09-10 05:57:10 -07:00
|
|
|
#
|
|
|
|
|
# Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
|
#
|
|
|
|
|
# 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)
|
2024-09-10 05:57:10 -07:00
|
|
|
|
2025-06-18 10:34:47 -07:00
|
|
|
SRC_FILES := $(wildcard *.c)
|
2024-09-10 05:57:10 -07:00
|
|
|
|
2025-10-16 16:33:18 -05:00
|
|
|
build: ${BUILDDIR}/librccl-profiler.so
|
2025-06-18 10:34:47 -07:00
|
|
|
|
2025-10-16 16:33:18 -05:00
|
|
|
${BUILDDIR}/librccl-profiler.so: ${SRC_FILES}
|
2025-06-18 10:34:47 -07:00
|
|
|
@printf "Compiling %-35s > %s\n" $< $@
|
|
|
|
|
@mkdir -p ${BUILDDIR}
|
|
|
|
|
$(CC) -Inccl -fPIC -shared -o $@ $^
|
2024-09-10 05:57:10 -07:00
|
|
|
|
|
|
|
|
clean:
|
2025-10-16 16:33:18 -05:00
|
|
|
rm -f ${BUILDDIR}/librccl-profiler.so
|