-
Notifications
You must be signed in to change notification settings - Fork 29
Pure FP8 (W8A8) GEMM support (draft) #306
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: sycl-develop
Are you sure you want to change the base?
Conversation
This requirements from framework team, provide a prototype for framework team, they expect to evaluate scaled W8A8 bases on this interface. |
// 32 x 64 | ||
if constexpr(!is_same_v<CopyOpR2G_, XE_2D_U32x8x16_ST_N>) { | ||
auto D = make_tensor(make_gmem_ptr(params.ptr_D), make_layout(make_shape(4096, 4096), make_stride(4096, 1))); | ||
for(int i = 0; i < size<1>(accumulators); i++) { | ||
for(int j = 0; j < size<2>(accumulators); j++) { | ||
for(int v = 0; v < size<0>(accumulators); v++) { | ||
D(v + i * 8 + m_sg * 32 + BlockIdxY() * 256 , BlockIdxX() * 256 + n_sg * 64 + (thread_idx % 16) * 2 + (j % 2) + (j / 2) * 32) = accumulators(v, i, j); | ||
} | ||
} | ||
} |
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.
This looks really ugly here. Is there any good reason not to implement it as a new copy atom?
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.
I think you are right. UniveralCopy
will be OK for this copy atom. But I did not figure it out yet
This is a draft version. I will polish the code ASAP |
7ab624a
to
eb3529e
Compare
currently hard code to store the result collective/xe_epilogue.hpp
and example pvc_gemm_fp8.cpp