@triton.jit
def sumN(output_ptr, scaling_ptr, *inputs, BLOCK_SIZE: tl.constexpr):
    offset = tl.arange(0, BLOCK_SIZE)
    output = tl.zeros([BLOCK_SIZE], tl.float32)
    scaling: 'VAR_ARGS_ARRAY'
    for i in range(len(scaling)):
        scaling[i] = tl.load(scaling_ptr + i)
    for i in range(2):
        for j in range(len(inputs)):
            output = output + tl.load(inputs[j] + offset) * scaling[j]
    tl.store(output_ptr + offset, output)
