Fichiers
rocm-systems/projects/rccl/ext-tuner/example/test/Makefile
T
Ameya Keshava Mallya 42d84317cf Add 'projects/rccl/' from commit '1f2f9f33bac3e8ecfd84c69af6063d7352c362fc'
git-subtree-dir: projects/rccl
git-subtree-mainline: 3fd8a0d393
git-subtree-split: 1f2f9f33ba
2025-12-11 20:46:05 +00:00

31 lignes
582 B
Makefile

#
# Makefile for NCCL Tuner Plugin Unit Tests
#
CC := gcc
CFLAGS := -Wall -Wextra -g -std=c99 -fPIC
INC := -I. -I../nccl
TARGET := test_plugin
SOURCES := test_plugin.c
# Default target
all: $(TARGET)
# Build the test executable
$(TARGET): $(SOURCES)
$(CC) $(CFLAGS) $(INC) -o $(TARGET) $(SOURCES)
# Run the tests
test: $(TARGET)
./$(TARGET) $(TEST_CASE)
# Run tests with verbose output
test-verbose: $(TARGET)
NCCL_DEBUG=INFO ./$(TARGET) $(TEST_CASE)
# Clean build artifacts
clean:
rm -f $(TARGET) *.o *.gcov *.gcda *.gcno test_*.conf
.PHONY: all test test-verbose clean