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

Fix extra lines generated when using clad::array or array_ref #797

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

vaithak
Copy link
Collaborator

@vaithak vaithak commented Mar 4, 2024

fixes #350

Copy link
Contributor

github-actions bot commented Mar 4, 2024

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

Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.89%. Comparing base (f242077) to head (04e28e1).
Report is 3 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #797      +/-   ##
==========================================
+ Coverage   94.87%   94.89%   +0.01%     
==========================================
  Files          49       49              
  Lines        7478     7478              
==========================================
+ Hits         7095     7096       +1     
+ Misses        383      382       -1     

see 1 file with indirect coverage changes

see 1 file with indirect coverage changes

Copy link
Contributor

github-actions bot commented Mar 4, 2024

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

Copy link
Contributor

github-actions bot commented Mar 4, 2024

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

@vgvassilev vgvassilev requested a review from parth-07 March 5, 2024 05:17
@@ -102,16 +109,16 @@ template <typename T> class array {
/// Returns the size of the underlying array
CUDA_HOST_DEVICE std::size_t size() const { return m_size; }
/// Returns the ptr of the underlying array
CUDA_HOST_DEVICE T* ptr() const { return m_arr; }
CUDA_HOST_DEVICE T*& ptr_ref() { return m_arr; }
CUDA_HOST_DEVICE T* ptr() const PUREFUNC { return m_arr; }
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
CUDA_HOST_DEVICE T* ptr() const PUREFUNC { return m_arr; }
CUDA_HOST_DEVICE PUREFUNC T* ptr() const { return m_arr; }

Can we move the attributes to go first?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed 👍🏼

Copy link
Contributor

github-actions bot commented Mar 5, 2024

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

Copy link
Owner

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

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

Great job! Thank you!

@vgvassilev vgvassilev merged commit d7e5434 into vgvassilev:master Mar 5, 2024
83 checks passed
@vaithak vaithak deleted the remove-extra branch March 13, 2024 13:21
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.

Fix extra lines generated when using clad::array.
3 participants