Skip to content

Vulkan: maxComputeWorkGroupCount error (Intel GPU & Adreno GPU) #489

Closed

Description

@guranu

So i was testing irodori 600m voice design model and while generating i got this error:

GGML_ASSERT(wg0 <= ctx->device->properties.limits.maxComputeWorkGroupCount[0] && wg1 <= ctx->device->properties.limits.maxComputeWorkGroupCount[1] && wg2 <= ctx->device->properties.limits.maxComputeWorkGroupCount[2]) failed

After doing some research i found out that the this a vulkan driver limit that some intel-arc gpus suffer from as well:
ggml-org/llama.cpp#28247

There's also a workaround in the same issue:
ggml-org/llama.cpp#28247 (comment)

And a PR that hasn't been reviewed:
ggml-org/llama.cpp#28592

Would it be possible the workaround into audio.cpp?

Logs:

./audiocpp_server --config server.json --ui
audio.cpp is optimized for CUDA. The vulkan server backend is intended for portability and testing, but performance and model coverage may be lower than CUDA.
[warning][model_spec] GGUF for family 'qwen3_tts' embeds a legacy model spec. Using the current schema-v1 model contract from the installed audio.cpp runtime for option validation. Regenerate the GGUF to make the package fully standalone.
[warning][model_spec] GGUF for family 'voxcpm2' embeds a legacy model spec. Using the current schema-v1 model contract from the installed audio.cpp runtime for option validation. Regenerate the GGUF to make the package fully standalone.
audiocpp_server listening on http://127.0.0.1:8080
ggml_vulkan: Found 1 Vulkan devices:
ggml_vulkan: 0 = Adreno (TM) 830 (turnip Mesa driver) | uma: 1 | fp16: 1 | bf16: 0 | warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none
/data/data/com.termux/files/home/audio.cpp/external/ggml/src/ggml-vulkan/ggml-vulkan.cpp:6821: GGML_ASSERT(wg0 <= ctx->device->properties.limits.maxComputeWorkGroupCount[0] && wg1 <= ctx->device->properties.limits.maxComputeWorkGroupCount[1] && wg2 <= ctx->device->properties.limits.maxComputeWorkGroupCount[2]) failed
0: 0x61e82c0e68
1: 0x61e82c0e28
2: 0x61e82d6514
3: 0x61e8289488
4: 0x61e82753a4
5: 0x61e82da618
6: 0x61e7d1844c
7: 0x61e7d18388
8: 0x61e7d0c220
9: 0x61e760f7a4
10: 0x61e7601558
11: 0x61e75f32a0
12: 0x61e75ebb98
13: 0x61e75ef7f0
14: 0x7873ebdc38
15: 0x7873eb00f8
Aborted                    ./audiocpp_server --config server.json --ui

Vulkaninfo:

vulkaninfo | grep -A3 maxComputeWorkGroupCount
'DISPLAY' environment variable not set... skipping surface info
        maxComputeWorkGroupCount: count = 3
                65535
                65535
                65535
--
        maxComputeWorkGroupCount: count = 3
                65535
                65535
                65535

Activity

  1. 0xShug0 commented on Sep 8, 2026

    @0xShug0
    Owner

    @guranu I can't reporduce the issue. Can you clarify the setting?

  2. 0xShug0 commented on Sep 8, 2026

    @0xShug0
    Owner

    BTW The blast radius is very high because this changes the shared Vulkan FILL kernel used by any model, not just Irodori or Qwen. I’d be more comfortable adopting this change if upstream confirms it works reliably.

  3. changed the title [-]Vulkan: maxComputeWorkGroupCount error[/-] [+]Vulkan: maxComputeWorkGroupCount error (Intel GPU)[/+] on Sep 8, 2026
  4. guranu commented on Sep 8, 2026

    @guranu
    Author

    @guranu I can't reporduce the issue. Can you clarify the setting?

    Image Image
  5. changed the title [-]Vulkan: maxComputeWorkGroupCount error (Intel GPU)[/-] [+]Vulkan: maxComputeWorkGroupCount error (Intel GPU & Adreno GPU)[/+] on Sep 8, 2026
  6. 0xShug0 commented on Sep 9, 2026

    @0xShug0
    Owner

    @guranu Do Intel and Adreno GPUs have the same maxComputeWorkGroupCount error? If so, I will hold until upstream has merged the PR. One possible workaround is to set duration_sec.

    I’ll reach out to a few people to see if anyone is interested in improving audio.cpp on mobile GPUs. Until then, there are no plans to actively fix mobile GPU-specific issues.

  7. guranu commented on Sep 9, 2026

    @guranu
    Author

    @guranu Do Intel and Adreno GPUs have the same maxComputeWorkGroupCount error? If so, I will hold until upstream has merged the PR. One possible workaround is to set duration_sec.

    I’ll reach out to a few people to see if anyone is interested in improving audio.cpp on mobile GPUs. Until then, there are no plans to actively fix mobile GPU-specific issues.

    Yes. Check vulkaninfo.

  8. guranu commented on Sep 10, 2026

    @guranu
    Author

    It's been merged, please add it.

  9. 0xShug0 commented on Sep 10, 2026

    @0xShug0
    Owner

    Great! Will do tomorrow.

  10. 0xShug0 commented on Sep 10, 2026

    @0xShug0
    Owner

    @guranu Merged!

  11. guranu commented on Sep 11, 2026

    @guranu
    Author

    Thx.

  12. guranu commented on Sep 11, 2026

    @guranu
    Author

    Please reopen the issue. It didn't help:

    ./audiocpp_cli --task vdes --family irodori_tts --model /sdcard/Download/vox_test/irodori-tts-v4-small-q8_0.gguf --backend vulkan --language ja --text "Aperture Science コンピューター制御トレーニングセン ターにようこそ。" --request-option instruction="30代半ばから年齢不詳の女性AIボイス。日本のアナウンサーのような明快で正確な語り口と、深夜のラジオ番組の司会者のような親密で、わずかに息遣いの感じられる声質を兼ね備えている。このキャラクターは、人間を実験対象と見なす受動的攻撃的な人工知能であり、礼儀正しくも上から目線で、感情を排しているが、その裏には抑圧された怒りとブラックユーモアの微妙な下心が潜んでいる。                                                      " --request-option no_ref=true --out test.wav                 ggml_vulkan: Found 1 Vulkan devices:                          ggml_vulkan: 0 = Adreno (TM) 830 (turnip Mesa driver) | uma: 1 | fp16: 1 | bf16: 0 | warp size: 64 | shared memory: 32768 | int dot: 0 | matrix cores: none                               /data/data/com.termux/files/home/audio.cpp/external/ggml/src/ggml-vulkan/ggml-vulkan.cpp:6821: GGML_ASSERT(wg0 <= ctx->device->properties.limits.maxComputeWorkGroupCount[0] && wg1 <= ctx->device->properties.limits.maxComputeWorkGroupCount[1] && wg2 <= ctx->device->properties.limits.maxComputeWorkGroupCount[2]) failed                                                      0: 0x62ab72f2a8                                               1: 0x62ab72f268
    2: 0x62ab744954                                               3: 0x62ab6f78d0
    4: 0x62ab6e3764
    5: 0x62ab748a58                                               6: 0x62ab128fc8                                               7: 0x62ab128f04
    8: 0x62ab11cd9c                                               9: 0x62aa9fe5c0
    10: 0x62aaa04180                                              11: 0x7a15ad6d64 __libc_init                                  Aborted
    
    git rev-parse --verify HEAD                 43833e8749f24466b680266e9d805b7d58386748
    

    I did rebuild it.

  13. 0xShug0 commented on Sep 11, 2026

    @0xShug0
    Owner

    @guranu Intel and Adreno GPU support are best effort only. Fixes and optimizations for them are not currently planned due to the lack of testing hardware. Some issues may also come from upstream GGML kernels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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