Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/mk/codegen-tern.mk # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / mk / codegen-tern.mk` 22 lines · 1759 bytes Raw Blame History 1 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 2 # Host-only: no driver or device objects. 3 CARRIED_HOST_TESTS += test-codegen-tern-diff 4 .PHONY: test-codegen-tern-diff 5 CG_TERN_SRC ?= src/cudapp_om_cg_tern.c 6 CG_TERN_SCHED_SRC ?= src/cudapp_om_cg_tern_sched.c 7 CG_TERN_HOST_SRCS = src/omega_blackwell_codegen_tern.c src/omega_blackwell_codegen.c src/omega_gpu_om_ir.c $(CG_TERN_SRC) $(CG_TERN_SCHED_SRC) src/cudapp_om_cg_tern_policy.c src/cudapp_om_bw_enc_sm121.c src/omega_gpu_fmt.c src/sha256.c $(BW_CODEGEN_BINDING) src/cudapp_om_apish_shp.c src/cudapp_om_ar_tern.c src/cudapp_om_ar_segb.c 8 $(OUT_DIR)/codegen_tern_diff_test: tests/codegen_tern_diff_test.c $(CG_TERN_HOST_SRCS) | $(OUT_DIR) 9 $(CC) $(CFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections -o $@ $^ -lm 10 test-codegen-tern-diff: $(OUT_DIR)/codegen_tern_diff_test 11 ./$(OUT_DIR)/codegen_tern_diff_test 12 13 # Optional existing simulator/algebra oracle; never part of the production build. 14 .PHONY: test-codegen-tern-sim test-codegen-tern-mutants 15 test-codegen-tern-sim: | $(OUT_DIR) 16 test -n "$(OMEGA_MV)" 17 test "$$(git -C "$(OMEGA_MV)" rev-parse HEAD)" = `e5b32567a7aff3ce594e3254a622a846a6cd190b` 18 git -C "$(OMEGA_MV)" diff --quiet HEAD -- tests/gpu_tern_test.c src/algebra/realize_common.c src/algebra/realize_common.h 19 $(CC) $(CFLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections -ffp-contract=off -I"$(OMEGA_MV)/src" -DOMEGA_TERN_REFERENCE='"$(OMEGA_MV)/tests/gpu_tern_test.c"' -o $(OUT_DIR)/codegen_tern_sim_test tests/codegen_tern_sim_test.c $(OMEGA_MV)/src/algebra/realize_common.c src/omega_gpu_tern_api.c $(CG_TERN_HOST_SRCS) -lpthread -lm 20 ./$(OUT_DIR)/codegen_tern_sim_test 21 test-codegen-tern-mutants: $(OUT_DIR)/codegen_tern_diff_test 22 python3 om/codegen/tern_mutants.py