0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-13 16:33:53 +01:00

ircd::simt: Simplify LDS broadcast.

This commit is contained in:
Jason Volk 2022-01-08 20:13:27 -08:00
parent 12f3eb871d
commit 5e824a4f6f

View file

@ -19,12 +19,9 @@ ircd_simt_broadcast_f4lldr(__local float4 *const buf,
const uint ln,
const uint li)
{
for(uint stride = 1; stride < ln; stride <<= 1)
{
if(li < stride)
buf[li + stride] = buf[li];
barrier(CLK_LOCAL_MEM_FENCE);
barrier(CLK_LOCAL_MEM_FENCE);
}
if(li > 0)
buf[li] = buf[0];
}
#endif