]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
metal: Handle null returned from MTLCreateSystemDefaultDevice() (llama/11441)
authorIhar Hrachyshka <redacted>
Mon, 27 Jan 2025 07:41:59 +0000 (02:41 -0500)
committerGeorgi Gerganov <redacted>
Wed, 29 Jan 2025 10:57:00 +0000 (12:57 +0200)
commitf02b99fb706aab57f2186845cb0e9ee49004fb1d
treeb6569c753dfce8b17a52e65830e36e1ae936e1de
parenta48097fda497f476d8fe40c4fb1c853f4245db63
metal: Handle null returned from MTLCreateSystemDefaultDevice() (llama/11441)

This fixes segmentation fault error when running tests when no metal
devices are available (for example, when not linked with Core Graphics
framework or otherwise).
src/ggml-metal/ggml-metal.m