Skip to content

[Feature] Option to enable optimization on Vulkan Shader generation #1904

Description

@DNDEBUG

Feature Summary

option to add "-O" on for glslc

Detailed Description

I checked the code on ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp and noticed it did not have the option -O for glslc
i added it and recompiled, on my tests it cut 1/3 and in some cases even 1/2 of the time
my idea is to add an option in cmake to add this glslc optimization

Alternatives you considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions