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 | # 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 |
| 6 | NVML_RUN := $(and $(filter 1,$(CUDAPP_OMC_HOST)),$(OMEGA_BRIDGE),$(OMEGA_CABI_BRIDGE)) |
| 7 | ifneq ($(NVML_RUN),) |
| 8 | CARRIED_HOST_TESTS += test-nvml |
| 9 | NVML_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 $@ |
| 15 | test-nvml: $(NVML_GATE) |
| 16 | OMEGA_OMC="$(OMEGA_OMC)" OMEGA_BRIDGE="$(OMEGA_BRIDGE)" OMEGA_CABI_BRIDGE="$(OMEGA_CABI_BRIDGE)" $(NVML_GATE) |
| 17 | else |
| 18 | test-nvml: |
| 19 | @echo "test-nvml: NOT_RUN (requires CUDAPP_OMC_HOST=1 with OMEGA_OMC, OMEGA_BRIDGE and OMEGA_CABI_BRIDGE)" |
| 20 | @exit 2 |
| 21 | endif |