Skip to content

Commit eee769b

Browse files
committed
More info on the lockstep failure errors
1 parent b3ab8a3 commit eee769b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,10 +467,10 @@ class AutoDiffWhileFwd
467467
auto idx = arg.getArgNumber();
468468
if (resultPositionsToShadow.count(idx)) {
469469
if (gutils->isConstantValue(arg)) {
470-
nb->insertArgument(
471-
curidx,
472-
cast<AutoDiffTypeInterface>(arg.getType()).getShadowType(gutils->width),
473-
op.getLoc());
470+
nb->insertArgument(curidx,
471+
cast<AutoDiffTypeInterface>(arg.getType())
472+
.getShadowType(gutils->width),
473+
op.getLoc());
474474
}
475475
curidx++;
476476
}

src/enzyme_ad/jax/Passes/AffineToStableHLORaising.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1668,7 +1668,7 @@ static LogicalResult tryRaisingLockStepForOpToStableHLO(
16681668
if (pc.options.dump_failed_lockstep) {
16691669
llvm::errs() << " failed lockstep of for raise: " << *forOp << "\n";
16701670
}
1671-
return forOp.emitError("Not lockstep executable");
1671+
return forOp.emitError("Not lockstep executable") << *forOp;
16721672
}
16731673

16741674
static LogicalResult

0 commit comments

Comments
 (0)