Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Vulkan shader build system #9239

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

mtavenrath
Copy link
Contributor

@mtavenrath mtavenrath commented Aug 29, 2024

  • Add option to generate debug info for Vulkan shaders to provide shader source to Vulkan shader profiling tools

  • I have read the contributing guidelines

  • Self-reported review complexity:

    • Low
    • Medium
    • High

- Add dependency to vulkan-shaders-gen to rebuild shaders when changing the shader compilation utility.
- Add option to generate debug info for Vulkan shaders to provide shader source to Vulkan shader profiling tools
@mtavenrath mtavenrath changed the title Improve Vulkan shader builds system Improve Vulkan shader build system Aug 29, 2024
@mofosyne mofosyne added the Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix label Aug 30, 2024
@0cc4m 0cc4m self-requested a review September 4, 2024 08:53
@0cc4m
Copy link
Collaborator

0cc4m commented Sep 4, 2024

Can you add some information on how this can be used and with which tools? I assume one might be Nvidia Nsight?

@mtavenrath
Copy link
Contributor Author

I can confirm that NSight Graphics can utilize the debug information to match assembly to the actual GLSL source code line. I do not have any information about other profilers.

@0cc4m 0cc4m merged commit 8ebe8dd into ggerganov:master Sep 6, 2024
52 checks passed
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
* Improve Vulkan shader builds system

- Add dependency to vulkan-shaders-gen to rebuild shaders when changing the shader compilation utility.
- Add option to generate debug info for Vulkan shaders to provide shader source to Vulkan shader profiling tools

* remove not required self dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Review Complexity : Low Trivial changes to code that most beginner devs (or those who want a break) can tackle. e.g. UI fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants