I want to make pyopencl call "get_platforms()" on qsub.
On jupyter I run the below commands:
pip install --user pyopencl
import pyopencl as cl
platform = cl.get_platforms()
When I run the above I see error "LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR".
How to select a GPU and able to successfully run the above, can I know please.
Thanks for reaching out to us.
Could you please let us know whether you are trying these commands from login node?
We are able to run these commands from compute node without any error. If you are trying out from login node you will face the error.
You have to be in compute node to perform your tasks. You could reach an interactive compute node by using the below command, once you are connected to DevCloud.
You can request the node with GPU on the DevCloud using the below command.
qsub -I -l nodes=1:gpu:ppn=2 -d .
Hope this helps, if you are still facing the issue please let us know.