Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/tests/run_nvrm_lifecycle_gates.sh # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / tests / run_nvrm_lifecycle_gates.sh` 36 lines · 1570 bytes Raw Blame History 1 #!/bin/bash 2 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 3 # tests/run_nvrm_lifecycle_gates.sh -- M19R nvrm_free()/wait_marker_ge() lifecycle gates. 4 set -euo pipefail 5 6 SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P) 7 REPO_ROOT=$(cd "$SCRIPT_DIR/.." && pwd -P) 8 . "$SCRIPT_DIR/gb10_lock.sh" 9 10 cd "$REPO_ROOT" 11 12 echo "=== M19R NVRM Lifecycle Gates ===" 13 echo "Timestamp: $(date -u +"%Y-%m-%dT%H:%M:%SZ")" 14 echo "Host: $(uname -n) ($(uname -m))" 15 16 mkdir -p build 17 echo -e "\n[*] Building lifecycle_gates..." 18 gcc -O2 -Wall -Wextra -Werror \ 19 -DCUDAPP_MIGRATION_PENDING_C_NVRM="${CUDAPP_MIGRATION_PENDING_C_NVRM:-0}" \ 20 -DCUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC="${CUDAPP_MIGRATION_PENDING_C_NVRM_ALLOC:-0}" \ 21 -I./src -I./nvrm -I./m16 \ 22 -I./third_party/nvidia-open-580.173.02/src/common/sdk/nvidia/inc \ 23 -I./third_party/nvidia-open-580.173.02/kernel-open/common/inc \ 24 -I./third_party/nvidia-open-580.173.02/kernel-open/nvidia-uvm \ 25 -I./third_party/nvidia-open-580.173.02/src/nvidia/arch/nvalloc/unix/include \ 26 nvrm/nvrm.c m16/m16_native.c nvrm/lifecycle_gates.c \ 27 -I./src src/omega_ampere_qmd.c src/omega_gpu_chip.c src/cudapp_om_amp_runtime.c src/cudapp_om_amp_qmd.c src/cudapp_om_eng.c src/cudapp_om_chip_admit.c src/cudapp_om_chip_enum.c src/cudapp_om_nvrm_*.c src/cudapp_om_fixture_text.c -o build/lifecycle_gates 28 29 echo " lifecycle_gates built cleanly." 30 31 echo -e "\n[*] Running lifecycle_gates under GPU lock ($GB10_LOCK)..." 32 gb10_lock_acquire 33 ./build/lifecycle_gates 34 gb10_lock_release 35 36 echo -e "\n=== M19R NVRM Lifecycle Gates: done ==="