mirror of
https://github.com/NVIDIA/nccl-tests.git
synced 2026-05-01 11:58:19 +08:00
Build option DSO=1 generates libverifiable.so which can be used to reduce the combined binary size. Build option NAME_SUFFIX can be used to a add suffix to all generated binaries. e.g. NAME_SUFFIX=_mpi Added new make target: clean_intermediates
30 lines
695 B
Makefile
30 lines
695 B
Makefile
#
|
|
# Copyright (c) 2015-2025, NVIDIA CORPORATION. All rights reserved.
|
|
#
|
|
# See LICENSE.txt for license information
|
|
#
|
|
include ../src/common.mk
|
|
|
|
.PHONY: all clean
|
|
|
|
BUILDDIR := $(abspath ../build)
|
|
NCCLDIR := $(BUILDDIR)
|
|
NVCUFLAGS += -I$(NCCLDIR)/include/ -I../include
|
|
DST_DIR := $(BUILDDIR)/verifiable
|
|
|
|
all: $(DST_DIR)/self_test
|
|
|
|
clean:
|
|
rm -rf $(DST_DIR)
|
|
|
|
TEST_VERIFIABLE_SRCDIR := .
|
|
TEST_VERIFIABLE_BUILDDIR := $(DST_DIR)
|
|
include verifiable.mk
|
|
|
|
self_test: $(DST_DIR)/self_test
|
|
|
|
$(DST_DIR)/self_test: main.cu $(TEST_VERIFIABLE_LIBS)
|
|
@printf "Linking %s\n" $@
|
|
@mkdir -p $(DST_DIR)
|
|
$(NVCC) -o $@ $(NVCUFLAGS) $< -L$(TEST_VERIFIABLE_BUILDDIR) -lverifiable $(NVLDFLAGS) -Xlinker "-rpath=\$$ORIGIN"
|