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 | # Seeded list policy; no device is opened by these host and simulator checks. |
| 3 | CUDAPP_MIGRATION_PENDING_CMDLIST ?= 0 |
| 4 | ifeq ($(CUDAPP_MIGRATION_PENDING_CMDLIST),1) |
| 5 | CFLAGS += -DCUDAPP_MIGRATION_PENDING_CMDLIST=1 |
| 6 | endif |
| 7 | OM_CMDLIST_DIR = $(OUT_DIR)/om-cmdlist |
| 8 | OM_CMDLIST_TEST = $(OM_CMDLIST_DIR)/planner |
| 9 | CARRIED_HOST_TESTS += test-om-cmdlist |
| 10 | OM_CMDLIST_BINDINGS = src/cudapp_om_cmdlist_record.c src/cudapp_om_cmdlist_plan.c src/cudapp_om_cmdlist_layout.c src/cudapp_om_bw_qmd.c |
| 11 | $(OM_CMDLIST_TEST): tests/cmdlist_plan_test.c $(OM_CMDLIST_BINDINGS) src/omega_blackwell_qmd.c src/cudapp_native.h |
| 12 | @mkdir -p $(OM_CMDLIST_DIR) |
| 13 | $(CC) $(CFLAGS) -o $@ tests/cmdlist_plan_test.c $(OM_CMDLIST_BINDINGS) src/omega_blackwell_qmd.c |
| 14 | $(OM_CMDLIST_DIR)/sim: tests/cmdlist_sim_test.c src/cudapp_om_cmdlist_plan.c $(OUT_DIR)/libomega_gpu.a |
| 15 | @mkdir -p $(OM_CMDLIST_DIR) |
| 16 | $(CC) $(CFLAGS) -ffp-contract=off -Itests -o $@ tests/cmdlist_sim_test.c src/cudapp_om_cmdlist_plan.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm |
| 17 | $(OM_CMDLIST_DIR)/shell: tests/cmdlist_shell_test.c src/omega_gpu_cmdlist.c $(OUT_DIR)/libomega_gpu.a |
| 18 | $(CC) $(CFLAGS) -o $@ tests/cmdlist_shell_test.c $(OUT_DIR)/libomega_gpu.a -lpthread -lm |
| 19 | $(OM_CMDLIST_DIR)/cost: tests/cmdlist_cost_test.c src/cudapp_om_cmdlist_plan.c |
| 20 | @mkdir -p $(OM_CMDLIST_DIR) |
| 21 | $(CC) $(CFLAGS) -o $@ tests/cmdlist_cost_test.c src/cudapp_om_cmdlist_plan.c |
| 22 | .PHONY: test-om-cmdlist |
| 23 | test-om-cmdlist: $(OM_CMDLIST_TEST) $(OM_CMDLIST_DIR)/sim $(OM_CMDLIST_DIR)/shell $(OM_CMDLIST_DIR)/cost |
| 24 | ./$(OM_CMDLIST_TEST) |
| 25 | ./$(OM_CMDLIST_DIR)/sim |
| 26 | ./$(OM_CMDLIST_DIR)/shell |
| 27 | ./$(OM_CMDLIST_DIR)/cost |
| 28 | test-om-cmdlist-mutants: $(OM_CMDLIST_TEST) $(OM_CMDLIST_DIR)/sim |
| 29 | python3 tests/check_cmdlist_mutants.py |
| 30 | .PHONY: test-om-cmdlist-mutants |