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 appendage of nullptrs to args of a CUDA kernel #1102

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

kchristin22
Copy link
Collaborator

Previously, we were appending nullptr to the rest of the args, whose addresses are accessed when cudaLaunchKernel was used, but nullptr cannot be referenced. This PR fixes that by pushing back the address of a param initialized to nullptr as many times needed.

This PR will include changes to the tests of #1092 once merged, to show that the problem is solved before it's ready for merging.

Copy link
Contributor

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

Copy link

codecov bot commented Sep 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.26%. Comparing base (b9a390d) to head (a092392).
Report is 1 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1102   +/-   ##
=======================================
  Coverage   94.26%   94.26%           
=======================================
  Files          55       55           
  Lines        8445     8445           
=======================================
  Hits         7961     7961           
  Misses        484      484           
Files with missing lines Coverage Δ
include/clad/Differentiator/Differentiator.h 80.00% <ø> (ø)
Files with missing lines Coverage Δ
include/clad/Differentiator/Differentiator.h 80.00% <ø> (ø)

Copy link
Contributor

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

Copy link
Collaborator

@parth-07 parth-07 left a comment

Choose a reason for hiding this comment

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

Looks good.

@vgvassilev vgvassilev merged commit e2b8e35 into vgvassilev:master Sep 23, 2024
90 checks passed
kchristin22 added a commit to kchristin22/clad that referenced this pull request Sep 24, 2024
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.

3 participants