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 / dx-d8.mk

20 lines · 1315 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Developer bar D8 (docs/issues/D8-process-tax.md): what a CUDA++ process costs beyond its own buffers.
3# tests/d8_process_tax.om holds the bar and the negative controls; tests/d8_lib.om is its shared part. Both
4# compile with the pinned seeded omc (OMEGA_OMC, omega-mv e5b32567), so off a CUDAPP_OMC_HOST the rows print NOT_RUN.
5# d8-process-tax-dry-run host only, in bwrap with the GPU devices hidden; never opens a device
6# d8-process-tax GB10: takes one spark-window lease (gb10 exclusive) and measures inside it
7D8_HELLO = $(abspath $(OUT_DIR))/hello_gpu $(abspath $(OUT_DIR))/hello_gpu_control
8$(OUT_DIR)/d8_process_tax $(OUT_DIR)/d8_mutants: $(OUT_DIR)/d8_%: tests/d8_lib.om tests/d8_%.om
9 @mkdir -p $(@D)
10 cat $^ > $@.om
11 "$(OMEGA_OMC)" < $@.om > $@.tmp
12 chmod +x $@.tmp
13 mv $@.tmp $@
14.PHONY: d8-process-tax-dry-run d8-process-tax
15d8-process-tax-dry-run: $(if $(CUDAPP_OMC_HOST),$(OUT_DIR)/d8_process_tax) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control
16 @$(CUDAPP_REQUIRE_OMC)
17 $(OUT_DIR)/d8_process_tax dry-run "$(D8_OUT)" $(D8_HELLO)
18d8-process-tax: $(if $(CUDAPP_OMC_HOST),$(OUT_DIR)/d8_process_tax) $(OUT_DIR)/hello_gpu $(OUT_DIR)/hello_gpu_control
19 @$(CUDAPP_REQUIRE_OMC)
20 $(OUT_DIR)/d8_process_tax gpu "$(D8_OUT)" $(D8_HELLO)