Repository navigation
[AMDGPU] Do not rewrite or approximate math functions on ROCm - #20222
Conversation
This is the re-landing iree-org#19970 which was rolled back due to a ONNX test failure which we want to accept as its root cause is a torch-mlir bug: llvm/torch-mlir#4091 This reverts commit 00e8873. Signed-off-by: Benoit Jacob <[email protected]>
|
This patch led to llama3.1 input lenth 128 benchmark time drop from 27.5ms to 29.8ms. Here is the bisect command and log to locate the regression: bisect-log-3.12-3.13-00e-445.sh, In the log I also list the mlir file and benchmark command and inputs to run it. @bjacob could you take a look at, this has to be fixed this week for llama performance submission on March 24. bisect on iree-3.3.0rc20250316 |
|
@AmosLewis , thanks for the report. In order to reproduce, I seem to need a file named |
It has been list in the link, here is it |
|
@AmosLewis , this should be fixed by #20281. Also, it seems that with that fix, the net effect of this PR should become positive on your workload: I am getting 27.1 ms now, while your above #20222 (comment) mentioned 27.5 ms before the regression. |
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of `math.fpowi` to multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment). Signed-off-by: Benoit Jacob <[email protected]>
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of `math.fpowi` to multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment). Signed-off-by: Benoit Jacob <[email protected]> Signed-off-by: Elias Joseph <[email protected]>
This is the re-landing of #19970 which was rolled back due to a ONNX test failure which we want to accept as its root cause is a torch-mlir bug: llvm/torch-mlir#4091 This reverts commit 00e8873. Signed-off-by: Benoit Jacob <[email protected]>
When in #20222 we dropped all math rewrites on ROCm, we lost an important rewrite of `math.fpowi` to multiplications. This caused the regression flagged by @AmosLewis in #20222 (comment). Signed-off-by: Benoit Jacob <[email protected]>
This is the re-landing of #19970 which was rolled back due to a ONNX test failure which we want to accept as its root cause is a torch-mlir bug:
llvm/torch-mlir#4091
This reverts commit 00e8873.