mirror of
https://github.com/lemonade-sdk/mac-amdgpu.git
synced 2026-11-23 04:29:26 -10:00
Restore power and average GFX meters, display clock telemetry and DPM ranges, and use rolling GRBM activity for GPU load. Add passive activity, cached SMU and GFX specification metrics contracts with matching monitor decoding and regression checks. Fix SQ shared-buffer ownership across clients and synchronize the canonical LSE adapter with qualified default paths, inactive alternatives, cache identities and profiler fixes. Advance the driver build to 204 and record performance and perplexity evidence with actual target counts.
28 lines
1.4 KiB
Bash
28 lines
1.4 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mkdir -p build/tests build/ModuleCache
|
|
python3 - <<'PY'
|
|
from pathlib import Path
|
|
host = Path('Host/MacAMDGPUHostApp.swift').read_text()
|
|
start = host.index('private struct DriverRuntimeIdentity:')
|
|
end = host.index('// MARK: - User-client selectors', start)
|
|
identity = host[start:end]
|
|
start = host.index(' nonisolated private static func probeRuntime(')
|
|
end = host.index(' private func startRuntimeVerification()', start)
|
|
probe = host[start:end].replace('nonisolated private static func', 'static func', 1)
|
|
test = Path('tests/runtime_identity_test.swift').read_text()
|
|
test = test.replace('// PRODUCTION_IDENTITY', identity).replace('// PRODUCTION_PROBE', probe)
|
|
Path('build/tests/runtime_identity_test.swift').write_text(test)
|
|
source = Path('dext/MacAMDGPU.cpp').read_text()
|
|
start = source.index(' case kMacAMDGPUMethodRuntimeBuild: {')
|
|
end = source.index(' case ', start + 1)
|
|
Path('build/tests/runtime_selector_under_test.inc').write_text(source[start:end])
|
|
PY
|
|
xcrun swiftc -swift-version 5 -module-cache-path build/ModuleCache \
|
|
build/tests/runtime_identity_test.swift -o build/tests/runtime-identity-test
|
|
build/tests/runtime-identity-test
|
|
xcrun clang++ -std=c++20 -Wall -Wextra -Werror -fsanitize=address,undefined \
|
|
-I build/tests tests/runtime_selector_test.cpp -o build/tests/runtime-selector-test
|
|
build/tests/runtime-selector-test
|