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
| 1 | # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 2 | # Numeric reference migration to Omega (om/numeric/numeric.om, om/numeric/tile.om); knob CUDAPP_NUMERIC in mk/ampere-cubin.mk. |
| 3 | # C-vs-Omega differential of the numeric reference (om/numeric/numeric.om, tile.om): every public function runs |
| 4 | # both and aborts on a bit difference; tools/numeric_om_mutants.sh shows a broken Omega unit is caught. |
| 5 | |
| 6 | # The archive objects need the same rounding contract as the direct test links. |
| 7 | # Append even when callers supply CFLAGS, so a prior contraction flag cannot win. |
| 8 | $(addprefix $(OUT_DIR)/,$(notdir $(NUMERIC_SRCS:.c=.o))): override CFLAGS += -ffp-contract=off |
| 9 | .PHONY: test-numeric-om-diff |
| 10 | $(AMPERE_CUBIN_DIR)/numeric-om-diff: tests/numeric_om_diff_test.c $(NUMERIC_SRCS) $(NUMERIC_DEPS) |
| 11 | @mkdir -p $(AMPERE_CUBIN_DIR) |
| 12 | $(CC) $(CFLAGS) -Isrc -ffp-contract=off -ffunction-sections -fdata-sections -Wl,--gc-sections -DCUDAPP_MIGRATION_PENDING_C_NUMERIC_DIFF -o $@ tests/numeric_om_diff_test.c $(NUMERIC_SRCS) -lm |
| 13 | |
| 14 | test-numeric-om-diff: $(AMPERE_CUBIN_DIR)/numeric-om-diff |
| 15 | $(AMPERE_CUBIN_DIR)/numeric-om-diff |
| 16 | |
| 17 | .PHONY: test-numeric-om-mutants |
| 18 | test-numeric-om-mutants: |
| 19 | @$(CUDAPP_REQUIRE_OMC) |
| 20 | sh tools/numeric_om_mutants.sh |
| 21 | |
| 22 | CARRIED_HOST_TESTS += test-numeric-om-diff |
| 23 | CARRIED_HOST_TESTS += test-numeric-om-mutants |
| 24 | # Both numeric mutant runners regenerate units with the pinned AArch64 omc. |
| 25 | CUDAPP_TARGET_ONLY_TESTS += $(if $(CUDAPP_OMC_HOST),,test-numeric-om-mutants test-numeric-rest-om-mutants) |
| 26 | |
| 27 | .PHONY: test-numeric-rest-om-diff |
| 28 | $(AMPERE_CUBIN_DIR)/numeric-rest-om-diff: tests/numeric_rest_om_diff_test.c $(NUMERIC_SRCS) $(NUMERIC_DEPS) src/omega_blackwell_qmd.c src/omega_blackwell_qmd.h src/cudapp_om_bw_qmd.c |
| 29 | @mkdir -p $(AMPERE_CUBIN_DIR) |
| 30 | $(CC) $(CFLAGS) -Isrc -ffp-contract=off -ffunction-sections -fdata-sections -Wl,--gc-sections -DCUDAPP_MIGRATION_PENDING_C_NUMERIC_REST_DIFF -o $@ tests/numeric_rest_om_diff_test.c $(NUMERIC_SRCS) src/omega_blackwell_qmd.c src/cudapp_om_bw_qmd.c -lm |
| 31 | |
| 32 | test-numeric-rest-om-diff: $(AMPERE_CUBIN_DIR)/numeric-rest-om-diff |
| 33 | $(AMPERE_CUBIN_DIR)/numeric-rest-om-diff |
| 34 | |
| 35 | CARRIED_HOST_TESTS += test-numeric-rest-om-diff |
| 36 | |
| 37 | .PHONY: test-numeric-rest-om-mutants |
| 38 | test-numeric-rest-om-mutants: |
| 39 | @$(CUDAPP_REQUIRE_OMC) |
| 40 | sh tools/numeric_rest_om_mutants.sh |
| 41 | |
| 42 | CARRIED_HOST_TESTS += test-numeric-rest-om-mutants |