Bitcoin Forum
July 12, 2024, 04:16:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Missing GPU in cgminer-Ubuntu  (Read 3153 times)
uzer (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 29, 2013, 09:11:59 PM
 #1

Hi,

Im using an AMD 5970 which has dual GPU's
Im running cgminer 3.1.1, latest catalyst driver and SDK 2.7 and ADL 5.0

Here is the issue:
Both GPU's are recognized on the system when i check them using "aticonfig"
I can see the gpu slot number and the temp etc.
but when I open cgminer it only shows one GPU, GPU0, and is missing GPU1.

I have tried these before I run cgminer
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1

but then when I run cgminer after, it loads, and "starts" cgminer, but then stays at a blank prompt and doesnt start hashing.

If I reboot and run cgminer without the export commands, it will work again but it will recognize the GPU0 only

Any suggestions?

Thanks
Kaepora
Newbie
*
Offline Offline

Activity: 42
Merit: 0



View Profile
May 29, 2013, 10:58:11 PM
 #2

Hi,

Im using an AMD 5970 which has dual GPU's
Im running cgminer 3.1.1, latest catalyst driver and SDK 2.7 and ADL 5.0

Here is the issue:
Both GPU's are recognized on the system when i check them using "aticonfig"
I can see the gpu slot number and the temp etc.
but when I open cgminer it only shows one GPU, GPU0, and is missing GPU1.

I have tried these before I run cgminer
export DISPLAY=:0
export GPU_MAX_ALLOC_PERCENT=100
export GPU_USE_SYNC_OBJECTS=1

but then when I run cgminer after, it loads, and "starts" cgminer, but then stays at a blank prompt and doesnt start hashing.

If I reboot and run cgminer without the export commands, it will work again but it will recognize the GPU0 only

Any suggestions?

Thanks
If I am not mistaken, you need a dummy plug or another screen plugged into the second card.
guide here: http://www.overclock.net/t/384733/the-30-second-dummy-plug
uzer (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 30, 2013, 07:07:41 AM
 #3

No, I think you misunderstood.

The AMD 5970, has 2 GPU processing units within a single card.

Any ideas why the 2nd one isnt appearing in cgminer only?
dentldir
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250



View Profile
May 30, 2013, 08:19:04 AM
 #4

Anytime I see "cgminer -ndevs" and "amdconfig -lsa" disagree on the number of devices, I just re-install the driver and rebuild the xconfig using amdconfig.

On Ubuntu 12.04 text console, something like:

service lightdm stop
sh amd_driver_install_version_whatever.run
service lightdm start
(switch back to text console)
export DISPLAY=:0.0
amdconfig --lsa
amdconfig --adapter=all --initial
service lightdm stop
service lightdm start
cgminer -ndevs
aticonfig -lsa

all sudoed of course.

Its worked every time for me.



1DentLdiRMv3dpmpmqWsQev8BUaty9vN3v
uzer (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 30, 2013, 09:00:09 AM
 #5

Hi,

I just tried the "export DISPLAY=:0" and then "cgminer -ndevs" after to see if cgminer recognizes the 2nd gpu, and it does Smiley.

But, after cgminer starts, it just hangs there, it goes "started cgminer 3.1.1" and then goes away like usual, but then im left with a blinking prompt, that usually changes into the hashing values, fan rpm, blocks etc.
any idea why that might be happening?

should I still try

"service lightdm stop
sh amd_driver_install_version_whatever.run
service lightdm start
(switch back to text console)
export DISPLAY=:0.0
amdconfig --lsa
amdconfig --adapter=all --initial
service lightdm stop
service lightdm start
cgminer -ndevs
aticonfig -lsa"

Thanks!
dentldir
Sr. Member
****
Offline Offline

Activity: 333
Merit: 250



View Profile
May 30, 2013, 09:12:53 AM
 #6

I think so.  I've never isolated exactly why it can come off the rails like this, but I'll bet someone on this forum knows.

It has something to do with root vs. user and the number of devices in the X config.

Running cgminer as root might be instructive as well, but I wouldn't recommend it as a permanent fix if it does happen to work.






1DentLdiRMv3dpmpmqWsQev8BUaty9vN3v
uzer (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 30, 2013, 09:35:54 AM
 #7

Hi dentldir,

So ive tried a few things which all result in it not mining.
I usually use cgminer with "-I 9" as its a dedicated rig, but when I get the 2nd gpu recognized that makes it hang at the blinking prompt, if I take"-I 9" out, it starts up but says "thread 1 being disabled" and it doesnt hash. I have also tried cgminer with sudo and it gives the same results.

Ill try your suggestion, but im a little confused on the process, sorry =/, so lightdmstop stops xserver, and then i reinstall the driver, and then reboot? or start lightdm before reboot?

Btw, did you have the exact same problem on your rig?

Thanks
uzer (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
May 30, 2013, 09:59:21 AM
 #8

also, the strange thing is Im in the process of setting up my rigs, so far I have 3 running, each has an AMD 5970.

Out of the three, one of them sees both GPUs on its own, I didnt do any export=:0, but that one isnt hashing to its "full potential"
and the other 2 are only hashing with one GPU recognized.

Just thought it might help to mention it
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!