JuliaGPU / JuliaGPU/KernelAbstractions.jl
Accept static sizes as keyword arguments
- Dominant language
- Julia
- Stars
- 523
- Forks
- 88
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 25
Description
Kernel closures support passing `ndrange` and `workgroupsize` as keyword arguments:
https://github.com/JuliaGPU/KernelAbstractions.jl/blob/97419620494baa2e45541a6f2015413d6fa9315b/src/KernelAbstractions.jl#L661
The kernel function itself probably should too, while it currently only accepts positional versions of these arguments (used to construct static sizes): https://github.com/JuliaGPU/KernelAbstractions.jl/blob/97419620494baa2e45541a6f2015413d6fa9315b/src/macros.jl#L42-L44
IMO this makes the code more readable.
Contributor guide
No contributing guide indexed for this repository
Research direction
The kernel argument handling is in src/macros.jl at lines 42-44; compare it with the keyword-argument support for kernel closures in src/KernelAbstractions.jl at line 661. Update the kernel interface so ndrange and workgroupsize can be passed as keyword arguments for static sizes, and verify that the keyword and positional forms behave consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- hpc
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100