Skip to content

fix(vulkan-shaders-gen): fail build when shader compile subprocess fails - #24921

Closed
Nueramarcos wants to merge 2 commits into
ggml-org:masterfrom
Nueramarcos:upstream/human-llama
Closed

fix(vulkan-shaders-gen): fail build when shader compile subprocess fails#24921
Nueramarcos wants to merge 2 commits into
ggml-org:masterfrom
Nueramarcos:upstream/human-llama

Conversation

@Nueramarcos

Copy link
Copy Markdown

Fixes #24393

execute_command() now propagates subprocess exit codes (POSIX waitpid / Windows GetExitCodeProcess). string_to_spv_func() records failures via compile_failed when the child exits non-zero, writes to stderr, or fails to launch. main() returns EXIT_FAILURE before write_output_files() so CMake stops instead of linking a silently broken libggml-vulkan.

Validated locally with g++ -std=c++17 -fsyntax-only. Build-time only; no runtime or shader output change. No GPU required.

Nueramarcos and others added 2 commits June 20, 2026 06:56
execute_command() now returns the child exit code (POSIX waitpid /
Windows GetExitCodeProcess). string_to_spv_func treats non-zero exit,
stderr output, or launch exceptions as failure via compile_failed.
main() returns EXIT_FAILURE before write_output_files() so CMake stops
instead of linking a silently broken libggml-vulkan.

Fixes ggml-org#24393
@Nueramarcos
Nueramarcos requested review from a team and ggerganov as code owners June 22, 2026 22:34
@github-actions github-actions Bot added Vulkan Issues specific to the Vulkan backend devops improvements to build systems and github actions ggml changes relating to the ggml tensor library for machine learning labels Jun 22, 2026
@0cc4m

0cc4m commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Already covered by #24450

@0cc4m 0cc4m closed this Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops improvements to build systems and github actions ggml changes relating to the ggml tensor library for machine learning Vulkan Issues specific to the Vulkan backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compile bug: vulkan: Failing to generate shaders does not stop build progress

2 participants