Add MLIR generated ExpOp GPU kernel for complex types.
We lower lmhlo::ExpOp to mlir::complex::ExpOp for complex types. PiperOrigin-RevId: 379432147
This commit is contained in:
parent
f9f7a63870
commit
399dae666d
|
@ -323,7 +323,8 @@ inline Value MapLhloOpToStdScalarOp<lmhlo::ExpOp>(Location loc,
|
||||||
ArrayRef<Type> arg_types,
|
ArrayRef<Type> arg_types,
|
||||||
ArrayRef<Value> args,
|
ArrayRef<Value> args,
|
||||||
OpBuilder* b) {
|
OpBuilder* b) {
|
||||||
return MapLhloOpToScalarOpImpl<isFloatType, ::mlir::math::ExpOp>{}(
|
return MapLhloOpToScalarOpImpl<isFloatType, ::mlir::math::ExpOp,
|
||||||
|
isComplexType, ::mlir::complex::ExpOp>{}(
|
||||||
loc, result_types, arg_types, args, b);
|
loc, result_types, arg_types, args, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue