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

vulkan: compile a test shader in cmake to check for coopmat2 support #10713

Merged
merged 1 commit into from
Dec 8, 2024

Conversation

jeffbolznv
Copy link
Collaborator

I had assumed that Vulkan-Headers and shaderc would come from a matching Vulkan SDK (unless manually overridden), but it seems like some distros update them separately. That means we need a way to check whether glslc supports NV_cooperative_matrix2, and I don't know any other way than to do a test compile in cmake and parse the error output. Well, another option might be to use submodules and build shaderc, but that's a much bigger change.

This was reported at #10710 (comment) (but is not what the original bug is about).

@jeffbolznv jeffbolznv requested a review from 0cc4m December 8, 2024 01:34
@github-actions github-actions bot added Vulkan Issues specific to the Vulkan backend ggml changes relating to the ggml tensor library for machine learning labels Dec 8, 2024
Copy link
Collaborator

@0cc4m 0cc4m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix! I tested it with up-to-date headers and an old glslc. It worked fine for me.

@0cc4m 0cc4m merged commit ecc93d0 into ggerganov:master Dec 8, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

2 participants