Repository navigation
Deprecate split_kwargs and assign_args! - #1142
Merged
Merged
Conversation
These helpers for back-ends' launch macros are superseded by GPUToolbox's `parse_launch_macro` and `partition_kwargs`, which support splatted keyword arguments and partition keyword arguments into `NamedTuple`s at run time, also for code that isn't a macro. They don't belong in GPUCompiler either, as they have nothing to do with compilation. Move them to deprecated.jl. They keep working and don't warn, as released back-ends use them. Remove them from the precompile workload, and use `partition_kwargs` in the test helpers.
maleadt
force-pushed
the
tb/kwargs-splat
branch
from
December 2, 2026 18:40
9ee9915 to
a98c219
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
split_kwargsandassign_args!are helpers for back-ends' launch macros (@cuda,@metal, ...). They have nothing to do with compilation, and they route keyword arguments by name at macro expansion time, which rules out splatted keyword arguments (@cuda config... kernel(a)).GPUToolbox 3.8 has their replacements,
parse_launch_macroandpartition_kwargs(JuliaGPU/GPUToolbox.jl#48), which support splats and partition keyword arguments intoNamedTuples at run time.This moves the two helpers to
deprecated.jl, unchanged and still exported. Released back-ends use them, so they don't warn; they can be removed in the next breaking release, once the back-ends have moved over. They are dropped from the precompile workload, and the test helpers usepartition_kwargs, which adds GPUToolbox as a test dependency.