Files
mac-amdgpu/scripts/sign-development.sh
geramyloveless 3fe89e1ace Scale GPU buffers and integrate validated HSA signals with LSE
Grow and reclaim BO metadata in64-entry pages, raise client capacity to4096 handles, and prevent VRAM free-range metadata exhaustion. Add GPU activity history, bounded sensor sampling and clock/counter reporting.

Select the qualified GPU-owned signal mailbox by default while gating native mixed atomics on original PCIe evidence. Include native HRX/LSE adapters, guarded compute tests, reproducible signing and local build/server guides linked to Lemon Seed Engine.

Hardware validation covers1024 live buffers with fragmented reuse, pooled HRX allocations and2GiB boundaries, shared signal lifecycle, Q6 projection and680 exact convolution outputs. Full-model token generation remains blocked on the missing Loom repeat template.
2026-09-23 17:52:41 -07:00

20 lines
926 B
Bash

#!/usr/bin/env bash
# Sign the development host and dext using the tested entitlement/runtime flags.
set -euo pipefail
repo_root="$(cd "$(dirname "$0")/.." && pwd)"
app_path="${1:-$repo_root/build/compute-smoke/Build/Products/Debug/MacAMDGPUHost.app}"
if [[ -z "${SIGN_IDENTITY:-}" ]]; then
echo 'Set SIGN_IDENTITY to your Apple Development identity (security find-identity -v -p codesigning).' >&2
exit 2
fi
dexts=("$app_path/Contents/Library/SystemExtensions/"*.dext)
[[ ${#dexts[@]} -eq 1 && -d "${dexts[0]}" ]] || {
echo "Expected one built dext inside $app_path" >&2; exit 2;
}
dext_path="${dexts[0]}"
codesign --force --sign "$SIGN_IDENTITY" -o library,runtime \
--entitlements "$repo_root/dext/Development.entitlements" "$dext_path"
codesign --force --sign "$SIGN_IDENTITY" --options 0 \
--entitlements "$repo_root/Host/Host.entitlements" "$app_path"
codesign --verify --deep --strict --verbose=2 "$app_path"