interplane.Get Omega
Read in your language

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

branch main Branches Tags History

CUDApp / mk / codegen-rest.mk

39 lines · 1835 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2CARRIED_HOST_TESTS += test-codegen-rest
3.PHONY: test-codegen-rest
4# The Omega mutants run the seeded converter, which executes the pinned AArch64
5# omc. Off a CUDAPP_OMC_HOST the differential and coverage still run.
6test-codegen-rest:
7 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" CODEGEN_REST_BINDING="$(BW_CODEGEN_BINDING) src/sha256.c" \
8 python3 tests/codegen_rest_check.py --coverage $(if $(CUDAPP_OMC_HOST),--mutants) --build-dir $(OUT_DIR)/codegen-rest
9 $(if $(CUDAPP_OMC_HOST),,@echo "test-codegen-rest: Omega mutants NOT_RUN (requires the pinned AArch64 omc)")
10
11.PHONY: test-codegen-rest-sim
12test-codegen-rest-sim: $(OUT_DIR)/gpu_decode_attn256_test $(OUT_DIR)/gpu_prefill_attn256_test $(OUT_DIR)/gpu_router_test $(OUT_DIR)/gpu_fp8gemm_test $(OUT_DIR)/gpu_bf16_gemv_test $(OUT_DIR)/gpu_qgemm_test
13 $(GPU_DATTN256_TEST) --host-only
14 $(GPU_DATTN256_TEST) --sim
15 $(GPU_PATTN256_TEST) --host-only
16 $(GPU_PATTN256_TEST) --sim
17 $(GPU_ROUTER_TEST) --host-only
18 $(GPU_ROUTER_TEST) --sim
19 $(GPU_FP8GEMM_TEST) --host-only
20 $(GPU_FP8GEMM_TEST) --sim
21 $(GPU_BF16_TEST) --host-only
22 $(GPU_BF16_TEST) --sim
23 $(GPU_QGEMM_TEST) --host-only
24 $(GPU_QGEMM_TEST) --sim
25
26CARRIED_HOST_TESTS += test-om-ir-limit
27.PHONY: test-om-ir-limit
28test-om-ir-limit:
29 $(CC) $(CFLAGS) -D_GNU_SOURCE -ffunction-sections -fdata-sections -Isrc \
30 tests/gpu_om_ir_limit_test.c src/omega_gpu_om_ir.c src/omega_blackwell_codegen.c $(CUDAPP_BINDING_SRCS) \
31 -Wl,--gc-sections -o /tmp/cudapp-om-ir-limit
32 /tmp/cudapp-om-ir-limit
33
34CARRIED_HOST_TESTS += test-codegen-fixture-rest
35CUDAPP_TARGET_ONLY_TESTS += $(if $(CUDAPP_OMC_HOST),,test-codegen-fixture-rest)
36.PHONY: test-codegen-fixture-rest
37test-codegen-fixture-rest:
38 @$(CUDAPP_REQUIRE_OMC)
39 python3 tests/om_fixture_verify_test.py