-
Notifications
You must be signed in to change notification settings - Fork 13.7k
HIP: RDNA4 tensor core support for MMF #17077
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
base: master
Are you sure you want to change the base?
Changes from 8 commits
2f7cfcf
d564a35
0ec241d
bbee5fe
6b8ceeb
fd18344
7a09e22
c65dd59
48a53b5
b7c13ee
a0aa491
8c2f9a3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,10 @@ template<typename dst_t, typename src_t> | |
| return __float2bfloat16(float(x)); | ||
| } else if constexpr(std::is_same_v<src_t, nv_bfloat16>) { | ||
| return __bfloat162float(x); | ||
| } else if constexpr(std::is_same_v<src_t, float2> && std::is_same_v<dst_t, half2>) { | ||
| return __float22half2_rn(x); | ||
| } else if constexpr(std::is_same_v<src_t, float2> && std::is_same_v<dst_t, nv_bfloat162>) { | ||
| return __float22bfloat162_rn(x); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please check the CI logs, this doesn't compile for NVIDIA: https://github.com/ggml-org/llama.cpp/actions/runs/19329510489/job/55295565786#step:3:353
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, I've spent all day to check this error, I'm not sure why nvcc cannot find __float22bfloat162_rn, I'm considering if it's possible to keep the old logic for CUDA like |
||
| } else if constexpr(std::is_same_v<dst_t, int32_t>) { | ||
| return int32_t(x); | ||
| } else { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.