KernelAbstractions.jl icon indicating copy to clipboard operation
KernelAbstractions.jl copied to clipboard

Allow return statements for GPU-only kernels

Open pxl-th opened this issue 1 year ago • 2 comments

It's a bit annoying to not be able to use return statements. Currently you have to do something like this, but it looks weird:

@kernel function ker!(args...)
    i = @index(Global)
    _ker!(i, args...)
end

function _ker!(i, args...)
    ...
end

pxl-th avatar Oct 18 '24 09:10 pxl-th