0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

ircd::simt: Add intrinsic integer max.

This commit is contained in:
Jason Volk 2022-01-23 11:48:23 -08:00
parent 0d8f069fbf
commit 2b30d775b9

View file

@ -30,3 +30,23 @@ ircd_simt_reduce_max_flldr(__local float *const buf,
}
}
#endif
#ifdef __OPENCL_VERSION__
inline void
ircd_simt_reduce_max_illdr(__local int *const buf,
const uint ln,
const uint li)
{
buf[li] = atomic_max(buf, buf[li]);
}
#endif
#ifdef __OPENCL_VERSION__
inline void
ircd_simt_reduce_max_ulldr(__local uint *const buf,
const uint ln,
const uint li)
{
buf[li] = atomic_max(buf, buf[li]);
}
#endif