def METHOD_NAME(op_type, size):
    op = getattr(dpex.atomic, op_type)
    if size == 1:
        idx = 0
    else:
        idx = (0,)
        for i in range(size - 1):
            idx += (0,)
    def f(a):
        op(a, idx, 1)
    return dpex.kernel(f)