Skip to content

Commit

Permalink
Fix 3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev committed Oct 5, 2024
1 parent 9e68108 commit aa54112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Differentiator/ReverseModeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,13 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,

Stmt* gradientBody = nullptr;

#ifdef CLAD_ENABLE_ENZYME_BACKEND
if (!m_DiffReq.use_enzyme)
DifferentiateWithClad();
#ifdef CLAD_ENABLE_ENZYME_BACKEND
else
DifferentiateWithEnzyme();
#else
DifferentiateWithClad();
#endif

gradientBody = endBlock();
Expand Down

0 comments on commit aa54112

Please sign in to comment.