mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2895
Author: @oceanio
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:fix/metal-build-2860📝 Commits (1)
f112e1fmetal: the Mac engine builds and links again at 0.1.45 (#2860)📊 Changes
3 files changed (+107 additions, -2 deletions)
View changed files
📝
metal/include/metal_compat/cuda_runtime.h(+9 -1)📝
metal/src/engine/stubs.cpp(+1 -1)➕
metal/src/engine/stubs_145.cpp(+97 -0)📄 Description
Title
Issue: Resolves #2860
Summary
The Metal engine does not build at 0.1.45 (
477ac13): six CUDA calls are missing from metal_compat, and the linkmisses 21 kernel entry points. This adds them, the way stubs_144.cpp did for 0.1.44. Only files under metal/
change, so the CUDA, HIP and SYCL builds are untouched.
What changed
metal/include/metal_compat/cuda_runtime.h: the compute-capability attributes, the stream-priority calls,cudaMemcpyPeerandcudaDeviceDisablePeerAccessanswer "unsupported". verify.cpp's sm_75 test says no, theopt-in high-priority stream falls back to the default stream, and the peer-copy probe (#2666) keeps peer access off.
metal/src/engine/stubs_145.cpp(new): 21 entry points.fused_gr_persist_init(no-op; theVerifier calls it on every start, so a stopping stub would stop every start),
fused_gr_read_persist(false:fused_gr_read_multi),qsa_decode_attn_split(false: the plain attention), and the twoSTRATA_F16_RANGEreads.
hand-off, the mapped plan ring, the sm_75 q8_1 interleave,
STRATA_HC_REQ8, the FP16 prompt images and AVX2 rows.metal/src/engine/stubs.cpp:Gemm::bf16's stub takes 0.1.45'sx_f16argument (one line; the generated fileotherwise unchanged).
How it was checked
M5 Max, 128 GB, macOS 26.7.1, Command Line Tools 27.0 (Apple clang 21). Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S
(SC117's abliterated build), resident,
--spec 2with MTP. Compared against v0.1.44.1 on the same Mac, the twoservers run alternately:
The build adds no new warnings.
Extra Notes
Not tested: vision, contexts over 8K, the SSD-streamed experts (a Mac under ~96 GB), a long server run, and
other Apple chips.
res_patchstops if reached. It was not reached here, but I did not prove it cannot be.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.