Skip to content

fix(rocm): update Fence::wait and Fence::update signatures for MLX 243bdf09 - #2317

Merged
inureyes merged 2 commits into
mainfrom
fix/rocm-fence-pin-243bdf09
Oct 15, 2026
Merged

inureyes merged 2 commits into
mainfrom
fix/rocm-fence-pin-243bdf09

Conversation

@inureyes

Copy link
Copy Markdown
Member

Summary

  • Updates src/lib/mlxcelverse/overlays/rocm/mlx/backend/rocm/fence.cpp so Fence::wait(Stream, const array&, uint32_t value) waits on value (fence->event.wait(value)) and uint32_t Fence::update(Stream, const array&, bool) returns fence->count, matching upstream mlx/fence.h after the MLX 243bdf09 pin advance in update: advance MLX pin and reconcile backend ownership #2304 (9bfabbab).
  • Records mlx/backend/rocm/fence.cpp in src/lib/mlxcelverse/overlays/rocm/LOCAL_FIXES.md item 48 (Retarget compatibility at 243bdf09).

Test plan

  • make verify-rocm-overlay: records OK: 109 backend + 16 core files, 48 LOCAL_FIXES entries, 5 core files with a noted residual, pin 243bdf09, rocm_overlay_test: OK (29 checks).
  • make verify-rocm-held on gfx1151 (AMD Radeon 8060S Graphics): 12,384 passed, 0 failed, 411 ignored, rocm_smoke.sh OK (241.69 tok/s, 32 tokens).
  • unset LD_LIBRARY_PATH && ./target/release/mlxcel-server -m models/mlx/Qwen3-0.6B-4bit: starts cleanly on gfx1151 via DT_RPATH = [/opt/rocm/lib] and serves /health and /v1/chat/completions.

Refs #1801, #2303

…3bdf09

Update `mlx/backend/rocm/fence.cpp` so `Fence::wait` accepts the target `uint32_t value` (`fence->event.wait(value)`) and `Fence::update` returns `fence->count`, matching `mlx/fence.h` after the MLX `243bdf09` pin bump in #2304, and record the change in `LOCAL_FIXES.md` item 48.
@inureyes inureyes added status:done Completed type:bug Bug fixes, error corrections, or issue resolutions priority:high High priority area:core mlxcel-core: MLX FFI, primitives, KV cache, layers labels Oct 15, 2026
@inureyes
inureyes merged commit fe98588 into main Oct 15, 2026
@inureyes
inureyes deleted the fix/rocm-fence-pin-243bdf09 branch October 15, 2026 14:11
@inureyes inureyes added this to the 0.8 milestone Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:core mlxcel-core: MLX FFI, primitives, KV cache, layers priority:high High priority status:done Completed type:bug Bug fixes, error corrections, or issue resolutions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant