-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Misc. bug: Loop range computation question of Vulkan matmul shaders #12082
Labels
Comments
The push constant llama.cpp/ggml/src/ggml-vulkan/ggml-vulkan.cpp Lines 3875 to 3897 in 69050a1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Name and Version
build: 9b17d3b (4778)
Operating systems
Windows
Which llama.cpp modules do you know to be affected?
No response
Command line
Problem description & steps to reproduce
I am trying to tune the matmul shader's performance of Vulkan backends. However, I cannot get the expected results. So I checked the shaders
mul_mm.comp
itself and I am now confused by thisIf my understanding is correct, the
start_k
andend_k
are used to control the range of K loop:This confused me because in my kernel I have k_split=1 and ik=0, so the end_k turns to be 1. This will makes the matmul main loop run only once! Is line 159 bugged or my knowledge is wrong? Looking forward to an answer!
First Bad Commit
No response
Relevant log output
The text was updated successfully, but these errors were encountered: