Skip to content

Generic support for ghost types in launch#93

Open
AntonOresten wants to merge 2 commits intoJuliaGPU:mainfrom
AntonOresten:general-ghost
Open

Generic support for ghost types in launch#93
AntonOresten wants to merge 2 commits intoJuliaGPU:mainfrom
AntonOresten:general-ghost

Conversation

@AntonOresten
Copy link
Contributor

@AntonOresten AntonOresten commented Feb 21, 2026

Replace the hardcoded Constant check in flatten with a generic is_ghost_type check so non-Constant ghost types like Nothing and Val work as kernel arguments.

I previously considered supporting ::Type dispatch in launch (without having to wrap the type in Constant) but this turned out to be tricky (because typeof(::Type) is DataType) so it's not in this PR.

@AntonOresten AntonOresten marked this pull request as draft February 22, 2026 15:54
@AntonOresten AntonOresten marked this pull request as ready for review February 22, 2026 19:12
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