Is the device applicable? #117
Replies: 3 comments 11 replies
-
Hello Quanzhang, thank you for your question. What happens when you run example2 (the OpenCL example)? Could you post a full error message, or does the OpenCL code work just fine? When you run the tests, via |
Beta Was this translation helpful? Give feedback.
-
Do you get to choose this device |
Beta Was this translation helpful? Give feedback.
-
I will suggest changing the code
and then you should be able to choose a device. What devices are listed? What happens when you try each of them? |
Beta Was this translation helpful? Give feedback.
-
There is my PC device, is it unavailable for the program? The exclusion results show it does not support double precious.
print(cl.get_platforms())
print(cl.device_type.ALL)
print(cl.device_type.GPU)
print(platform.get_devices(device_type))
print(cl.Context([device]))
[<pyopencl.Platform 'Intel(R) OpenCL HD Graphics' at 0x19ac597c890>]
4294967295
<pyopencl.Context at 0x19ad4f930f0 on <pyopencl.Device 'Intel(R) Iris(R) Xe Graphics' on 'Intel(R) OpenCL HD Graphics' at 0x19ad52444d0>>
4
Device is Intel(R) Iris(R) Xe GraphicsGPU from Intel(R) Corporation with a max of 96 compute units,
a max of 256 work-items per work-group,
a max work item dimensions of 3,
a max work item sizes of [256, 256, 256],
and device local memory size is 65536 bytes.
Beta Was this translation helpful? Give feedback.
All reactions