Pages:
Author

Topic: 50 BTC if you write a complete guide on GPU mining on Ubuntu using ATI (Read 102909 times)

legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Hmm found someone still using this so I thought they should use something at least a little more updated Tongue
See my sig Smiley
member
Activity: 147
Merit: 11
The day to rise has come.
Code:
svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
is timing out for over a week, anyone have a mirror for python jsonrpc or the updated url if it's changed? Thanks.
I got it from this https://github.com/davvid/python-jsonrpc
sr. member
Activity: 302
Merit: 250
Code:
svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
is timing out for over a week, anyone have a mirror for python jsonrpc or the updated url if it's changed? Thanks.
legendary
Activity: 2955
Merit: 1049

The X should run. To check if the correct driver is installed:
$ fglrxinfo

Hi
if I do this I get this:
------------------------
Speicherzugriffsfehler
-----------------------
in OpenSuse 11.4

and
-----------------------
aticonfig --initial=check
Check: Found fglrx section.
-----------------------
seems to be ok

any hints?
TIA
member
Activity: 112
Merit: 10
Firstbits: 1yetiax
Raulo, thanks a lot for your detailed guide! It helped me a lot setting up my miner. Phoenix or pobclm did not work for me, however I finally got DiabloMiner running.
I have tipped you the "change" from my first mining payout!
newbie
Activity: 20
Merit: 0
Quote
Edit:
Working version on 64 bits Ubuntu 11.04 - Ati Catalyst 11.4 - Ati SDK 2.3 with poclbm and phoenix miner in 31 steps:
Hardware:(budget mining)MSI 770-c45 Mobo with athlon2 X2 cpu - cooler master 650w powersupply - 1x GPU Ati 58xx

1. sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 g++ libboost-all-dev subversion git-core python-numpy
2. sudo apt-get install ia32-libs
3. cd ~/; mkdir catalyst11.4; cd catalyst11.4/
4. wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run
5. chmod +x ati-driver-installer-11-4-x86.x86_64.run
6. sudo apt-get remove --purge xserver-xorg-video-radeon
7. sh ati-driver-installer-11-4-x86.x86_64.run --buildpkg Ubuntu/natty
8. sudo dpkg -i fglrx*.deb
9. sudo aticonfig --initial -f
10. sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
10a.reboot
11. wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.3-lnx64.tgz
12. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
13. sudo tar xvfz ati-stream-sdk-v2.3-lnx64.tgz -C /opt
14. sudo tar xvfz icd-registration.tgz -C /
15. echo export DISPLAY=:0 >> .bashrc
16. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc
17. source .bashrc
18. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
19. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
20. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
21. git clone git://github.com/m0mchil/poclbm poclbm
22. mv trunk phoenix
23. tar zxfv pyopencl-0.92.tar.gz
24. cd pyopencl-0.92
25. ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.3-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64
26. make -j3
27. sudo make install
28. cd ../python-jsonrpc
29. sudo python setup.py install
30. cd ~
31. chmod +x phoenix/phoenix.py poclbm/poclbm.py

Its works here!
but I will add something in your tutorial for GUIMINER:

32. sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev
33. wget https://github.com/Kiv/poclbm/tarball/v2011-05-21/Kiv-poclbm-v2011-05-21.tar.gz
34. tar zxfv Kiv-poclbm-v2011-05-21.tar.gz
35. cd Kiv-poclbm-89f9bd4; python guiminer.py
36. if you want, run your bitcoin

I followed these instructions but when i restarted the machine, my cards were no longer being seen as opencl devices. Can anybody help me with why that would happen?

I have tried export DISPLAY=:0
and the export LD_LIBRARY_PATH line again after the reboot and they have made no difference.
newbie
Activity: 51
Merit: 0
I think "--device" starts in 1, but you put 0, and then you got an error.
nope, there is no libopencl.so in /usr/lib  but why?

I got this error (similar of yours):
Code:
  File "poclbm.py", line 3, in
    import pyopencl as cl
  File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so: cannot open shared object file: No such file or directory
when I made a script in ubuntu 11.04. But manually in the terminal its run normal. I do not kown why this happen. Maybe we need to put
Code:
echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc
and
Code:
./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.3-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64
in other place too. Anyone can help?
o.0
donator
Activity: 1736
Merit: 1014
Let's talk governance, lipstick, and pigs.
I'm using this as a first time Linux user. Thanks for doing this, I'll donate if I get it to work!
newbie
Activity: 10
Merit: 0
I think "--device" starts in 1, but you put 0, and then you got an error.
nope, there is no libopencl.so in /usr/lib  but why?
I finally got it working on a clean 10.10 install with Catalyst 11.04 and SDK 2.1 and poclbm
I kept getting this segmentation fault afther the catalyst install on 11.04, 10.10 and 10.04, then i thought i must be the hardware so i changed the monitor, but the same segmentation fault kept showing up again on 10.04 10.10 and 11.04 even gave a error ./default policy.sh does not support version. Oke they were nameless monitor brands that someone gave to me, but that shouldn't matter. Finally i switched to the monitor of my main computer and YES, this time no segmentation fault. i have used the install procedure from all around the forum and beyond and it went smoothly first time install, from catalyst to SDK/OpenCL up to poclbm.

Edit:
Working version on 64 bits Ubuntu 11.04 - Ati Catalyst 11.4 - Ati SDK 2.3 with poclbm and phoenix miner in 31 steps:
Hardware:(budget mining)MSI 770-c45 Mobo with athlon2 X2 cpu - cooler master 650w powersupply - 1x GPU Ati 58xx


1. sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 g++ libboost-all-dev subversion git-core python-numpy
2. sudo apt-get install ia32-libs
3. cd ~/; mkdir catalyst11.4; cd catalyst11.4/
4. wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run
5. chmod +x ati-driver-installer-11-4-x86.x86_64.run
6. sudo apt-get remove --purge xserver-xorg-video-radeon
7. sh ati-driver-installer-11-4-x86.x86_64.run --buildpkg Ubuntu/natty
8. sudo dpkg -i fglrx*.deb
9. sudo aticonfig --initial -f
10. sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
10a.reboot
11. wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.3-lnx64.tgz
12. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
13. sudo tar xvfz ati-stream-sdk-v2.3-lnx64.tgz -C /opt
14. sudo tar xvfz icd-registration.tgz -C /
15. echo export DISPLAY=:0 >> .bashrc
16. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc
17. source .bashrc
18. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
19. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
20. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
21. git clone git://github.com/m0mchil/poclbm poclbm
22. mv trunk phoenix
23. tar zxfv pyopencl-0.92.tar.gz
24. cd pyopencl-0.92
25. ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.3-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64
26. make -j3
27. sudo make install
28. cd ../python-jsonrpc
29. sudo python setup.py install
30. cd ~
31. chmod +x phoenix/phoenix.py poclbm/poclbm.py

Works for me too, thanks!
But I have 3 gpu, and when I use only one of them everything is ok, when I start second, I've got 350 mh/s with -d 0 and 12mh/s with -d 1, and when I start third I've got 200, 112 and 90 mh/s respectively. wtf?
CPU is -d 3
newbie
Activity: 51
Merit: 0
Hello. I've tried to follow this guide on ubuntu 11.04 with sdk 2.3 (coz I have 3x6950)
./CLInfo |grep CL_DEVICE_TYPE_GPU shows 3 gpu same as ./poclbm.py so everything is fine until this:

Code:
/poclbm$ ./poclbm.py --host=mining.bitcoin.cz --port=8332 --user=username --pass=pass --device=0
Traceback (most recent call last):
  File "./poclbm.py", line 3, in
    import pyopencl as cl
  File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so: cannot open shared object file: No such file or directory

I don't understand what file or directory does not exist? Can anyone help me?

I think "--device" starts in 1, but you put 0, and then you got an error.
newbie
Activity: 51
Merit: 0
I tried to follow your ubuntu 10.10 install guide on a mobo msi 770 c-45/ graphics ati 5870, clean install, but i keep getting the problem that after the ATI 11.3 installation, i can't login to ubuntu, the screen stays black. I can login when i reset X to the default driver, but no login with the ATI 11.3. I have tried this guide on 10.10 and 11.04, with ati 11.3/11.4 and both give the same result: fglrxinfo segmentation fault.

Catalyst drivers are a major pain in the neck. They are frequently completely broken. I've written this guide with Catalyst 10.12 and SDK 2.1 and I recommend against any other versions unless one really has to (e.g. 6990). I used Ubuntu 10.04 but 10.10 worked for many as well.

I finally got it working on a clean 10.10 install with Catalyst 11.04 and SDK 2.1 and poclbm
I kept getting this segmentation fault afther the catalyst install on 11.04, 10.10 and 10.04, then i thought i must be the hardware so i changed the monitor, but the same segmentation fault kept showing up again on 10.04 10.10 and 11.04 even gave a error ./default policy.sh does not support version. Oke they were nameless monitor brands that someone gave to me, but that shouldn't matter. Finally i switched to the monitor of my main computer and YES, this time no segmentation fault. i have used the install procedure from all around the forum and beyond and it went smoothly first time install, from catalyst to SDK/OpenCL up to poclbm.

Edit:
Working version on 64 bits Ubuntu 11.04 - Ati Catalyst 11.4 - Ati SDK 2.3 with poclbm and phoenix miner in 31 steps:
Hardware:(budget mining)MSI 770-c45 Mobo with athlon2 X2 cpu - cooler master 650w powersupply - 1x GPU Ati 58xx


1. sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 wget execstack libelfg0 g++ libboost-all-dev subversion git-core python-numpy
2. sudo apt-get install ia32-libs
3. cd ~/; mkdir catalyst11.4; cd catalyst11.4/
4. wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-4-x86.x86_64.run
5. chmod +x ati-driver-installer-11-4-x86.x86_64.run
6. sudo apt-get remove --purge xserver-xorg-video-radeon
7. sh ati-driver-installer-11-4-x86.x86_64.run --buildpkg Ubuntu/natty
8. sudo dpkg -i fglrx*.deb
9. sudo aticonfig --initial -f
10. sudo aticonfig --input=/etc/X11/xorg.conf --tls=1
10a.reboot
11. wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.3-lnx64.tgz
12. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
13. sudo tar xvfz ati-stream-sdk-v2.3-lnx64.tgz -C /opt
14. sudo tar xvfz icd-registration.tgz -C /
15. echo export DISPLAY=:0 >> .bashrc
16. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc
17. source .bashrc
18. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
19. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
20. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
21. git clone git://github.com/m0mchil/poclbm poclbm
22. mv trunk phoenix
23. tar zxfv pyopencl-0.92.tar.gz
24. cd pyopencl-0.92
25. ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.3-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.3-lnx64/lib/x86_64
26. make -j3
27. sudo make install
28. cd ../python-jsonrpc
29. sudo python setup.py install
30. cd ~
31. chmod +x phoenix/phoenix.py poclbm/poclbm.py

Its works here!
but I will add something in your tutorial for GUIMINER:

32. sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev
33. wget https://github.com/Kiv/poclbm/tarball/v2011-05-21/Kiv-poclbm-v2011-05-21.tar.gz
34. tar zxfv Kiv-poclbm-v2011-05-21.tar.gz
35. cd Kiv-poclbm-89f9bd4; python guiminer.py
36. if you want, run your bitcoin

if you do not want to digit all time "cd Kiv-poclbm-89f9bd4; python guiminer.py":
37. gedit ~/.bash_aliases
38. put in there: alias guiminer="cd Kiv-poclbm-89f9bd4; python guiminer.py"
39. save, exit and reboot
40. now, you only need to put "guiminer", without the "s,  in terminal and it will run.
newbie
Activity: 10
Merit: 0
Hello. I've tried to follow this guide on ubuntu 11.04 with sdk 2.3 (coz I have 3x6950)
./CLInfo |grep CL_DEVICE_TYPE_GPU shows 3 gpu same as ./poclbm.py so everything is fine until this:

Code:
/poclbm$ ./poclbm.py --host=mining.bitcoin.cz --port=8332 --user=username --pass=pass --device=0
Traceback (most recent call last):
  File "./poclbm.py", line 3, in
    import pyopencl as cl
  File "/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-x86_64.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so: cannot open shared object file: No such file or directory

I don't understand what file or directory does not exist? Can anyone help me?
newbie
Activity: 62
Merit: 0
Hi.
I'm trying to make it on Ubuntu Server 11.04 (No X, via ssh). I have HD5770.
./CLInfo don't see GPU, only CPU
And poclbm too:

Code:
sicness@demon:~/poclbm$ python ./poclbm.py
No device specified or device not found, use -d to specify one of the following

[0]     Intel(R) Pentium(R) Dual  CPU  E2180  @ 2.00GHz

I installed fglrx from http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English becouse it don't want to be installed form ubuntu reps Sad

Code:
sicness@demon:~/poclbm$ lsmod | grep fg
fglrx                2434640  0
sicness@demon:~/poclbm$ lspci | grep VGA
04:00.0 VGA compatible controller: ATI Technologies Inc Juniper [Radeon HD 5700 Series]

I don't know why... Help! Any idea?
newbie
Activity: 2
Merit: 0
*err* I must have missed that...
It seems misinterpreted the opencl-capability of the driver as a support for all cards you can actually use the driver for.

Thank you anyway, at least I can stop trying Wink
full member
Activity: 238
Merit: 100
shows  "0. 02:00.0 ATI Radeon HD 3850" though.

OpenCL is supported on HD4xxx, HD5xxx, and HD6xxx only.
http://developer.amd.com/gpu/AMDAPPSDK/pages/DriverCompatibility.aspx

HD3850 will not work with OpenCL miners neither in Linux nor Windows.
newbie
Activity: 2
Merit: 0
Hi there,

I followed the instructions above (thank you very much!!!) and it runs hashes - but only the CPU is showing up in ./CLInfo and poclbm.  apiconfig --list-adapters shows  "0. 02:00.0 ATI Radeon HD 3850" though.
I'm not quite sure what could be wrong.

Thank you in advance,
thesaint4cs
newbie
Activity: 6
Merit: 0
Tip from the pros, don't install python cl with apt-get install python-pyopencl or it will render the instructions useless as the /etc/ati dir magically goes away never to return.  Instead follow the instructions and compile it yourself.
newbie
Activity: 30
Merit: 0
you da man.  Phoenix now working.  Slightly better numbers than poclbm.  Haven't overclocked the GPU cores.

Thanks!
newbie
Activity: 53
Merit: 0
Thank you. Yes, I installed AMDOverdriveCtrl right away; didn't want to overcook my new Radeon card.  Underclocked memory to 300mhz, GPU temp holding steady at about 69C now.  Makes a great spaceheater!

Would like to get Phoenix and BFI_INT working on this solo mining testbed. According to the lengthy Phoenix thread it should work. But I still get: Failed to connect...

phoenix$ python phoenix.py -u http://USER:[email protected]:8332 -k poclbm VECTORS BFI_INT DEVICE=1 WORKSIZE=128
[15/05/2011 09:18:48] Phoenix r76 starting...
[15/05/2011 09:18:51] Failed to connect, retrying...
[0 Khash/sec] [0 Accepted] [0 Rejected] [RPC]


Free coin to anyone who can help.

If you want to solomine you run your bitcoin client like:
 
in the .bitcoin directory you make a textfile named bitcoin.conf with the following text:

rpcuser=yourrpcusername (make a name)
rpcpassword=yourrpcpassword (make a password)
rpcallow=127.0.0.1
rpcport=8332

and start you bitcoinclient like: sudo ./bitcoin -server

and in the phoenixminer use rpcuser/password like: python phoenix.py -u http://RPCUSER:[email protected]:8332 -k poclbm VECTORS BFI_INT DEVICE=1 WORKSIZE=128

then you can start solomining
newbie
Activity: 30
Merit: 0
Thank you. Yes, I installed AMDOverdriveCtrl right away; didn't want to overcook my new Radeon card.  Underclocked memory to 300mhz, GPU temp holding steady at about 69C now.  Makes a great spaceheater!

Would like to get Phoenix and BFI_INT working on this solo mining testbed. According to the lengthy Phoenix thread it should work. But I still get: Failed to connect...

phoenix$ python phoenix.py -u http://USER:[email protected]:8332 -k poclbm VECTORS BFI_INT DEVICE=1 WORKSIZE=128
[15/05/2011 09:18:48] Phoenix r76 starting...
[15/05/2011 09:18:51] Failed to connect, retrying...
[0 Khash/sec] [0 Accepted] [0 Rejected] [RPC]


Free coin to anyone who can help.
Pages:
Jump to: