Files
mac-amdgpu/scripts/test-aql-queue-rpc.sh
geramyloveless 5d0a2dcec6 Add persistent HSA queues and GPU-backed shared signal operations
Reserve seven owned legacy compute queues, route HSA doorbells through the driver, and retain queue memory until verified removal or reset. Execute CPU updates to GPU-visible signals through a shared GPU atomic executor to avoid unsupported host/GPU atomic RMW interoperability.

Add queue ownership, lifecycle, failure propagation and transport regression coverage plus hardware tests for ring wraparound, barriers and concurrent signal updates. Record passed sequential signal hardware checks and the pending build 185 persistent-queue validation.
2026-09-23 13:33:54 -07:00

15 lines
548 B
Bash

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p build/tests
python3 - <<'PY'
from pathlib import Path
s=Path('dext/MacAMDGPU.cpp').read_text()
a=s.index(' case kMacAMDGPUMethodAQLQueueCreate:')
b=s.index(' case kMacAMDGPUMethodAQLDispatch:',a)
Path('build/tests/aql_queue_rpc.inc').write_text(s[a:b])
PY
xcrun clang++ -std=c++20 -Wall -Wextra -Werror -fsanitize=address,undefined \
-fno-sanitize-recover=all -I build/tests tests/aql_queue_rpc_test.cpp -o build/tests/aql-queue-rpc-test
build/tests/aql-queue-rpc-test