Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pyopencl as cl
- def list_opencl_devices():
- platforms = cl.get_platforms()
- for platform in platforms:
- print(f"Platform: {platform.name}")
- devices = platform.get_devices()
- for device in devices:
- print(f" Device: {device.name}, Type: {device.type}")
- list_opencl_devices()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement