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 | # Issue #205: the C encoder's BW_IR_LDG_MMIO word, pinned and read through Mesa NAK's sm_80+ memory-access fields |
| 3 | # (tests/bw_ldg_mmio_test.c). The red check feeds omega-mv's word (w[2] 0x0c0e1900, LDG.E.EF) to the same contract |
| 4 | # check and requires it to fail. Host only; GB10 behaviour NOT_RUN. Picked up by the `-include mk/*.mk` line. |
| 5 | BW_LDG_MMIO_TEST = $(OUT_DIR)/bw_ldg_mmio_test |
| 6 | $(BW_LDG_MMIO_TEST): tests/bw_ldg_mmio_test.c src/omega_blackwell_codegen.h src/omega_sm121_disasm.h $(OUT_DIR)/libomega_gpu.a |
| 7 | $(CC) $(CFLAGS) -o $@ tests/bw_ldg_mmio_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm |
| 8 | |
| 9 | .PHONY: test-bw-ldg-mmio |
| 10 | test-bw-ldg-mmio: $(BW_LDG_MMIO_TEST) |
| 11 | $(BW_LDG_MMIO_TEST) |
| 12 | @if $(BW_LDG_MMIO_TEST) --word 0x0c0e1900; then \ |
| 13 | echo "RED CHECK BROKEN: the EF word kept the LDG_MMIO contract"; exit 1; \ |
| 14 | else rc=$$?; test "$$rc" = 1 || exit "$$rc"; \ |
| 15 | echo "red check: omega-mv's LDG.E.EF word FAILS the LDG_MMIO contract, as it must"; fi |
| 16 | CARRIED_HOST_TESTS += test-bw-ldg-mmio |