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 / model-graphs.mk

23 lines · 1331 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2CARRIED_HOST_TESTS += test-model-graphs-om test-model-graphs-warp test-model-graphs-nested
3.PHONY: test-model-graphs-om test-model-graphs-warp test-model-graphs-nested
4MODEL_GRAPH_UNITS := $(wildcard src/cudapp_om_model_graph*.c)
5$(OUT_DIR)/model-graphs-check: tests/test_model_graphs_om.c $(MODEL_GRAPH_UNITS)
6 @mkdir -p $(OUT_DIR)
7 $(CC) $(filter-out -MMD -MP,$(CFLAGS)) -Isrc $^ -o $@
8$(OUT_DIR)/model-graphs-plans-check: tests/test_model_graphs_plans.c $(MODEL_GRAPH_UNITS)
9 @mkdir -p $(OUT_DIR)
10 $(CC) $(filter-out -MMD -MP,$(CFLAGS)) -Isrc $^ -o $@
11$(OUT_DIR)/model-graphs-warp-check: tests/test_model_graphs_warp.c $(OUT_DIR)/libomega_gpu.a
12 $(CC) $(CFLAGS) -Itests $^ -o $@ -lpthread -lm
13test-model-graphs-warp: $(OUT_DIR)/model-graphs-warp-check
14 $(OUT_DIR)/model-graphs-warp-check
15test-model-graphs-om: $(OUT_DIR)/model-graphs-check $(OUT_DIR)/model-graphs-plans-check $(OUT_DIR)/libomega_gpu.a
16 $(OUT_DIR)/model-graphs-check
17 $(OUT_DIR)/model-graphs-plans-check
18 CC="$(CC)" python3 tests/model_graphs_lists.py
19ifeq ($(CUDAPP_OMC_HOST),1)
20 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" CC="$(CC)" python3 om/graph/mutants.py
21endif
22test-model-graphs-nested: $(OUT_DIR)/libomega_gpu.a
23 OUT_DIR="$(OUT_DIR)" CC="$(CC)" python3 tests/model_graphs_nested.py