<s> from __future__ import print_function , division , absolute_import <EOL> import sys <EOL> import numpy as np <EOL> from numba import unittest_support as unittest <EOL> from numba import types <EOL> from numba . extending import typeof_impl <EOL> from numba . cuda . kernels . transpose import transpose <EOL> from numba . tracing import event <EOL> from numba import SmartArray <EOL> from numba . cuda . testing import skip_on_cudasim <EOL> @ skip_on_cudasim ( '<STR_LIT>' ) <EOL> class TestJIT ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_transpose ( self ) : <EOL> a = SmartArray ( np . arange ( <NUM_LIT:16> , dtype = float ) . reshape ( <NUM_LIT:4> , <NUM_LIT:4> ) ) <EOL> b = SmartArray ( where = '<STR_LIT>' , shape = ( <NUM_LIT:4> , <NUM_LIT:4> ) , dtype = float ) <EOL> c = SmartArray ( where = '<STR_LIT>' , shape = ( <NUM_LIT:4> , <NUM_LIT:4> ) , dtype = float ) <EOL> event ( "<STR_LIT>" ) <EOL> transpose ( a , b ) <EOL> event ( "<STR_LIT>" ) <EOL> transpose ( b , c ) <EOL> event ( "<STR_LIT>" ) <EOL> self . assertTrue ( ( c . host ( ) == a . host ( ) ) . all ( ) ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
