Pages:
Author

Topic: 50 BTC if you write a complete guide on GPU mining on Ubuntu using ATI - page 6. (Read 102785 times)

sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
Well, something is broken with the fglrx driver installation. I told you not to touch it if it worked Smiley

What is the result of?

Code:
$ dpkg -l |grep fglrx

This:

Code:
mahkul@mahkul:~$ dpkg -l |grep fglrx
ii  fglrx                                2:8.801-0ubuntu1~xup~maverick                   Video driver for the ATI graphics accelerators
ii  fglrx-amdcccle                       2:8.801-0ubuntu1~xup~maverick                   Catalyst Control Center for the ATI graphics accelerators
ii  fglrx-modaliases                     2:8.801-0ubuntu1~xup~maverick                   Identifiers supported by the ATI graphics driver

Quote
Also, what happens if you try to install fglrx driver again?

Code:
$ sudo apt-get install fglrx

This:

Code:
mahkul@mahkul:~$ sudo apt-get install fglrx
[sudo] password for mahkul:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
fglrx is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 257 not upgraded.

full member
Activity: 126
Merit: 100
May I ask if this guide will work for multiple ATI 5970s?
full member
Activity: 238
Merit: 100
Well, something is broken with the fglrx driver installation. I told you not to touch it if it worked Smiley

What is the result of?

Code:
$ dpkg -l |grep fglrx

Also, what happens if you try to install fglrx driver again?

Code:
$ sudo apt-get install fglrx
sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
aticonfig should be in the fglrx package. xorg-driver-fglrx is an old package. But these drivers work (or not) by magic and there are millions of possibilities of conflicts between version so something might have got broken.

What is the result of
Code:
$ ls -l /etc/alternatives/aticonfig

I have a symlink to  /usr/lib/fglrx/bin/aticonfig

Try running  
Code:
$ sudo /usr/lib/fglrx/bin/aticonfig  --initial

I tried both:

Code:
mahkul@mahkul:~$ ls -l /etc/alternatives/aticonfig
ls: cannot access /etc/alternatives/aticonfig: No such file or directory
mahkul@mahkul:~$ sudo /usr/lib/fglrx/bin/aticonfig  --initial
[sudo] password for mahkul:
Unable to open /etc/ati/control, please reinstall the driver.
/usr/lib/fglrx/bin/aticonfig: No supported adapters detected
mahkul@mahkul:~$
full member
Activity: 238
Merit: 100
aticonfig should be in the fglrx package. xorg-driver-fglrx is an old package. But these drivers work (or not) by magic and there are millions of possibilities of conflicts between version so something might have got broken.

What is the result of
Code:
$ ls -l /etc/alternatives/aticonfig

I have a symlink to  /usr/lib/fglrx/bin/aticonfig

Try running 
Code:
$ sudo /usr/lib/fglrx/bin/aticonfig  --initial

sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
On a side note, is there any easy way to upgrade those drivers that I installed via the system->administration thing? I have no VNC access to that machine, only SSH. Thanks in advance for any help with that.

You can always login with X support via
Code:
ssh -X your_host
and
Code:
$ /usr/bin/jockey-gtk
runs the System->Administration->Hardware Drivers thingy.

Probably a better option to update is to remove those drivers altogether
Code:
$ sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
and install the ones from the ppa:ubuntu-x-swat/x-update.

I removed the old drivers using the remove command there and I installed the ones from ppa by performing this:

Code:
$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
$ sudo apt-get install fglrx
$ sudo apt-get install fglrx-amdcccle
$ sudo apt-get install fglrx-modaliases

However, now when I try to use aticonfig:

Code:
mahkul@mahkul:~/Downloads/poclbm$ sudo aticonfig --initial
sudo: aticonfig: command not found

Where did it disappear? Or is this a path issue or a missing package?

EDIT:

I read somewhere that this could be due to the xorg driver missing. I tried to install it, but this is what I got:

Code:
mahkul@mahkul:~$ sudo apt-get install xorg-driver-fglrx
[sudo] password for mahkul:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 xorg-driver-fglrx : Depends: fglrx but it is not going to be installed
E: Broken packages

Any thoughts?
full member
Activity: 238
Merit: 100
On a side note, is there any easy way to upgrade those drivers that I installed via the system->administration thing? I have no VNC access to that machine, only SSH. Thanks in advance for any help with that.

You can always login with X support via
Code:
ssh -X your_host
and
Code:
$ /usr/bin/jockey-gtk
runs the System->Administration->Hardware Drivers thingy.

Probably a better option to update is to remove those drivers altogether
Code:
$ sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev* xorg-driver-fglrx
and install the ones from the ppa:ubuntu-x-swat/x-update.
member
Activity: 91
Merit: 11
I've posted a guide, which may be helpful to some, over here.
sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
I am logged in via two ssh tunnels as the same user at the same time. On one of them this returns PASSED! On the other one:

Code:
mahkul@mahkul:/opt/ati-stream-sdk-v2.1-lnx32/samples/opencl/bin/x86$ ./CLInfo
./CLInfo: /usr/lib/libOpenCL.so: no version information available (required by ./CLInfo)
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs
Aborted

It has to work first before getting into poclbm.py.

Why does it look for /usr/lib/libOpenCL.so? Do you even have   /usr/lib/libOpenCL.so? Do you have LD_LIBRARY_PATH correct? Also, set DISPLAY=:0 to make sure it is correct.

If it does not help, give output of

$ ldd ./CLInfo 


I think I have had too much of alcohol this evening. Of course I didn't export the Library path on that console window...

Thank you so much for this again! Bitcoins sent, as you know. Smiley

On a side note, is there any easy way to upgrade those drivers that I installed via the system->administration thing? I have no VNC access to that machine, only SSH. Thanks in advance for any help with that.
newbie
Activity: 47
Merit: 0
Whoa, thanks! I missed the -f --adapter=all part in generating the xorg.conf. Now I have ~270MHash on each GPU.

If I mine successfully, I'll be sure to send some coins along.
full member
Activity: 238
Merit: 100
I am logged in via two ssh tunnels as the same user at the same time. On one of them this returns PASSED! On the other one:

Code:
mahkul@mahkul:/opt/ati-stream-sdk-v2.1-lnx32/samples/opencl/bin/x86$ ./CLInfo
./CLInfo: /usr/lib/libOpenCL.so: no version information available (required by ./CLInfo)
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs
Aborted

It has to work first before getting into poclbm.py.

Why does it look for /usr/lib/libOpenCL.so? Do you even have   /usr/lib/libOpenCL.so? Do you have LD_LIBRARY_PATH correct? Also, set DISPLAY=:0 to make sure it is correct.

If it does not help, give output of

$ ldd ./CLInfo 
full member
Activity: 238
Merit: 100
Thanks for the great instructions! At least I got pyopencl to compile. However, poclbm only shows 256MHash on GPU one and a paltry 2MHash on GPU two. It is a HD 5970, so I think it should do about 500MHash on each of them?

The other one is your CPU.

Quote
Any idea what could be wrong? What I did differently was maybe loading the latest drivers from ATI, with that grep command I get

A few things.
Quote
I did not use the export DISPLAY=:0 line, what does it do?

I would check this first. :0.0 is the first GPU, :0.1 is the second one, etc. :0 is "all of them". If you have :0.0 in your environment, only one will be used.

Also, Check if the card is correctly setup in /etc/X11/xorg.conf. It should have two Device sections.

Quote
grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
[    13.543] (II) ATI Proprietary Linux Driver Version Identifier:8.81.5
[    13.543] (II) ATI Proprietary Linux Driver Release Identifier: 8.812                               
[    13.543] (II) ATI Proprietary Linux Driver Build Date: Jan  4 2011 21:31:36

could that be the problem? I tried to disable crossfire, too, not sure how to check that.
[/quote]

It's a very recent driver but check the other suggestions first.
sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
On the two-card system I get:

Code:
mahkul@mahkul:~/Downloads/poclbm$ ./poclbm.py --user=user --pass=pass
Traceback (most recent call last):
  File "./poclbm.py", line 20, in
    platform = cl.get_platforms()[0]
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

Check
$ cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64
$ ./CLInfo

first.
I am logged in via two ssh tunnels as the same user at the same time. On one of them this returns PASSED! On the other one:

Code:
mahkul@mahkul:/opt/ati-stream-sdk-v2.1-lnx32/samples/opencl/bin/x86$ ./CLInfo
./CLInfo: /usr/lib/libOpenCL.so: no version information available (required by ./CLInfo)
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs
Aborted
full member
Activity: 238
Merit: 100
On the two-card system I get:

Code:
mahkul@mahkul:~/Downloads/poclbm$ ./poclbm.py --user=user --pass=pass
Traceback (most recent call last):
  File "./poclbm.py", line 20, in
    platform = cl.get_platforms()[0]
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

Check
$ cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64
$ ./CLInfo

first.
newbie
Activity: 47
Merit: 0
Thanks for the great instructions! At least I got pyopencl to compile. However, poclbm only shows 256MHash on GPU one and a paltry 2MHash on GPU two. It is a HD 5970, so I think it should do about 500 250MHash on each of them?

Any idea what could be wrong? What I did differently was maybe loading the latest drivers from ATI, with that grep command I get

Quote
grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
[    13.543] (II) ATI Proprietary Linux Driver Version Identifier:8.81.5
[    13.543] (II) ATI Proprietary Linux Driver Release Identifier: 8.812                                
[    13.543] (II) ATI Proprietary Linux Driver Build Date: Jan  4 2011 21:31:36

could that be the problem? I tried to disable crossfire, too, not sure how to check that.

I did not use the export DISPLAY=:0 line, what does it do?

sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
On the two-card system I get:

Code:
mahkul@mahkul:~/Downloads/poclbm$ ./poclbm.py --user=user --pass=pass
Traceback (most recent call last):
  File "./poclbm.py", line 20, in
    platform = cl.get_platforms()[0]
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

:/
full member
Activity: 238
Merit: 100
mahkul@mahkul:~/Downloads$ grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
[    11.175] (II) ATI Proprietary Linux Driver Version Identifier:8.78.30
[    11.175] (II) ATI Proprietary Linux Driver Release Identifier: 8.78.3                               
[    11.175] (II) ATI Proprietary Linux Driver Build Date: Sep 20 2010 21:30:49

This is Catalyst 10.10. But if it works, keep it.
sr. member
Activity: 434
Merit: 250
Every saint has a past. Every sinner has a future.
mahkul@mahkul:~/Downloads$ grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
[    11.175] (II) ATI Proprietary Linux Driver Version Identifier:8.78.30
[    11.175] (II) ATI Proprietary Linux Driver Release Identifier: 8.78.3                               
[    11.175] (II) ATI Proprietary Linux Driver Build Date: Sep 20 2010 21:30:49
full member
Activity: 238
Merit: 100
Sorted: just added -display :0 switch

Good. If you have some weird problems, you may try to uninstall the ones from System->Administration->Additional drivers and install  the ppa:ubuntu-x-swat/x-updates. The latter ones are 10.12 and are recommended (10.11 are as good as 10.12 and better for some but I had no problems with 10.12 while I had problems with multi-card set-up with older drivers). But if you don't have any problems, it's better not to touch it.

What version is printed with?
$ grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
full member
Activity: 238
Merit: 100
I managed to test it with my Radeon 4670 here and i works flawlessly. I am getting ~9 more khash/s than I was getting on Windows XP.

Wow. Out of 36 MH/s or so? That's impressive.

Quote
I am really impressed. I am a linux noobie, so perhaps what you wrote isn't very complicated for people who are more experienced. But still - impressive.

I'm quite experienced with Linux and it took me anyway a few hours to make it work. The worst part is that ATI drivers work by magic. If it doesn't work, you have no idea why. That's a problem with proprietary binary only drivers.

Quote
Should I use the Bitcoin address in your signature?

Yes, I'll appreciate it.

Quote
I am going to test this with a 2x5850 setup soon. If you don't mind, I may get back to you later if I run into problems with that?

Sure. No problem.
Pages:
Jump to: