Title: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 28, 2011, 02:48:38 PM I followed this guide: http://forum.bitcoin.org/?topic=7514.0
aticonfig shows both of my cards. this is the issue i seem to be having: I can clone displays(single desktop), in which case both GPU's work for mining. this is the xorg.conf for that: Code: Section "ServerLayout" I can have a multi-desktop (xinerama still disabled). but only one GPU is seen by the miner. Here's the xorg.conf for the this scenario: Code: Section "ServerLayout" what i would like to be able to do is have a multi-desktop (2 monitors where I can drag windows between them, not cloned) and have the miner recognize both GPUs. i'm willing to try anything guys. thanks! Title: Re: Linux only recognizing one GPU Post by: Reikoku on June 28, 2011, 05:12:09 PM You should probably correct the title of your thread as Linux is quite clearly seeing both GPUs.
Your issue is more like 'OpenCL only seeing one GPU whilst using Multi-Desktop'. Whilst I don't know the fix, using the correct title will probably attract the attention of the people who will know and/or be able to test solutions for you. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 28, 2011, 05:43:16 PM thanks for the response, you're right, changed!
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 02:40:10 AM Umm, in your post, you say that the first config is cloned mode, but reading the configs, it looks like the second is cloned mode...
Anyway, in that guide, are you doing the part where he types: export DISPLAY=:0.1; aticonfig --pplib-cmd "get fanspeed 0" to get the fanspeed? Or changing the DISPLAY variable at all for that matter? If you are, you need to make sure you set DISPLAY back to :0 before mining, or only one card will show. You can do this like: export DISPLAY=:0 Does that help? Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 04:17:48 AM [note these were executed using the SECOND xorg configuration (dual monitor, not cloned)]
leshow@crunchdesk:~$ export DISPLAY=:0.1 leshow@crunchdesk:~$ sudo aticonfig --pplib-cmd "get fanspeed 0" [sudo] password for leshow: ati_pplib_cmd: Unable to open display `:0.1'. aticonfig: parsing the command-line failed. leshow@crunchdesk:~$ export DISPLAY=:0 leshow@crunchdesk:~$ cd miners/poclbm/ leshow@crunchdesk:~/miners/poclbm$ ./poclbm.py No device specified or device not found, use -d to specify one of the following
leshow@crunchdesk:~/miners/poclbm$ am i supposed to be sudo when i export the display? i know the xorg.conf's look deceiving, but I assure you the first setup is cloned and the second one is dual-display. They were both generated using aticonfig --initial -f --adapter=all (this gives me the first one) then if i reboot, and go sudo amdcccle and set it up to be multi-display, I get the second one. Both GPU's are only seen in the first xorg. I followed so many guides and got to the same conclusion with everything, tried all different version of OpenCL. I'm convinced it's something I'm missing in the xorg.conf. so anybody on linux with more than one GPU and a dual-monitor setup please take a look and help me out, I'd really appreciate it. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 04:25:39 AM OK this is weird. I added:
Screen "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0" to my dual-head xorg (in the ServerLayout section) and I get a single BIG desktop stretched across 2 monitors. WITH BOTH GPUS RECOGNIZED BY OPENCL it's closer to what I was hoping for, but when I maximize a window it doesn't behave separately, the window stretches across 2 monitors. any ideas on having them both be separate screens, but connected, like it would be in windows with multi-display? Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 05:51:43 AM any ideas on having them both be separate screens, but connected, like it would be in windows with multi-display? You could try turning on Xinerama, by adding this line to ServerLayout:Option "Xinerama" Might help. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 11:58:35 AM i added
Option "Xinerama" "on" in server layouts, it creates the 'desktop' I was looking for (though for some reason my wallpaper disappeared) except now only one miner is seen by openCL,
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 05:05:34 PM Remove the xinerama option.
I assume you're using Unity? If you install the package compizconfig-settings-manager and then open the settings manager (themes and tweaks -> CompizConfig Settings Manager), you can go to: Window Management->Place Windows Try playing with the multi output mode option - see if you can get the effect you want. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 06:23:49 PM no i'm using Openbox. I'm on crunchbang, it's a debian based distribution so most ubuntu settings will work, however I don't have gnome or any of the fancy gui's.
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 07:43:53 PM Hmm... Openbox should maximize to one screen by default.
What's the output of this command? xdpyinfo -ext XINERAMA | grep head Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 07:52:43 PM let you know as soon as i get home. there's a single taskbar across the entire 2 screens, which leads me to believe openbox doesn't know there are actually 2 monitors, it's behaving like one big screen.
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: Grinder on June 29, 2011, 08:11:47 PM Probably not the solution you prefer, but... http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=146804
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 10:02:44 PM Probably not the solution you prefer, but... http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=146804 I have openbox, so I could enable the compiz extension and try but it won't be compiz-fusion like you get in gnome.Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 10:08:17 PM Hmm... Openbox should maximize to one screen by default. What's the output of this command? xdpyinfo -ext XINERAMA | grep head returns nothing. if i leave out grep head Code: name of display: :0.0 screen info on screen #0 and #1 follows, it's very long. then Code: XINERAMA version 1.1 opcode: 128 really appreciate all the help so far guys. I feel like there is a workaround close but I can't quite get it. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 10:28:56 PM Try adding this to your xorg.conf:
Code: Section "ServerFlags" Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 10:38:34 PM if I turn Randr on it makes no difference, tried:
xrandr --output DFP3 --auto --left-of DFP4 (proper names of the displays according to xrandr) but it does nothing, so does trying to do it with grandr, the GUI front-end Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 10:40:19 PM I think the problem is it is only making one display, i see all these examples of exporting DISPLAY=:0 to get to miner to work or exporting DISPLAY=:0.1 to get access to a different display. However my setup seems to only have one display 0.0, I dont have to export for the miners to work and I can't switch to any other one.
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 29, 2011, 11:12:42 PM I think the problem is it is only making one display, i see all these examples of exporting DISPLAY=:0 to get to miner to work or exporting DISPLAY=:0.1 to get access to a different display. However my setup seems to only have one display 0.0, I dont have to export for the miners to work and I can't switch to any other one. You could try changing: Screen "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0" to Screen 1 "aticonfig-Screen[1]-0" LeftOf "aticonfig-Screen[0]-0" It should force your second screen to be identified as :0.1 What's the output of "xdpyinfo -ext XINERAMA | grep head" now? Openbox needs the screen geometry to be exported in the XINERAMA extension's protocol for the maximize on one screen thing to work. RandR provides this functionality, which is why I suggested turning it on. When the command above doesn't show anything, that suggests that there's no Xinerama information available. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 29, 2011, 11:15:47 PM i added a 0 and a 1 to the screen lines. the xdpyinfo line doesn't output anything
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 30, 2011, 12:02:38 AM If you revert back to the 1st config you had in your 1st post (The one you said is cloned mode), and simply move one of the monitors to the second card, what happens?
That should be what you're looking for, if you're okay with having the monitors on separate cards. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 12:28:20 AM I've tested with all different configurations. I'm completely OK with it being on the second card.
When I have that config and put the plug in the second slot I get one screen with open box in it, and the other screen has X in it but not openbox. When I drag my cursor over there I just get an 'X' over the cursor (like X has loaded but there is no WM session running in it) If you know how to launch openbox on that display I think that would fix it. Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 30, 2011, 12:33:14 AM Try:
Code: export DISPLAY=:0.1 Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 12:42:49 AM ok, will try that just have to copy over a few files before I can restart with the old xorg.
man if this works i'll be sending some BTC your way for sure! Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 02:54:51 AM the behaviour is a bit weird.... I can't drag windows between the two displays, but if i export DISPLAY=:0.1 then launch an app from the terminal (while openbox from the command you gave me is still running) it launches the app WITH the right window decorators on the black screen.
EDIT: OK. the black screen was just no wallpaper, I can right click and the openbox menu comes up (in the black screen display), but it launches apps to the FIRST monitor. also none of the stuff that is in the first session seems to be loading (panel on bottom, wallpaper, taskbar stuff). it's just behaving very strangely both miners show up, but the other screen isn't really usable in this state. unless I'm leading openbox improperly and can get my monitor to drag windows between the two displays Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 30, 2011, 03:08:05 AM You could try changing openbox to openbox-session, but I have a feeling it won't help much.
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 03:11:52 AM wow that worked great. openbox-session launches all the stuff I need with openbox, only thing is i cant drag between displays
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 03:13:18 AM it's weird because the mouse can cross over but I can't bring any windows
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 03:19:00 AM i have a feeling this is about as good as it's gonna get though. thanks sooooo much for your help man you saved me weeks of tinkering with this thing. Is that donate address current?
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: drawoc on June 30, 2011, 03:38:51 AM i have a feeling this is about as good as it's gonna get though. thanks sooooo much for your help man you saved me weeks of tinkering with this thing. Is that donate address current? Yeah, that address is correct.I was gonna suggest going back to the other xorg.conf (with both monitors on one card), and adding this line to the device section for aticonfig-Device[0]-0 : Option "DesktopSetup" "horizontal" Anyway, if you don't want to tinker with it anymore, that's understood. Good luck mining! Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: leshow on June 30, 2011, 03:44:04 AM I'll give that a shot tomorrow. if you get a brain wave later on and think you've got another solution, i'm always ready to try something. just figured you'd had enough by now :P
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: carborundum on March 26, 2013, 10:36:12 PM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated.
Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: -ck on March 26, 2013, 11:50:14 PM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated. AMD OpenCL stupidly sees each "screen" as a device. That means that if you have 2 monitors connected to one GPU, you get two opencl devices. Presumably the converse is also true, seeing one device with 2 GPUs making one virtual "screen" with xinerama. I'm guessing if you force an extra output on the 2nd card, either by config or by adding a monitor/dummy plug to another output on it, you'll get two opencl "devices". Don't ask me who the moron in AMD was that thought opencl compute devices should be associated with screens and not physical devices. ::)Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: grue on March 26, 2013, 11:54:07 PM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated. AMD OpenCL stupidly sees each "screen" as a device. That means that if you have 2 monitors connected to one GPU, you get two opencl devices. Presumably the converse is also true, seeing one device with 2 GPUs making one virtual "screen" with xinerama. I'm guessing if you force an extra output on the 2nd card, either by config or by adding a monitor/dummy plug to another output on it, you'll get two opencl "devices". Don't ask me who the moron in AMD was that thought opencl compute devices should be associated with screens and not physical devices. ::)Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: -ck on March 27, 2013, 12:08:04 AM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated. AMD OpenCL stupidly sees each "screen" as a device. That means that if you have 2 monitors connected to one GPU, you get two opencl devices. Presumably the converse is also true, seeing one device with 2 GPUs making one virtual "screen" with xinerama. I'm guessing if you force an extra output on the 2nd card, either by config or by adding a monitor/dummy plug to another output on it, you'll get two opencl "devices". Don't ask me who the moron in AMD was that thought opencl compute devices should be associated with screens and not physical devices. ::)Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: carborundum on March 27, 2013, 12:21:43 AM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated. AMD OpenCL stupidly sees each "screen" as a device. That means that if you have 2 monitors connected to one GPU, you get two opencl devices. Presumably the converse is also true, seeing one device with 2 GPUs making one virtual "screen" with xinerama. I'm guessing if you force an extra output on the 2nd card, either by config or by adding a monitor/dummy plug to another output on it, you'll get two opencl "devices". Don't ask me who the moron in AMD was that thought opencl compute devices should be associated with screens and not physical devices. ::)Nope, its not the screens, they're recognised fine. It's something to do with xinerama. With xinerama "off" in the xorg.conf then clinfo reports all devices. If xinerama is on then only one device is registered. aticonfig --lsa shows all devices under all conditions. I'm begining to suspect its a driver problem?? Title: Re: OpenCL only seeing one GPU whilst using Multi-Desktop Post by: -ck on March 27, 2013, 12:32:32 AM Anyone resolve this ancient problem? One of my cards disappears from OpenCL when Xinerama is activated. AMD OpenCL stupidly sees each "screen" as a device. That means that if you have 2 monitors connected to one GPU, you get two opencl devices. Presumably the converse is also true, seeing one device with 2 GPUs making one virtual "screen" with xinerama. I'm guessing if you force an extra output on the 2nd card, either by config or by adding a monitor/dummy plug to another output on it, you'll get two opencl "devices". Don't ask me who the moron in AMD was that thought opencl compute devices should be associated with screens and not physical devices. ::)Nope, its not the screens, they're recognised fine. It's something to do with xinerama. With xinerama "off" in the xorg.conf then clinfo reports all devices. If xinerama is on then only one device is registered. aticonfig --lsa shows all devices under all conditions. I'm begining to suspect its a driver problem?? |