Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. from __future__ import print_function
  4. import pyopencl as cl
  5.  
  6. for p in cl.get_platforms():
  7. print(p)
  8. for d in p.get_devices():
  9. print(d)
  10. print(d.get_info(cl.device_info.NATIVE_VECTOR_WIDTH_FLOAT))
  11. print(d.get_info(cl.device_info.NATIVE_VECTOR_WIDTH_DOUBLE))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement