Skip to content
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

Invalid constant in WmmaOpsToNvvm lowering #870

Open
adam-smnk opened this issue Jan 23, 2024 · 0 comments
Open

Invalid constant in WmmaOpsToNvvm lowering #870

adam-smnk opened this issue Jan 23, 2024 · 0 comments

Comments

@adam-smnk
Copy link
Collaborator

gpu.subgroup_mma_elementwise maxf lowering to nvvm dialect creates invalid constant:
%0 = llvm.mlir.constant(0x7E00 : f16) : vector<2xf16>
which prevents GPU binary generation with:
error: FloatAttr does not match expected type of the constant
The constant value has to be dense and match the result type as:
%0 = llvm.mlir.constant(dense<0x7E00> : vector<2xf16>) : vector<2xf16>

To be fixed in the upstream WmmaOpsToNvvm.cpp function createMinMaxF.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant