-
Notifications
You must be signed in to change notification settings - Fork 123
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
Add support of cuda kernels as pullback functions #1114
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1114 +/- ##
==========================================
+ Coverage 94.39% 94.42% +0.02%
==========================================
Files 50 50
Lines 8713 8729 +16
==========================================
+ Hits 8225 8242 +17
+ Misses 488 487 -1
... and 2 files with indirect coverage changes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
22399c4
to
ed7194c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
96ad6a1
to
e5fa81d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
clang-tidy review says "All clean, LGTM! 👍" |
51ae88f
to
7ec28c7
Compare
clang-tidy review says "All clean, LGTM! 👍" |
…y_pullback to mimic its blocking behavior
7ec28c7
to
6a3f79a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -1940,7 +1952,8 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, | |||
OverloadedDerivedFn = | |||
m_Builder.BuildCallToCustomDerivativeOrNumericalDiff( | |||
customPushforward, pushforwardCallArgs, getCurrentScope(), | |||
const_cast<DeclContext*>(FD->getDeclContext())); | |||
const_cast<DeclContext*>(FD->getDeclContext()), true, true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use const_cast [cppcoreguidelines-pro-type-const-cast]
const_cast<DeclContext*>(FD->getDeclContext()), true, true,
^
4959e67
to
5f8b54b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
@@ -1940,7 +1952,9 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, | |||
OverloadedDerivedFn = | |||
m_Builder.BuildCallToCustomDerivativeOrNumericalDiff( | |||
customPushforward, pushforwardCallArgs, getCurrentScope(), | |||
const_cast<DeclContext*>(FD->getDeclContext())); | |||
const_cast<DeclContext*>(FD->getDeclContext()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use const_cast [cppcoreguidelines-pro-type-const-cast]
const_cast<DeclContext*>(FD->getDeclContext()),
^
@@ -2041,7 +2055,9 @@ | |||
OverloadedDerivedFn = | |||
m_Builder.BuildCallToCustomDerivativeOrNumericalDiff( | |||
customPullback, pullbackCallArgs, getCurrentScope(), | |||
const_cast<DeclContext*>(FD->getDeclContext())); | |||
const_cast<DeclContext*>(FD->getDeclContext()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: do not use const_cast [cppcoreguidelines-pro-type-const-cast]
const_cast<DeclContext*>(FD->getDeclContext()),
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
No description provided.