Open IanNod opened 3 months ago
@Groverkss has a WIP PR for this on the LLVMGPU side here: https://github.com/openxla/iree/pull/16927. Kunwar, could you also take care of the SPIR-V path?
AFAIU my patch should also take care of SPIRV
AFAIU my patch should also take care of SPIRV
Can you also add a SPIR-V regression test based on the batch matmul from this issue?
Sure, will do tomorrow
AFAIU my patch should also take care of SPIRV
Checked out the https://github.com/openxla/iree/pull/16927 PR and still see the same error @Groverkss
AFAIU my patch should also take care of SPIRV
Checked out the #16927 PR and still see the same error @Groverkss
I'll have a look and fix it if something is wrong. Thanks for checking.
@kuhar I looked into this more. Currently, the cooperative matrix path is reusing the MMA heuristics deduction which my patch adds the shared memory check on. I will send a followup patch which makes the default SPIRV Distribute pipeline matmul config deduction also use that.
What happened?
Compiling a phi-2 model for vulkan-spirv backend with target triple rdna2-unknown-linux gives the following error:
Steps to reproduce your issue
phi-2 mlir can be found here: https://sharkpublic.blob.core.windows.net/sharkpublic/ian/phi_2.mlir
failed dispatch here: https://sharkpublic.blob.core.windows.net/sharkpublic/ian/configured_state_update_run_initialize$async_dispatch_19.mlir
iree compiler command used:
What component(s) does this issue relate to?
Compiler
Version information
SHA: cc2ef92a232e4b6de9b845b6854d4d8667a6162b
Additional context
No response