Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import clyther
- import copencl as cl
- @clyther.kernel
- def broken(a):
- b = a << 2
- c = a >> 2
- if __name__ == '__main__':
- clyther.init('GPU')
- devices = cl.get_devices('GPU')
- context = cl.Context([devices[0]])
- broken = broken.argtypes(int, context=context)
- print broken.source
Add Comment
Please, Sign In to add comment