Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support of cuda kernels as pullback functions #1114

Merged
merged 11 commits into from
Oct 29, 2024
Prev Previous commit
Next Next commit
Fix suggestion of clang-tidy about const KCE
kchristin22 authored and vgvassilev committed Oct 27, 2024
commit dd9ff383a6d3fa6f0a5933a73aa5122fa896e7cd
2 changes: 1 addition & 1 deletion lib/Differentiator/ReverseModeVisitor.cpp
Original file line number Diff line number Diff line change
@@ -1673,7 +1673,7 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context,
}

Expr* CUDAExecConfig = nullptr;
if (auto KCE = dyn_cast<CUDAKernelCallExpr>(CE))
if (const auto KCE = dyn_cast<CUDAKernelCallExpr>(CE))
CUDAExecConfig = Clone(KCE->getConfig());

// If the function is non_differentiable, return zero derivative.