#NEWLINE# def test_atomic_max_double_normalizedindex( self ) : #NEWLINE# #INDENT# vals = np . random . randint ( 0 , 65535 , size = ( 32 , 32 ) ) . astype ( np . float64 ) #NEWLINE# res = np . zeros ( 1 , np . float64 ) #NEWLINE# cuda_func = cuda . jit ( 'void(float64[:], float64[:,:])' ) ( atomic_max_double_normalizedindex ) #NEWLINE# cuda_func [ ( 32 , 32 ) ] ( res , vals ) #NEWLINE# gold = np . max ( vals ) #NEWLINE# np . testing . assert_equal ( res , gold )