You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error(pjrt): [PJRT_Client_Compile] <unknown>:0: error: loc(callsite("loop_exponential_fusion" at "loop_exponential_fusion")): failed to legalize operation 'math.exp'
<unknown>:0: note: loc("loop_exponential_fusion"): called from
<unknown>:0: note: loc(callsite("loop_exponential_fusion" at "loop_exponential_fusion")): see current operation: %43 = "math.exp"(%42) <{fastmath = #arith.fastmath<afn>}> : (bf16) -> bf16
I think I see the problem: the MathToROCDL pass in mlir doesn't specify a lowering for F32, and the default for BF16 ops is that we convert to F32 and use the lowering for F32. This doesn't work in this case. @draganmladjenovic can you maybe take a look at this?
Seems related to llvm/llvm-project#102971
It should be verified whether this patch actually makes sense? I would have thought that if intrinsics exist, then in the end it would also be lowered to them.
The following MLIR code is not able to compile anymore for the ROCm platform (6.2 used here), since this commit: 6e9eefe
Error traceback:
HLO dump:
Bests,
Hugo
The text was updated successfully, but these errors were encountered: