interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

branch main Branches Tags History

physics-mv / tests / run_nvrm_lifecycle_gates.sh

32 lines · 1103 bytes Raw Blame History
1#!/bin/bash
2# tests/run_nvrm_lifecycle_gates.sh -- M19R nvrm_free()/wait_marker_ge() lifecycle gates.
3set -euo pipefail
4
5SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)
6REPO_ROOT=$(cd "$SCRIPT_DIR/.." && pwd -P)
7. "$SCRIPT_DIR/gb10_lock.sh"
8
9cd "$REPO_ROOT"
10
11echo "=== M19R NVRM Lifecycle Gates ==="
12echo "Timestamp: $(date -u +"%Y-%m-%dT%H:%M:%SZ")"
13echo "Host: $(uname -n) ($(uname -m))"
14
15mkdir -p build
16echo -e "\n[*] Building lifecycle_gates..."
17gcc -O2 -Wall -Wextra -Werror \
18 -I./nvrm -I./m16 \
19 -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc \
20 -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc \
21 -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm \
22 -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include \
23 nvrm/nvrm.c m16/m16_native.c nvrm/lifecycle_gates.c -o build/lifecycle_gates
24
25echo " lifecycle_gates built cleanly."
26
27echo -e "\n[*] Running lifecycle_gates under GPU lock ($GB10_LOCK)..."
28gb10_lock_acquire
29./build/lifecycle_gates
30gb10_lock_release
31
32echo -e "\n=== M19R NVRM Lifecycle Gates: done ==="