[HAL][Metal] Runtime returns incorrect tensor values #19530
Labels
bug 🐞
Something isn't working
codegen/spirv
SPIR-V code generation compiler backend
hal/metal
Runtime Apple Metal HAL backend
What happened?
Compiling a simple MatMul example with IREE using the Metal backend and executing with the runtime yields invalid results.
iree-run-module --module=model.vmfb --input=10x10xf32=0.42 --function="main" --device=metal EXEC @main result[0]: hal.buffer_view 10x10xf32=[0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0][0 0 0 0 0 0 0 0 0 0]
Steps to reproduce your issue
iree-run-module --module=model.vmfb --input=10x10xf32=0.42 --function="main" --device=metal
What component(s) does this issue relate to?
Runtime
Version information
iree-base-compiler 3.0.0
iree-base-runtime 3.0.0
Additional context
If I run on latest main:
ed9a028d3f3bfb0ab32004881c87539577048aa8
I get the following errorin the runtime:
The text was updated successfully, but these errors were encountered: