Skip to content

Fix GPU lambda constants for casted jit_variable captures - #535

Merged
ZwFink merged 2 commits into
mainfrom
lambda-cast-capture-test
Oct 9, 2026
Merged

ZwFink merged 2 commits into
mainfrom
lambda-cast-capture-test

Conversation

@ZwFink

@ZwFink ZwFink commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

The GPU lambda schema recorded the jit_variable argument type instead of the closure slot type, so casted captures like X = (double)jit_variable(F) were specialized with wrong values or crashed the JIT. This uses the slot type, matching host registration, and adds CPU and GPU tests (the GPU test fails on main).

@ZwFink
ZwFink force-pushed the lambda-cast-capture-test branch from 9d15aab to 400cd72 Compare September 30, 2026 21:17
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pass/LambdaAnalysis.cpp 80.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ZwFink
ZwFink force-pushed the lambda-cast-capture-test branch 2 times, most recently from 36590b1 to ce80195 Compare October 7, 2026 23:33
@ZwFink
ZwFink force-pushed the lambda-cast-capture-test branch from ce80195 to eedef17 Compare October 8, 2026 23:12
@ZwFink
ZwFink merged commit aac5db7 into main Oct 9, 2026
62 checks passed
@ZwFink
ZwFink deleted the lambda-cast-capture-test branch October 9, 2026 18:49
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.

1 participant