Skip to content

Conversation

jeffbolznv
Copy link
Collaborator

Fixes #16502.

@jeffbolznv jeffbolznv requested a review from 0cc4m as a code owner October 16, 2025 21:09
@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 Oct 16, 2025

std::string suffixes[2] = {"_f32", "_f16"};
for (auto op : {"add", "sub", "mul", "div", "add_rms"}) {
for (std::string op : {"add", "sub", "mul", "div", "add_rms"}) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had written the comparison at line 966 as if it was a string comparison, but it was a char*. I guess we got away with it in release builds but not debug builds.

Copy link

@russellfei russellfei Oct 17, 2025

Choose a reason for hiding this comment

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

Fixed my issue when compile on Visual C++ 2022.
This should immdiately merged into ggml 0.9.4.

@0cc4m 0cc4m merged commit b194915 into ggml-org:master Oct 17, 2025
68 of 70 checks passed
@jmuffat
Copy link

jmuffat commented Oct 17, 2025

I can confirm replacing auto with std::string does fix the issue in my project.

Kudos @jeffbolznv, I have been staring at the code and this is really not obvious to spot... Great catch !

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.

Compile bug: (windows/vulkan/debug build) add_rms_data and add_rms_len not found

4 participants