Guest User

Untitled

a guest
May 24th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import clyther
  2. import copencl as cl
  3.  
  4. @clyther.kernel
  5. def broken(a):
  6. b = a << 2
  7. c = a >> 2
  8.  
  9. if __name__ == '__main__':
  10. clyther.init('GPU')
  11. devices = cl.get_devices('GPU')
  12. context = cl.Context([devices[0]])
  13.  
  14. broken = broken.argtypes(int, context=context)
  15.  
  16. print broken.source
Add Comment
Please, Sign In to add comment