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:
parent
12f3eb871d
commit
5e824a4f6f
1 changed files with 3 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue