65 Commits
Author SHA1 Message Date
geramyloveless 99f17badeb Correct RDNA4 scalar prefetch address and span lowering 2026-09-30 00:13:53 -07:00
geramyloveless 2621a96367 Enable loop-invariant motion in the Loom compiler 2026-09-29 22:35:20 -07:00
geramyloveless e635baca4b Stage eligible matrix operands in the Loom compiler 2026-09-29 21:09:14 -07:00
geramyloveless 16efaa870b Support fragmented KV address tables in HRX and Loom 2026-09-29 17:53:51 -07:00
geramyloveless 32e23ab416 Reduce symbolic memo reset work during kernel compilation
Track entries populated by expressions and branch facts, clearing only their validity tags between proof scopes. Preserve allocation failure handling and reset isolation.

Six retained-KV attention sources compile 38.89 percent faster in a matched cold comparison and emit byte-identical code objects. Include the backport in the pinned macOS HRX build and add focused symbolic memo tests.
2026-09-28 13:01:42 -07:00
geramyloveless bf1fa17c1f Build current LSE directly and retire the legacy adapter patch 2026-09-28 01:19:30 -07:00
geramyloveless 43f0db6caa Sync LSE dispatch cleanup and default benchmark selection
Update the canonical LSE adapter to cc26de1 with central hardware and shape dispatch, retired temporary switches and preserved inactive kernel variants. Sync host test targets and benchmark selection metadata.

The adapter applies strictly to its pinned base and matches all 182 changed paths byte for byte. Existing benchmark results retain their recorded settings.
2026-09-27 20:57:49 -07:00
geramyloveless fde050c1b8 Restore GPU monitor telemetry and sync optimized engine paths
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.
2026-09-27 19:23:01 -07:00
geramyloveless e8e7c4911b Rebuild amdgpu_mtop as btop-style TUI per TUI-DESIGN-SPEC
Add tui.h: Braille 2x4 dot-matrix canvas, 8-level sub-cell bars,
TrueColor gradient bars (cyan->blue->yellow->orange->crimson),
rounded box-drawing borders, hotkey dispatch, y-scale/x-axis geometry.

Rewrite dashboard() in main.cpp to the spec layout:
  Section 1: header (model, CUs/SEs, build, sensors)
  Section 2: GPU CORE LOAD Braille chart (120 x, 5 rows)
  Section 3: VRAM/GTT sub-cell bars + POWER & SENSOR STATE
  Section 4: PERFORMANCE COUNTERS (GRBM / GRBM2)
  Section 5: GPU PROCESSES (fdinfo) -- documented n/a
  Footer:    [q] Quit [h] Interval [p] [m] [g] [r] hotkeys

Every metric is cited from live driver sources or rendered as a dim
n/a with the exact missing query. No driver code modified.

Add mtop-tui-test: Braille canvas, sub-cell bars, gradient stops,
y-scale geometry, hotkey dispatch, layout fit. Update
mtop-render-test for new layout invariants. Update PTY terminal
test footer assertion.

All 7 ctest suites + 3 PTY protocol tests pass.
2026-09-25 18:15:02 -07:00
geramyloveless affdb2604a Fix PTY text-mode assertion for block sparkline characters 2026-09-25 17:34:04 -07:00
geramyloveless 884f984661 Rework amdgpu_mtop: sparkline histories, delta-based utilization, 0.01/0.1 s refresh
Replace the Braille charts with Rust-amdgpu_top-style 8-level block
sparklines (▁▂▃▄▅▆▇█) showing 60 s history per metric: GPU utilization,
VRAM used, temperature, and the raw SMU AverageGfxActivity. Each row
carries the current value plus min/avg/max.

Wire the driver's software_stats pendingNs (cumulative dispatch-in-flight
union) into a true delta-based utilization row: (pendingNs delta) /
(wall window) clamped to 0-100%. The old SMU-only headline (documented
as 'idle can report 100%') is retained as a secondary reference row.

Refresh rates: slow 0.1 s (default), fast 0.01 s (was 0.5 s / 0.1 s).

Add a read-only QueryInfo tag-8 GFXSpecSnapshot query for chip geometry
(CU count, SE count) in the header; kIOReturnNotReady before GC
discovery is handled gracefully.

CPU-side unit tests: busyRatio edge cases (rollback, saturation, window
delta), sparkline known-series to expected bar strings (exact UTF-8
byte comparison), stats min/max/avg. Render tests updated for the new
layout. PTY test updated for the new refresh labels and block
characters.
2026-09-25 17:33:08 -07:00
geramyloveless 5c11b3ecf5 Promote qualified LSE allocation lifetimes and record experimental benchmarks
Update the Mac adapter to LSE 0.4.1 metadata and protect inplace allocation owners through alias readers. Include the regression in host checks and document matched throughput and passing 1K-request comparisons. Keep slower two-pass prefill and INT8 prefetch implementations experimental.
2026-09-24 08:50:15 -07:00
geramyloveless c878d1873b Release 0.1.96 with qualified Mac same-queue GPU barriers
Make eligible same-queue dependencies use standard AQL barriers while retaining software deferral for peer queues and pending host actions. Add resolver, packet and bounded hardware regression tools.

Record the matched 4.43 percent decode improvement and final default result of 17.51 TPS and 88.93 PP/s. Preserve unfinished matrix and INT8 work on testing branches. Bump the host and driver bundle to build 196.
2026-09-24 07:13:54 -07:00
geramyloveless 79a5f78c83 Integrate qualified vector Q6 prefill and device view validation 2026-09-24 03:41:48 -07:00
geramyloveless 02837d764f Report warmed Loom benchmarks and preserve JIT timing evidence 2026-09-24 03:27:10 -07:00
geramyloveless e437c2ca2a Integrate validated RMS and final-launch lifetime fixes 2026-09-24 03:01:12 -07:00
geramyloveless 9e12df98ca Invalidate shader caches for the loaded Loom compiler
Carry the tested compiler-image identity fix in the macOS adapter and run its loader-override regressions in regular builds. Record sub-operation diagnostic configuration in model smoke results.
2026-09-24 02:19:30 -07:00
geramyloveless 988aee1a25 Preserve FP32 subnormals in Loom GPU descriptors
Match binary descriptor modes to assembly metadata and add production-emitter parity coverage across supported targets. Record GPU regression evidence, prefill optimization results, and the remaining model repeatability investigation.
2026-09-24 02:10:08 -07:00
geramyloveless 381caffc4c Reuse available HRX slabs before growing the pool
Search older slabs after allocation hints miss while retaining alignment and dependency checks. Add production allocator regression coverage and configurable benchmark warmups with runtime provenance. Document repeated-model validation and current optimization qualification.
2026-09-24 01:40:30 -07:00
geramyloveless 3c8b78d82c Preserve public HRX error codes across IREE conversion
Map six omitted error codes instead of reporting generic internal errors. Exercise all public status codes and message ownership with production-code ASan/UBSan round trips. A controlled GPU callback failure now propagates ABORTED and shuts down cleanly.
2026-09-24 01:13:58 -07:00
geramyloveless 8a6fc27039 Record inference diagnostic settings in benchmark artifacts 2026-09-24 00:31:24 -07:00
geramyloveless d3fc145ae3 Organize profiler tools and documentation under tools/rocprofmac 2026-09-23 23:11:01 -07:00
geramyloveless b3b4c87b56 Add rocprofmac hardware dispatch timestamps and CPU sampling wrapper
Enable CP profiling only before first queue submission and reject changes on used queues. Read completed signal timestamps in the GPU clock domain without inventing host correlation. Add batched guarded qualification and bounded native Time Profiler invocation.
2026-09-23 23:11:01 -07:00
geramyloveless 7cbbdb59c8 Publish validated Q6 operand selection and inference measurements
Synchronize the Mac LSE adapter with shared OCP FP8 conversion, optional Q4 INT8 activation conversion, staged BF16 projection selection, and selected-kernel cache identity. Extend host checks and record final 87.28 PP/s and 12.61 TPS with numerical qualification limits.
2026-09-23 22:48:48 -07:00
geramyloveless 6f24602d32 Render pixel GPU charts with responsive observer sampling
Add Kitty and iTerm2 PNG charts, compact labeled clocks and sensors, differential terminal redraws, and background sampling. Replace refresh-dependent aggregate copy spikes with directional one-second completion rates and state their coverage. Validate rendering, input responsiveness, counter resets, and protocol framing.
2026-09-23 21:56:02 -07:00
geramyloveless 5b4475669d Promote validated Loom fusion and shared matrix support
Synchronize the macOS adapter with the qualified LSE implementation, expand host regressions, and document the completed 1024-input/1024-output Qwen run. Allow benchmark executables and exact input/output requirements to be selected explicitly.
2026-09-23 21:50:20 -07:00
geramyloveless 416b520de1 Accelerate decode attention with shared FP32 scores
Integrate the validated attention specialization and reusable guarded qualification tool. Preserve exact token IDs while improving PP64 decode from 6.76 to 12.12 tokens/s. Record the longer-context copy limitation separately.
2026-09-23 20:39:52 -07:00
geramyloveless 8fa37f8a2a Optimize Loom inference and qualify host waits and monitoring
Add Q6 panel reuse, pointwise fusion, compiler calibration and measured decode batching to the macOS LSE adapter. Preserve FP32 calculations and record exact MLX token comparisons and bounded performance evidence.

Add verified HRX transfer and owned-idle diagnostics, configurable blocked signal polling, and monitor graphs that distinguish stale or unreliable raw activity counters. Document reproduction, validation limits and remaining performance work.
2026-09-23 20:23:33 -07:00
geramyloveless 36adc47a9f Qualify repeated Qwen HTTP inference through native Loom and HRX
Carry bounded flash attention, private recurrent state, corrected decode metrics and graceful server shutdown into the reproducible macOS adapter. Add guarded flash and interleaved HTTP regression runners and expand compile-only prompt coverage.

Five GPU-only HTTP requests pass stable session reuse, timing checks and normal exit with driver stage 0. Update current status and local server/chat instructions with measured short-run rates and remaining limits.
2026-09-23 18:49:59 -07:00
geramyloveless 19ce7f6333 Run Qwen Q6 generation through native Loom and HRX
Complete repeat, recurrent state and paged attention lowering in the LSE adapter. Add numerical GPU checks and permanent coverage for 60 model operator/composition cases. Include the compiler regressions in the reproducible build and document local generation.

Validation: Qwen 27B Q6 generated 16 tokens using 42,785 GPU groups with zero CPU fallback, normal process exit and clean driver stage 0. GDN prefill-to-decode state carry, paged cache images, convolution tails and repeat passed numerical or exact-byte checks and memory guards. HTTP service qualification remains pending.
2026-09-23 18:16:01 -07:00
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
geramyloveless e1c42e730a Validate sustained CPU GPU ownership transfer
Add a separate SYSTEM-scope release/acquire ping-pong fixture with bounded cancellation, sequence-tagged payloads and full guards. Preserve the measured atomic contention shader and add host protocol failure regressions.

Driver 192 passed one million round trips and two million ownership transfers in 222.591321 seconds with zero payload errors and clean shutdown. Record the results and update the README to distinguish working ownership transfer from unsupported concurrent heterogeneous RMW.
2026-09-23 16:35:29 -07:00
geramyloveless 47192afa7d Fix PCI identity reads after open and validate requester A/B
Read and validate AMD identity after opening the PCI provider, unwind failed reads, and report precise requester preflight errors. Preserve general AMD device admission while keeping the requester experiment restricted to the tested endpoint.

Driver 192 completed the unchanged OFF/ON experiment with verified bit readback and restoration. Both settings lost concurrent CPU/GPU increments despite exact single-agent controls; record the measured counts and limits. Lifecycle and HSA regressions, signed Xcode build and app verification pass.
2026-09-23 16:16:42 -07:00
geramyloveless 8ec2e74656 Add isolated AtomicOp requester experiment and validate HRX compute
Save, change and verify only the endpoint requester bit under an exclusive idle session. Restore on explicit end and shutdown with readback, transaction draining and failure retention.

Compare unchanged staggered native atomic workloads with the requester off and on. Record driver190 mapping and contention measurements, verified scratch growth, and real HRX vector and matrix results. Correct HRX access grants for unmapped device memory.
2026-09-23 15:59:56 -07:00
geramyloveless 4f5531335c Fix architecture-selected scratch sizing and audit native atomics
Select scratch units and register limits from discovered GC capabilities. Correct gfx1201 wave stride and enforce the GFX12 DMA address limit.

Add owned mapping and endpoint PCIe diagnostics, serialized atomic handoff checks, returned-value validation, and asymmetric staggered contention tests. Complete HRX startup capability queries and document verified hardware results and remaining validation.
2026-09-23 15:37:53 -07:00
geramyloveless 46e8d1460f Add HRX host runtime and native atomic validation
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.
2026-09-23 15:06:25 -07:00
geramyloveless ee547bf779 Fix gfx1201 queue topology and SDMA ring wraparound
Map seven persistent queues across the two four-queue compute pipes and preserve monotonic 64-bit SDMA write pointers. Gate public queue capabilities on verified driver 187 support.

Validate all queue slots, multi-producer wraparound, two-process ownership and continued dispatch after peer exit, plus concurrent shader/CP/CPU-HSA signals. Record hardware results and remaining HRX integration requirements.
2026-09-23 14:14:33 -07:00
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
geramyloveless aa7dbdf016 Verify gfx1201 AQL dispatch and MES queue teardown
Add bounded owner-backed AQL launches with ROCr queue metadata and Linux compute MQDs. Reserve a compute slot and retain resources through acknowledged queue removal or verified reset.

VRAM and shared-memory hardware tests passed 128 and 256 outputs plus all allocation guards. Driver regressions and HSA sanitizer suites pass. Reorganize the README around working, unfinished and upcoming capabilities.
2026-09-23 12:45:54 -07:00
geramyloveless 55fdd2c18c Execute HSA-loaded gfx1201 kernels with shared shader memory 2026-09-23 12:22:31 -07:00
geramyloveless 48f7109107 Validate shared GPU memory and diagnose host atomic limitations 2026-09-23 11:31:44 -07:00
geramyloveless 1bbc1aa1f8 Implement AMD loader services and shared host memory transport
Provide the complete AMD loader 1.03 table with retained source storage, descriptor translations, loaded-object metadata and callback-safe enumeration. Verify loader behavior on the GPU after reader destruction.

Add a session-fixed GART host window, direct CPU DMA verification, GTT SDMA copies and equal-address IOKit mappings with collision rejection. Include a shared-memory hardware probe for build 182 and preserve faulted mappings until recovery. Shared HSA signals, hardware queues and inference remain incomplete pending the next hardware bringup steps.
2026-09-23 11:16:42 -07:00
geramyloveless 4aa945bcab Add HSA host services and reference-counted GPU memory sharing
Implement host virtual-memory aliases, page protections, overlapping locks, CPU cache queries and interprocess signals. Add GPU buffer export/import references that survive exporter process exit, with driver 181 hardware verification.

Resolve the remaining pinned HRX symbols while explicitly rejecting unsupported DMA-BUF, SVM and software-queue hardware controls. Record behavioral limits and fail the runtime-readiness audit independently of symbol coverage.

Validate eight sanitizer suites, 28 driver and tool regression scripts, two-process signal lifetime and full shared-GPU-buffer data checks.
2026-09-23 10:45:24 -07:00
geramyloveless 1318137951 Support shared GPU sessions and load HSA kernel executables
Keep PCI ownership in the driver and retire per-client resources without resetting active peers. Validate normal and abrupt client departure on hardware, with reset after the final participant exits.

Add gfx1201 ISA queries and bounded ELF executable loading with metadata, descriptor and relocation validation. Test upload failures, symbol lifetime and shutdown under sanitizers, and verify executable loading on hardware.
2026-09-23 10:05:34 -07:00
geramyloveless c626c0782b Implement HSA memory pools, staged GPU transfers and software queues
Add dependency-gated copies, checked allocation lifetimes, pointer metadata and queue index atomics. Use transient discovery clients and lazy firmware initialization for a runtime-owned GPU session. Verify production transport failure handling and record the successful guarded hardware round-trip.
2026-09-23 08:52:36 -07:00
geramyloveless 2409feb3c4 Correct gfx1201 dispatch shader and implement CPU HSA signals 2026-09-23 00:13:54 -07:00
geramyloveless bde3f99364 Add native compute dispatch and live VRAM allocation monitoring 2026-09-23 00:03:15 -07:00
geramyloveless ddfad8b9ea Add GPU-only VRAM buffers and bounded owned-buffer transfers
Separate model storage above BAR0 from visible staging allocations. Add checked upload/readback and synchronous SDMA copy endpoints, retain buffers after published copy failures, and provide a 22 GiB sampled transfer test.

Record two successful build 176 shader dispatches and allocation reuse. Report firmware interface 0x33 as unsupported by the verified 0x2e telemetry layout without treating compatibility rejection as a firmware fault.

Bump host and driver to 177. All 25 regression suites, the Debug build and strict signatures pass; new buffer hardware acceptance remains pending.
2026-09-22 23:41:56 -07:00
geramyloveless 0844f74f65 Select compute VMID through GFX IBs and expose cached SMU metrics
Submit each compute checkpoint through an explicitly addressed VMID 0 IB after build 175 faulted on shader instruction fetch under VMID 3. Retain distinct verified IB storage until completion or reset.

Retain SMU table staging and add bounded owner sampling with a cached observer ABI for amdgpu_mtop. Invalidate samples during teardown, reject stale data, and keep periodic collection disabled pending hardware validation.

Bump host and driver to 176, record hardware evidence, and pin the HSA interface requirements to the HRX revision used by LSE. All 24 regression suites, the Debug build and strict signatures pass.
2026-09-22 23:29:32 -07:00
geramyloveless e8040ae9b0 Add compute checkpoints and the native amdgpu_mtop monitor
Separate cache, register and shader completion fences to locate the first stalled phase. Capture CP fault state and distinguish missing readback from successful verification. Record the version 174 timeout and successful software recovery; bump to 0.1.75.

Add a standalone observer-only terminal dashboard with stable GPU selection and JSON snapshots. Validate the SMU 14.0.3 metrics decoder against the Linux ABI. Dynamic telemetry remains unavailable pending firmware collection integration.
2026-09-22 23:10:33 -07:00