Skip to content

Fix CUDA global argument detection for aliased kernel parameters - #1843

Open
MdSaifAliMolla wants to merge 1 commit into
vgvassilev:masterfrom
MdSaifAliMolla:fix-1623
Open

Fix CUDA global argument detection for aliased kernel parameters#1843
MdSaifAliMolla wants to merge 1 commit into
vgvassilev:masterfrom
MdSaifAliMolla:fix-1623

Conversation

@MdSaifAliMolla

@MdSaifAliMolla MdSaifAliMolla commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

closes #1623 and

           // FIXME: If we cannot deduce whether the argument is
          // differentiable, we should still add it to CUDAGlobalArgsIndexes.
          // i.e. remove `&& PVD`.

as they are related, I believe.

@github-actions

Copy link
Copy Markdown
Contributor

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

@MdSaifAliMolla
MdSaifAliMolla marked this pull request as draft June 22, 2026 09:06
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Fixes vgvassilev#1623. DiffPlanner and ReverseModeVisitor disagreed on
CUDAGlobalArgsIndexes for aliased args like add(a, a).
@github-actions

Copy link
Copy Markdown
Contributor

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

@MdSaifAliMolla
MdSaifAliMolla marked this pull request as ready for review June 26, 2026 10:42
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.

Pullback call emitted in CUDA gradient

1 participant