GPU not found when no display device connected
hi, guys:
I write opencl code on a macmini(GPU is GF 9400M), by remote console that connect to Snow Leopard with ssh.

When there's no display device attach to macmini, I cannot get GPU device, for example
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU,....)

anybody get the same problem?, how can I program OpenCL on a compute without monitor
hi, guys:

I write opencl code on a macmini(GPU is GF 9400M), by remote console that connect to Snow Leopard with ssh.



When there's no display device attach to macmini, I cannot get GPU device, for example

clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU,....)



anybody get the same problem?, how can I program OpenCL on a compute without monitor

#1
Posted 01/19/2010 04:08 PM   
On normal linux machines this works, so this might actually be related to the Mac Mini or Snow Leopard.
On normal linux machines this works, so this might actually be related to the Mac Mini or Snow Leopard.

#2
Posted 01/20/2010 10:51 AM   
On OS X 10.6, you will be using Apple's own OpenCL implementation, not NVIDIA's won't you?. You might need to ask on the Apple developers forums about it.
On OS X 10.6, you will be using Apple's own OpenCL implementation, not NVIDIA's won't you?. You might need to ask on the Apple developers forums about it.

#3
Posted 01/20/2010 11:47 AM   
[quote name='avidday' post='984665' date='Jan 20 2010, 07:47 PM']On OS X 10.6, you will be using Apple's own OpenCL implementation, not NVIDIA's won't you?. You might need to ask on the Apple developers forums about it.[/quote]

theMaxtrix and you are both right, it's work right on Ubuntu 9.10
It's the SnowLeopard problem.
thanks
[quote name='avidday' post='984665' date='Jan 20 2010, 07:47 PM']On OS X 10.6, you will be using Apple's own OpenCL implementation, not NVIDIA's won't you?. You might need to ask on the Apple developers forums about it.



theMaxtrix and you are both right, it's work right on Ubuntu 9.10

It's the SnowLeopard problem.

thanks

#4
Posted 01/21/2010 04:39 PM   
[quote name='mjollnir' post='984084' date='Jan 19 2010, 05:08 PM']hi, guys:
I write opencl code on a macmini(GPU is GF 9400M), by remote console that connect to Snow Leopard with ssh.

When there's no display device attach to macmini, I cannot get GPU device, for example
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU,....)

anybody get the same problem?, how can I program OpenCL on a compute without monitor[/quote]

Hello,

I got the same issue. You can get the GPU device if you log in with a local admin user. I did not find yet how to access the GPU with a network user.
[quote name='mjollnir' post='984084' date='Jan 19 2010, 05:08 PM']hi, guys:

I write opencl code on a macmini(GPU is GF 9400M), by remote console that connect to Snow Leopard with ssh.



When there's no display device attach to macmini, I cannot get GPU device, for example

clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU,....)



anybody get the same problem?, how can I program OpenCL on a compute without monitor



Hello,



I got the same issue. You can get the GPU device if you log in with a local admin user. I did not find yet how to access the GPU with a network user.

#5
Posted 02/24/2010 10:22 AM   
[quote name='fgaiddon' post='1007187' date='Feb 24 2010, 12:22 PM']Hello,

I got the same issue. You can get the GPU device if you log in with a local admin user. I did not find yet how to access the GPU with a network user.[/quote]

Hi,
I used OpenCL on my personal computer (that is a Debian Linux machine) with no problems at all, I could run programs using OpenCL "remotely" launching them from an ssh console.
But I found the same problem described in this post on a Debian Linux machine using the same configuration I used on my personal one. The only difference that I can see is that in this machine is used a "centralized users accounting" (and I am not the administrator of it); I think they are using LDAP.
I really can't understand which could be the problem, I checked that all the environment variables are set correctly...

Also the example programs provided with the NVIDIA SDK are failing with this error when lunched from an ssh console:

[code]OpenCL SW Info:

Error -1001 in clGetPlatformIDs Call !!!


!!! Error # -1000 () at line 42 , in file oclDeviceQuery.cpp !!!

Exiting...[/code]

Any idea/solution?
[quote name='fgaiddon' post='1007187' date='Feb 24 2010, 12:22 PM']Hello,



I got the same issue. You can get the GPU device if you log in with a local admin user. I did not find yet how to access the GPU with a network user.



Hi,

I used OpenCL on my personal computer (that is a Debian Linux machine) with no problems at all, I could run programs using OpenCL "remotely" launching them from an ssh console.

But I found the same problem described in this post on a Debian Linux machine using the same configuration I used on my personal one. The only difference that I can see is that in this machine is used a "centralized users accounting" (and I am not the administrator of it); I think they are using LDAP.

I really can't understand which could be the problem, I checked that all the environment variables are set correctly...



Also the example programs provided with the NVIDIA SDK are failing with this error when lunched from an ssh console:



OpenCL SW Info:



Error -1001 in clGetPlatformIDs Call !!!





!!! Error # -1000 () at line 42 , in file oclDeviceQuery.cpp !!!



Exiting...




Any idea/solution?

#6
Posted 05/12/2010 01:00 AM   
[quote name='benry' date='12 May 2010 - 02:00 AM' timestamp='1273626054' post='1054223']
Hi,
I used OpenCL on my personal computer (that is a Debian Linux machine) with no problems at all, I could run programs using OpenCL "remotely" launching them from an ssh console.
But I found the same problem described in this post on a Debian Linux machine using the same configuration I used on my personal one. The only difference that I can see is that in this machine is used a "centralized users accounting" (and I am not the administrator of it); I think they are using LDAP.
I really can't understand which could be the problem, I checked that all the environment variables are set correctly...

Also the example programs provided with the NVIDIA SDK are failing with this error when lunched from an ssh console:

[code]OpenCL SW Info:

Error -1001 in clGetPlatformIDs Call !!!


!!! Error # -1000 () at line 42 , in file oclDeviceQuery.cpp !!!

Exiting...[/code]

Any idea/solution?
[/quote]

This is an old problem, but as it is not solved yet, I believe it is a good idea to open it again. I solved it by giving the user who runs the software write access to /dev/nvidia0 (or whatever file there is) and /dev/nvidiactl. On my system, I could do this by adding the user to the "video" group but a chmod 777 of course also works (although probably only temporarily).
[quote name='benry' date='12 May 2010 - 02:00 AM' timestamp='1273626054' post='1054223']

Hi,

I used OpenCL on my personal computer (that is a Debian Linux machine) with no problems at all, I could run programs using OpenCL "remotely" launching them from an ssh console.

But I found the same problem described in this post on a Debian Linux machine using the same configuration I used on my personal one. The only difference that I can see is that in this machine is used a "centralized users accounting" (and I am not the administrator of it); I think they are using LDAP.

I really can't understand which could be the problem, I checked that all the environment variables are set correctly...



Also the example programs provided with the NVIDIA SDK are failing with this error when lunched from an ssh console:



OpenCL SW Info:



Error -1001 in clGetPlatformIDs Call !!!





!!! Error # -1000 () at line 42 , in file oclDeviceQuery.cpp !!!



Exiting...




Any idea/solution?





This is an old problem, but as it is not solved yet, I believe it is a good idea to open it again. I solved it by giving the user who runs the software write access to /dev/nvidia0 (or whatever file there is) and /dev/nvidiactl. On my system, I could do this by adding the user to the "video" group but a chmod 777 of course also works (although probably only temporarily).

#7
Posted 03/14/2012 05:48 PM   
Scroll To Top