Intel® DevCloud
Help for those needing help starting or connecting to the Intel® DevCloud
1042 Discussions

Install pyopencl and run get_platforms()

vinayg
Employee
679 Views

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
AthiraM_Intel
Moderator
656 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.


AthiraM_Intel
Moderator
636 Views

Hi,


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



Thanks


vinayg
Employee
635 Views
AthiraM_Intel
Moderator
632 Views

Hi,


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



Reply