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 | CARRIED_HOST_TESTS += test-codegen-moe-diff test-codegen-moe-sim |
| 3 | .PHONY: test-codegen-moe-diff test-codegen-moe-sim |
| 4 | CG_MOE_SRC ?= src/cudapp_om_cg_moe.c |
| 5 | CG_MOE2_SRC ?= src/cudapp_om_cg_moe2.c |
| 6 | CG_MOE_SCHED_SRC ?= src/cudapp_om_cg_moe_sched.c |
| 7 | CG_MOE_SRCS = src/omega_blackwell_codegen_moe.c src/omega_blackwell_codegen_moe2.c src/omega_blackwell_codegen.c src/omega_gpu_om_ir.c $(CG_MOE_SRC) $(CG_MOE2_SRC) $(CG_MOE_SCHED_SRC) src/cudapp_om_bw_enc_sm121.c src/omega_gpu_fmt.c src/sha256.c tests/codegen_moe_oracle.c tests/codegen_moe2_oracle.c |
| 8 | CG_MOE_SRCS += src/omega_cubin.c src/cudapp_om_cubin_elf.c src/cudapp_freest_core_cubinmsg.c src/cudapp_freest_core_cubadmit.c $(BW_CODEGEN_BINDING) |
| 9 | $(OUT_DIR)/codegen_moe_diff_test: tests/codegen_moe_diff_test.c $(CG_MOE_SRCS) | $(OUT_DIR) |
| 10 | $(CC) $(CFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections -o $@ $^ -lm |
| 11 | test-codegen-moe-diff: $(OUT_DIR)/codegen_moe_diff_test |
| 12 | ./$(OUT_DIR)/codegen_moe_diff_test |
| 13 | $(OUT_DIR)/codegen_moe_sim_test: tests/codegen_moe_sim_test.c $(CG_MOE_SRCS) | $(OUT_DIR) |
| 14 | $(CC) $(CFLAGS) -Itests -ffunction-sections -fdata-sections -Wl,--gc-sections -o $@ $^ -lm |
| 15 | test-codegen-moe-sim: $(OUT_DIR)/codegen_moe_sim_test |
| 16 | ./$(OUT_DIR)/codegen_moe_sim_test |