@bind('global_work_size', 'a.size')
@bind('local_work_size', 1)
def sum(a, b, ret):
    i = clrt.get_global_id(0)
ret[i] = a[i] + b[i]
sum(clarray1, clarray2, clarray3)
Программирование GPGPU на Python