Closed joker-eph closed 1 year ago
Ping on this @phoebewang ? I think it'd be nice to fix it quickly and back port in 17.0.0
Sorry, busy on other tasks. Will try to solve it ASAP.
What's the status on this issue? We are getting close to 17.x final, so it would be nice to know if we are still waiting for a issue fixed here.
I just root caused it but was stalled due to family issues. I'll back to it this week and hope solve it by EOW. I see the final date is Sep 5th. So think should be good to catch up with.
Candidate patch: https://reviews.llvm.org/D158950
@llvm/issue-subscribers-backend-x86
This fixes the crash, but somehow the test is providing incorrect result now:
llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir:106:12: error: CHECK: expected string not found in input
// CHECK: ( 1, 11, 0, 2, 13, 0, 0, 0, 0, 0, 14, 3, 0, 0, 0, 0, 15, 4, 16, 0, 5, 6, 0, 0, 0, 0, 0, 0, 7, 8, 0, 9 )
^
<stdin>:1:1: note: scanning from here
( 5.83155e-39, 5.98653e-39, 0, 5.87747e-39, 5.99801e-39, 0, 0, 0, 0, 0, 6.00375e-39, 5.90043e-39, 0, 0, 0, 0, 6.00949e-39, 5.92339e-39, 6.01522e-39, 0, 5.93487e-39, 5.94635e-39, 0, 0, 0, 0, 0, 0, 5.95783e-39, 5.96931e-39, 0, 5.97505e-39 )
^
Input file: <stdin>
Check file: llvm-project/mlir/test/Integration/Dialect/SparseTensor/CPU/dense_output_bf16.mlir
The result looks pretty far from what we expect
CC: @RKSimon since you reviewed here: https://reviews.llvm.org/D158950
I'll look at the new problem
@joker-eph could you help to have a quick check about changing 8
to 16
in the code below:
In = DAG.getNode(ISD::ZERO_EXTEND, DL, NVT, In);
In = DAG.getNode(ISD::SHL, DL, NVT, In, DAG.getConstant(8, DL, NVT));
return DAG.getBitcast(VT, In);
I don't have a target with AVX512BF16 to verify it.
Checked changing to 16
solve the problem.
Should this be backported.
Should this be backported.
This has been backported through #65032
It's fine it seems you cherry-picked the final commit @tru
Ah it was a separate issue. Ok - thanks for confirming!
Here is the input to SelectionDag from a debug log:
Reproduce with the attached test running
test.ll.txt