Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Employee
106 Views

Install pyopencl and run get_platforms()

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.

0 Kudos
4 Replies
Highlighted
Moderator
83 Views

Hi,

 

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.

 

qsub -I

 

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.


0 Kudos
Highlighted
Moderator
63 Views

Hi,


Could you please give us an update? Is your issue resolved?



Thanks


0 Kudos
Highlighted
Employee
62 Views

Yes.

Thank you

0 Kudos
Highlighted
Moderator
59 Views

Hi,


Thanks for the confirmation. We would discontinue monitoring this issue, please raise a new thread if you have further issues.



0 Kudos