#NEWLINE# def test_threadfence_system_codegen( self ) : #NEWLINE# #INDENT# compiled = cuda . jit ( 'void(int32[:])' ) ( use_threadfence_system ) #NEWLINE# ary = np . zeros ( 10 , dtype = np . int32 ) #NEWLINE# compiled [ ( 1 , 1 ) ] ( ary ) #NEWLINE# self . assertEqual ( ( 123 + 321 ) , ary [ 0 ] ) #NEWLINE# if ( not ENABLE_CUDASIM ) : #NEWLINE# #INDENT# self . assertIn ( 'membar.sys;' , compiled . ptx )