Skip to content

Allow return statements for GPU-only kernels

Churavy, Valentin requested to merge pxl-th/return into main

Created by: pxl-th

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

Merge request reports

Loading