def METHOD_NAME():
    """ 
    Tests "horizontal" summation (hadd) of vector types using 
    write-conflicted memlets, with atomics.
    """
    sdfg = dace.SDFG('vectorhadd_atomic')
    sdfg.add_array('A', [2], float2)
    sdfg.add_array('B', [1], dace.float32)
    state = sdfg.add_state()
    r = state.add_read('A')
    t1 = state.add_tasklet('something', {'a'}, {'b': float2}, 'b = a')
    t2 = state.add_tasklet('something', {'a'}, {'b': float2}, 'b = a')
    w = state.add_write('B')
    state.add_edge(r, None, t1, 'a', dace.Memlet('A[0]'))
    state.add_edge(t1, 'b', w, None, dace.Memlet('B[0]', wcr='lambda x, y: x + y'))
    state.add_edge(r, None, t2, 'a', dace.Memlet('A[1]'))
    state.add_edge(t2, 'b', w, None, dace.Memlet('B[0]', wcr='lambda x, y: x + y'))
    A = np.random.rand(4).astype(np.float32)
    B = np.zeros([1], dtype=np.float32)
    sdfg(A=A, B=B)
    assert np.allclose(B, np.sum(A))