Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 строка
582 B
Makefile
Исходник Постоянная ссылка Обычный вид История

2025-06-18 10:34:47 -07:00
#
# 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