You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This requires synchronisation. It might be possible to handle this using essentially the same mechanism as in #1658. Currently the GPUBody construct doesn't support the returns we need (scatters), but we can write it as a SegMap:
Two mutually exclusiv ways to go here: change GPUBody to contain a proper KernelBody, or just use one of these single-thread SegMaps instead. Operationally they do exactly the same thing, but the former may be more concise. That was after all the motivation for GPUBody in the first place.
The text was updated successfully, but these errors were encountered:
Consider this program:
(The unsafe is not important, but just makes the IR simpler to look at.) Currently the in-place updates is located on the host:
This requires synchronisation. It might be possible to handle this using essentially the same mechanism as in #1658. Currently the
GPUBody
construct doesn't support the returns we need (scatters), but we can write it as a SegMap:Two mutually exclusiv ways to go here: change
GPUBody
to contain a properKernelBody
, or just use one of these single-threadSegMap
s instead. Operationally they do exactly the same thing, but the former may be more concise. That was after all the motivation forGPUBody
in the first place.The text was updated successfully, but these errors were encountered: