Files
rocm-systems/ext-profiler/example/Makefile
T

25 خطوط
612 B
Makefile

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
BUILDDIR ?= .
NCCLDIR := $(BUILDDIR)
2024-09-10 05:57:10 -07:00
2025-09-02 13:21:14 -07:00
SRC_FILES := $(wildcard *.cc)
DST_DIR := $(BUILDDIR)
OBJ_FILES := $(SRC_FILES:%.cc=${DST_DIR}/%.o)
DEP_FILES := $(OBJ_FILES:%.o=%.dep)
2024-09-10 05:57:10 -07:00
2025-09-02 13:21:14 -07:00
build: ${DST_DIR}/libnccl-profiler-example.so
2025-06-18 10:34:47 -07:00
2025-09-02 13:21:14 -07:00
${DST_DIR}/libnccl-profiler-example.so: ${SRC_FILES}
2025-06-18 10:34:47 -07:00
@printf "Compiling %-35s > %s\n" $< $@
2025-09-02 13:21:14 -07:00
@mkdir -p ${DST_DIR}
$(CXX) -Inccl -I${CUDA_INC} -fPIC -shared -o $@ $^
2024-09-10 05:57:10 -07:00
clean:
2025-09-02 13:21:14 -07:00
rm -f ${DST_DIR}/libnccl-profiler-example.so