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

Remove the use_enzyme state from reverse mode visitor. NFC #946

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

vgvassilev
Copy link
Owner

Partially addresses #721.

@vgvassilev vgvassilev requested a review from vaithak June 17, 2024 16:46
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.80%. Comparing base (6e5ef74) to head (21939fb).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #946      +/-   ##
==========================================
- Coverage   93.80%   93.80%   -0.01%     
==========================================
  Files          55       55              
  Lines        7828     7826       -2     
==========================================
- Hits         7343     7341       -2     
  Misses        485      485              
Files Coverage Δ
include/clad/Differentiator/ReverseModeVisitor.h 97.84% <100.00%> (ø)
lib/Differentiator/ReverseModeVisitor.cpp 97.25% <100.00%> (-0.01%) ⬇️
Files Coverage Δ
include/clad/Differentiator/ReverseModeVisitor.h 97.84% <100.00%> (ø)
lib/Differentiator/ReverseModeVisitor.cpp 97.25% <100.00%> (-0.01%) ⬇️

Copy link
Contributor

@github-actions github-actions bot left a 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

@@ -63,7 +63,7 @@ namespace clad {
std::vector<Stmts> m_LoopBlock;
unsigned outputArrayCursor = 0;
unsigned numParams = 0;
bool use_enzyme = false;
bool isVectorValued = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: invalid case style for protected member 'isVectorValued' [readability-identifier-naming]

Suggested change
bool isVectorValued = false;
bool m_isVectorValued = false;

@@ -63,7 +63,7 @@
std::vector<Stmts> m_LoopBlock;
unsigned outputArrayCursor = 0;
unsigned numParams = 0;
bool use_enzyme = false;
bool isVectorValued = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: member variable 'isVectorValued' has protected visibility [cppcoreguidelines-non-private-member-variables-in-classes]

    bool isVectorValued = false;
         ^

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@vgvassilev vgvassilev merged commit dfad7c8 into master Jun 18, 2024
89 checks passed
@vgvassilev vgvassilev deleted the remove-use_enzyme branch June 18, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants