mirror of
https://github.com/lemonade-sdk/mac-amdgpu.git
synced 2026-11-23 04:29:26 -10:00
Implement coarse host pools, dynamic queue resources, discovery-based topology and ATOM clock queries. Correct R9700 two-array compute masks and NBIF ROM-bank access found during driver 188 validation. Build pinned HRX, Loom and LSE through reproducible macOS adapters. Add guarded HRX compute, queue resource and native CPU/GPU add/CAS controls and contention tests. Driver 189 hardware validation remains pending; no inference or general fine-grained atomic support is claimed.
15 lines
580 B
Bash
15 lines
580 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/amdgpu/amdgpu_clock.cpp').read_text()
|
|
Path('build/tests/gpu_clock_reader_under_test.inc').write_text(s[s.index('namespace amdgpu {'):])
|
|
PY
|
|
xcrun clang++ -std=c++20 -Wall -Wextra -Werror -fsanitize=address,undefined \
|
|
-I dext/amdgpu -I build/tests -I upstream/linux/drivers/gpu/drm/amd/include \
|
|
-I upstream/linux/drivers/gpu/drm/amd/include/asic_reg \
|
|
tests/gpu_clock_test.cpp -o build/tests/gpu-clock-test
|
|
build/tests/gpu-clock-test
|