Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/mk/leftovers.mk # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / mk / leftovers.mk` 22 lines · 1531 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 LEFTOVERS_DIR = $(OUT_DIR)/leftovers 3 LEFTOVERS_DEPS = tests/leftovers_test.c src/omega_path_check.h src/omega_numeric_lifecycle.h src/omega_gpu_q36_native.h src/cudapp_native.h src/cudapp_freest_leftovers.c src/cudapp_freest_pathcopy.c 4 .PHONY: test-leftovers test-leftovers-mutants test-leftovers-coverage 5 $(LEFTOVERS_DIR)/diff: $(LEFTOVERS_DEPS) 6 @mkdir -p $(LEFTOVERS_DIR) 7 $(CC) $(CFLAGS) -Isrc -o $@ tests/leftovers_test.c src/cudapp_freest_leftovers.c src/cudapp_freest_pathcopy.c 8 $(LEFTOVERS_DIR)/red: $(LEFTOVERS_DEPS) 9 @mkdir -p $(LEFTOVERS_DIR) 10 $(CC) $(CFLAGS) -Isrc -DLEFTOVERS_RED -o $@ tests/leftovers_test.c src/cudapp_freest_leftovers.c src/cudapp_freest_pathcopy.c 11 test-leftovers: $(LEFTOVERS_DIR)/diff $(LEFTOVERS_DIR)/red 12 $(LEFTOVERS_DIR)/diff 13 @if $(LEFTOVERS_DIR)/red > $(LEFTOVERS_DIR)/red.log 2>&1; then echo 'FAIL red differential survived'; exit 1; else echo 'LEFTOVERS RED PASS: deliberately unequal result refused'; fi 14 test-leftovers-mutants: 15 python3 tests/leftovers_mutants.py $(LEFTOVERS_DIR)/mutants 16 python3 tests/pathcopy_mutants.py $(LEFTOVERS_DIR)/pathcopy-mutants 17 test-leftovers-coverage: 18 @mkdir -p $(LEFTOVERS_DIR)/coverage 19 rm -f $(LEFTOVERS_DIR)/coverage/*.gcda 20 $(CC) $(CFLAGS) -O0 --coverage -DLEFTOVERS_ORACLE -Isrc -o $(LEFTOVERS_DIR)/coverage/diff tests/leftovers_test.c src/cudapp_freest_leftovers.c src/cudapp_freest_pathcopy.c 21 $(LEFTOVERS_DIR)/coverage/diff 22 gcov -b -c -t $(LEFTOVERS_DIR)/coverage/diff-leftovers_test.gcno