@mlyashko, why do you use fixed `localsize`? AFAIK, you don't use local memory in kernels, so `localsize` can be `NULL`