#NEWLINE# def test_mpi_tag_ordering( ) : #NEWLINE# #INDENT# x = recv ( ( 2 , 2 ) , 'float32' , 1 , 12 ) #NEWLINE# y = recv ( ( 2 , 2 ) , 'float32' , 1 , 11 ) #NEWLINE# z = recv ( ( 2 , 2 ) , 'float32' , 1 , 13 ) #NEWLINE# f = theano . function ( [ ] , [ x , y , z ] , mode = mpi_mode ) #NEWLINE# nodes = f . maker . linker . make_all ( ) [ ( - 1 ) ] #NEWLINE# assert all ( ( ( node . op . tag == tag ) for ( node , tag ) in zip ( nodes , ( 11 , 12 , 13 , 11 , 12 , 13 ) ) ) )