-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
HIP: force max threads per block to be 1024 #11621
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ggml/src/ggml-hip/CMakeLists.txt
Outdated
@@ -40,6 +40,9 @@ find_package(hip REQUIRED) | |||
find_package(hipblas REQUIRED) | |||
find_package(rocblas REQUIRED) | |||
|
|||
# Workaround old compilers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move this down a bit as the find_package calls and the version check below are logically related operations
I saw the discussion, but don't have any knowledge about HIP/ROCm to have an opinion about this. If you think that it is not likely to cause issues to other users, feel free to merge it. |
Some old compilers still use 256. Explicitly set it to 1024 to get correct result from ops like ARGMAX and GROUP_NORM. Related: ggerganov#10610, ggerganov#11619 Signed-off-by: fxzjshm <[email protected]>
7e596d4
to
59ad593
Compare
@IMbackK Moved. Is this place proper? @slaren This compiler flag is documented at https://clang.llvm.org/docs/ClangCommandLineReference.html#cmdoption-clang-gpu-max-threads-per-block. I've also compiled with ROCm 6.3.1 and no compile error is given, now testing test-backend-ops. Update: |
Some old compilers still use 256. Explicitly set it to 1024 to get correct result from ops like ARGMAX and GROUP_NORM.
Related: #10610, #11619
CC @IMbackK