Skip to content

whisper.cpp fails to initialize Metal on M5 Mac #3722

@richwaters

Description

@richwaters

On my M5 Mac (macOS 26.4, latest Xcode), the tensor API f16 test fails with "Compiler failed to build request":

ggml_metal_device_init: testing tensor API for f16 support
Compiler failed to build request
ggml_metal_library_init_from_source: error compiling source
ggml_metal_device_init: - the tensor API is not supported in this environment - disabling
ggml_metal_device_init: GPU family: MTLGPUFamilyApple10 (1010)
ggml_metal_device_init: GPU family: MTLGPUFamilyMetal4 (5002)
ggml_metal_device_init: has bfloat = true
ggml_metal_device_init: has tensor = false
ggml_metal_init: found device: Apple M5 Max

I can work around the issue setting GGML_METAL_TENSOR_DISABLE=1.

Environment:

  • whisper.cpp v1.8.4
  • macOS 26.4
  • Xcode 26.4
  • Hardware: Apple M5 Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions