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 / nvml.mk

21 lines · 949 bytes Raw Blame History
1# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
2# Seeded Omega NVML gate: the libnvidia-ml.so.1 generated from native/nvml/api.om by the
3# omega-bridge#83 C ABI emitter (OMEGA_CABI_BRIDGE, pinned by om/omega-bridge-cabi.lock),
4# the Omega fake-RM model and its mutants. No device access.
5.PHONY: test-nvml
6NVML_RUN := $(and $(filter 1,$(CUDAPP_OMC_HOST)),$(OMEGA_BRIDGE),$(OMEGA_CABI_BRIDGE))
7ifneq ($(NVML_RUN),)
8CARRIED_HOST_TESTS += test-nvml
9NVML_GATE := $(OUT_DIR)/nvml_gate
10$(NVML_GATE): tests/components/proc.om tests/nvml/gate.om tests/nvml/mutants.om tests/nvml/abi.om
11 @mkdir -p $(OUT_DIR)
12 cat $^ | "$(OMEGA_OMC)" > $@.tmp
13 chmod +x $@.tmp
14 mv $@.tmp $@
15test-nvml: $(NVML_GATE)
16 OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" OMEGA_CABI_BRIDGE="$(OMEGA_CABI_BRIDGE)" $(NVML_GATE)
17else
18test-nvml:
19 @echo "test-nvml: NOT_RUN (requires CUDAPP_OMC_HOST=1 with OMEGA_OMC, OMEGA_BRIDGE and OMEGA_CABI_BRIDGE)"
20 @exit 2
21endif