Skip to content

hardcode error codes on metal#7010

Merged
slaren merged 2 commits intoggml-org:masterfrom
bakkot:hardcode-codes
Apr 30, 2024
Merged

hardcode error codes on metal#7010
slaren merged 2 commits intoggml-org:masterfrom
bakkot:hardcode-codes

Conversation

@bakkot
Copy link
Copy Markdown
Contributor

@bakkot bakkot commented Apr 30, 2024

Hopefully fixes #7009, though I haven't reproduced the issue myself so can't confirm.

@slaren
Copy link
Copy Markdown
Member

slaren commented Apr 30, 2024

Would it be possible to use the localizedDescription property instead? I imagine that would work everywhere. https://developer.apple.com/documentation/metal/mtlcommandbuffererror/2887326-localizeddescription

@bakkot
Copy link
Copy Markdown
Contributor Author

bakkot commented Apr 30, 2024

Oh, sure, that's much nicer:

ggml_metal_graph_compute: command buffer 6 failed with status 5
error: Insufficient Memory (00000008:kIOGPUCommandBufferCallbackErrorOutOfMemory)

For some reason that's not documented on the Objective C docs (afaict), just the Swift ones, but accessing it in the obvious way does seem to work.

@slaren slaren merged commit f364eb6 into ggml-org:master Apr 30, 2024
@bakkot bakkot deleted the hardcode-codes branch April 30, 2024 15:14
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
phuongncn pushed a commit to phuongncn/llama.cpp-gx10-dgx-sparks-deepseekv4 that referenced this pull request Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nix build fails on apple silicon

2 participants