- 
                Notifications
    You must be signed in to change notification settings 
- Fork 79
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Kernel closures support passing ndrange and workgroupsize as keyword arguments:
| (kernel::Kernel{<:NewBackend})(args...; ndrange=nothing, workgroupsize=nothing) | 
The kernel function itself probably should too, while it currently only accepts positional versions of these arguments (used to construct static sizes):
KernelAbstractions.jl/src/macros.jl
Lines 42 to 44 in 9741962
| function $name(dev::Dev, sz::S, range::NDRange) where {Dev, S <: $_Size, NDRange <: $_Size} | |
| return $construct(dev, sz, range, $gpu_name) | |
| end | 
IMO this makes the code more readable.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers