cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

yurtesen
Miniboss

Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Hello,

1- I am trying to install an nvidia card to use with the display and radeon for calculations. However once I install the nvidia driver, the clinfo does not show Radeon anymore. (I didnt try/check with nouveau driver ... )

So, is it because X is not running on this card? If yes, is there any instructions on what to do to run a dummy X on it?

Does this work better on Windows? or would it have made any difference if both cards were from AMD?

Thanks,

0 Kudos
Reply
1 Solution

Accepted Solutions
dmeiser
Elite

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Normally you'd just have to list the devices in your /etc/X11/xorg.conf. For example in my xorg.conf I have the following three devices:

Section "Device"

          Identifier  "aticonfig-Device[0]-0"

          Driver      "fglrx"

          BusID       "PCI:1:0:0"

EndSection

Section "Device"

          Identifier  "aticonfig-Device[1]-0"

          Driver      "fglrx"

          BusID       "PCI:4:0:0"

EndSection

Section "Device"

          Identifier  "aticonfig-Device[2]-0"

          Driver      "fglrx"

          BusID       "PCI:5:0:0"

EndSection

You can find the BusID by running the lspci command and looking for your graphics devices. When you add your devices to the xorg.conf they should be running after you restart your x server.

Cheers,

Dominic

View solution in original post

0 Kudos
Reply
12 Replies
nou
Exemplar

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

yes you need dummy Xserver to run on that card. with windows it should be possible to run headless enviroment. in linux it is possible too it just need running Xserver.

0 Kudos
Reply
yurtesen
Miniboss

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Thanks, do you know a simple configuration for starting X normally on the 1st card and headless on the 2nd card at boot time?

0 Kudos
Reply
dmeiser
Elite

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Normally you'd just have to list the devices in your /etc/X11/xorg.conf. For example in my xorg.conf I have the following three devices:

Section "Device"

          Identifier  "aticonfig-Device[0]-0"

          Driver      "fglrx"

          BusID       "PCI:1:0:0"

EndSection

Section "Device"

          Identifier  "aticonfig-Device[1]-0"

          Driver      "fglrx"

          BusID       "PCI:4:0:0"

EndSection

Section "Device"

          Identifier  "aticonfig-Device[2]-0"

          Driver      "fglrx"

          BusID       "PCI:5:0:0"

EndSection

You can find the BusID by running the lspci command and looking for your graphics devices. When you add your devices to the xorg.conf they should be running after you restart your x server.

Cheers,

Dominic

View solution in original post

0 Kudos
Reply
yurtesen
Miniboss

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Thanks, that is very useful information. I will try it tomorrow...

0 Kudos
Reply
yurtesen
Miniboss

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

It does not appear to be working. I see no attempt from Xorg to load the fglrx driver. I think there must be more definitions related to devices for them to function perhaps? Maybe this only works if all the cards are ATI/AMD? The card I use for displays is from nvidia?

0 Kudos
Reply
dmeiser
Elite

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Do you have a device section for your NVIDIA device? On my nvidia machine I have a section like this in my xorg.conf:

Section "Device"

    Identifier     "Device0"

    Driver         "nvidia"

    VendorName     "NVIDIA Corporation"

    BoardName      "NVS 4200M"

EndSection

If you have your monitor hooked up to the nvidia device you're going to have to use this device identifier in your screen section. What happens when you run lsmod and grep for nvidia, ati, and nouveau? Can you see the drivers associated with each device by doing 'lspci -k'? How many platforms does clinfo find?

0 Kudos
Reply
dmeiser
Elite

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

I forgot to ask:  Are these problems only when you're trying to log in remotely or does it also not work when you logged in locally and have the x server running? It would probably be easier to get it to work locally first.

0 Kudos
Reply
yurtesen
Miniboss

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

If I am running on the nvidia card, and I have device section for radeon, then X does not load anything related to radeon (I see nothing related to fglrx in xorg log file)

I tried to put displays to both cards and tried to create a screen entry for both of them manually. However this time fglrx is crashing... (I also tried nouveau driver for nvidia)

Lets recap, you run display on nvidia card and you only have a device section for radeon? Do you see in xorg log file that fglrx driver is loaded? You dont have any other radeon related entries in the conf file?

I removed the nvidia card so I am not able to see the outputs now. But I remember that both nvidia and fglrx modules were loaded to kernel.

0 Kudos
Reply
timchist
Elite

Re: Linux Nvidia primary, Radeon headless OpenCL not finding radeon?

Jump to solution

Hi yurtesen.

Did you manage to solve the problem?

I'm having a similar setup - GTX 470 in slot 1, 5850 in slot 2 with monitor only connected to the NVIDIA card (can't insert the cards in different order as Radeon wouldn't fit in my case). Tried different options in xorg configuration files - no luck. Either fglrx driver is not loaded and the system starts, but clinfo only sees GTX and CPU, or a black screen shown.

0 Kudos
Reply