Pages:
Author

Topic: Ubuntu Natty Narwhal 11.04 Mining Guide / HOWTO - page 31. (Read 281450 times)

legendary
Activity: 1260
Merit: 1000
Ok, well, I did some testing. It seems the Natty archives are not up to date.

Anyone with a 6xxx card will have problems with this guide.   I'm looking for a fix, but as of yet I haven't found it.
newbie
Activity: 34
Merit: 0
Step "make -j3" ends with error:
Code:
/usr/bin/ld: skipping incompatible /opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/libOpenCL.so when searching for -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [all] Error 1
HW: Radeon 5770
full member
Activity: 124
Merit: 100

Did you set your display env variable?

Code:
echo export DISPLAY=:0 >> .bashrc
source .bashrc
[/quote]

Yes.

For sure miner can't be run in this state because there is no gpus in his device list. Only cpu is shown.
member
Activity: 102
Merit: 10
Btw, instead of exporting your library path, it's probably better to add the config file for those paths to /etc/ld.so.conf.d, then they are applied globally to all accounts.
newbie
Activity: 15
Merit: 0
I can't start the miner.

Just getting non-stop
Quote
Error: unable to open display (null)
when fglrxinfo is called.


Driver is installed correctly ... I think
Quote
root@toor-desktop:~# aticonfig --list-adapters
* 0. 02:00.0 ATI Radeon HD 5800 Series

* - Default adapter

Did you set your display env variable?

Code:
echo export DISPLAY=:0 >> .bashrc
source .bashrc

Also, if you're running the miner as root, run the miner as a non-privileged user and see if the error persists. There's no need to be root for it.
full member
Activity: 124
Merit: 100
I can't start the miner.

Just getting non-stop
Quote
Error: unable to open display (null)
when fglrxinfo is called.


Driver is installed correctly ... I think
Quote
root@toor-desktop:~# aticonfig --list-adapters
* 0. 02:00.0 ATI Radeon HD 5800 Series

* - Default adapter
legendary
Activity: 1260
Merit: 1000
I just recently started getting that error as well, but it doesn't seem to affect anything.  I will investigate further as to why it's showing up, but you can ignore it for now.


I confirm this error too on Xubuntu 11.04 AMD64

Is it preventing you from mining?

Code:
export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64

and

Code:
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

set these yet?


Who is this directed at?
full member
Activity: 124
Merit: 100
I just recently started getting that error as well, but it doesn't seem to affect anything.  I will investigate further as to why it's showing up, but you can ignore it for now.


I confirm this error too on Xubuntu 11.04 AMD64
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo
Code:
export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64

and

Code:
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH

set these yet?
uck
member
Activity: 94
Merit: 10
might be $LD_LIBRARY_PATH is blank (?)
newbie
Activity: 15
Merit: 0
I just followed these steps verbatim, but I get an error trying to run poclbm:

Code:
jondecker76@miner1:~/poclbm$ ./poclbm.py
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-i686.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory
jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls
array.py   clmath.pyc  clrandom.py   elementwise.py   __init__.pyc  version.py
array.pyc  _cl.py      clrandom.pyc  elementwise.pyc  tools.py      version.pyc
clmath.py  _cl.pyc     _cl.so        __init__.py      tools.pyc
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$


pyopencl made just fine, and its installed apparently. Any ideas?

Did you configure pyopencl with explicit directions to find the AMD APP SDK? I tried initially leaving off the explicit --cl-inc-dir and --cl-lib-dir and I got the same error you had. This fixed it:
Code:
./configure.py --cl-inc-dir=/path/to/AMD-APP-SDK-v2.4-lnx32/include --cl-lib-dir=/path/to/AMD-APP-SDK-v2.4-lnx32/lib/x86
hero member
Activity: 481
Merit: 500
On ArchLinux (yes, this OS is better, just look how simple it is !) :

1. Install catalyst and amdstream from the AUR.
2. Install python2-pyopencl from the official packages and python2-jsonrpc-svn from the AUR.
3. Run your miner.

And Ubuntu is supposed to be noob-friendly ? I can't believe it ! Never mind the fact that the "Ubuntu-way" is a real pain to keep updated too.


Yeah, but try to get bitcoin (graphical) to run....   https://aur.archlinux.org/packages.php?ID=39313&comments=all
full member
Activity: 123
Merit: 100
From here on out, the steps should be conducted either in a terminal window or an SSH session.

Code:
1. sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
2. sudo apt-get update
3. sudo apt-get install fglrx
4. sudo apt-get install g++ libboost-all-dev subversion git-core python-numpy
5. sudo aticonfig --initial -f --adapter=all
6. sudo reboot

Code:
7. wget http://download2-developer.amd.com/amd/Stream20GA/ati-stream-sdk-v2.1-lnx64.tgz
8. wget http://download2-developer.amd.com/amd/Stream20GA/icd-registration.tgz
9. sudo tar xvfz ati-stream-sdk-v2.1-lnx64.tgz -C /opt
10. sudo tar xvfz icd-registration.tgz -C /
11. echo export DISPLAY=:0 >> .bashrc
12. echo export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH >> .bashrc
13. source .bashrc
14. wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
15. svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
16. svn checkout http://svn3.xp-dev.com/svn/phoenix-miner/trunk
17. git clone git://github.com/m0mchil/poclbm poclbm
18. mv trunk phoenix
19. tar zxfv pyopencl-0.92.tar.gz
20. cd pyopencl-0.92
21. ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64
22. make -j3
23. sudo make install
24. cd ../python-jsonrpc
25. sudo python setup.py install
26. cd ~
27. chmod +x phoenix/phoenix.py poclbm/poclbm.py


On ArchLinux (yes, this OS is better, just look how simple it is !) :

1. Install catalyst and amdstream from the AUR.
2. Install python2-pyopencl from the official packages and python2-jsonrpc-svn from the AUR.
3. Run your miner.

And Ubuntu is supposed to be noob-friendly ? I can't believe it ! Never mind the fact that the "Ubuntu-way" is a real pain to keep updated too.
legendary
Activity: 1260
Merit: 1000
I just recently started getting that error as well, but it doesn't seem to affect anything.  I will investigate further as to why it's showing up, but you can ignore it for now.
newbie
Activity: 15
Merit: 0
When executing this

Code:
sudo aticonfig --initial -f --adapter=all

have this back

Code:
sudo aticonfig --initial -f --adapter=all
Uninitialised file found, configuring.
Fail to link to fglrx-libglx.so, please check whether driver is installed correctly
Using /etc/X11/xorg.conf
Saving back-up to /etc/X11/xorg.conf.fglrx-1

don't know how to fix this, can someone help me?, have 2x6990's in a non crossfire motherboard, but already achieved in windows to got it working (3 cores bug)
legendary
Activity: 1260
Merit: 1000
I just followed these steps verbatim, but I get an error trying to run poclbm:

Code:
jondecker76@miner1:~/poclbm$ ./poclbm.py
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-i686.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory
jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls
array.py   clmath.pyc  clrandom.py   elementwise.py   __init__.pyc  version.py
array.pyc  _cl.py      clrandom.pyc  elementwise.pyc  tools.py      version.pyc
clmath.py  _cl.pyc     _cl.so        __init__.py      tools.pyc
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$


pyopencl made just fine, and its installed apparently. Any ideas?

This problem is almost always related to the fact that the /opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64 environment variable isn't set.

What does this command return:

echo $PATH

Also, make sure you've done steps 11 - 13 properly, as that's where it gets set.

Quote
As per the ATI documentation. The miner will run fine without it but later upgrades, builds, etc may need this variable.

Also, I have a recollection that "python-jsonrpc" is no longer necessary to be installed ... but icbw.

I will add that additional env var if it ever becomes necessary.  No sense in setting it if it's not used at the moment.

I'll also check into the python-jsonrpc thing and see if that's the case and remove it if so.  Thanks for the tips!
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo

I think you may need a step after 12.

Code:
12a. echo export ATISTREAMSDKROOT=/opt/ati-stream-sdk-v2.1-lnx64 >> .bashrc

As per the ATI documentation. The miner will run fine without it but later upgrades, builds, etc may need this variable.

Also, I have a recollection that "python-jsonrpc" is no longer necessary to be installed ... but icbw.
full member
Activity: 238
Merit: 100
I just followed these steps verbatim, but I get an error trying to run poclbm:

Code:
jondecker76@miner1:~/poclbm$ ./poclbm.py
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-i686.egg/pyopencl/__init__.py", line 3, in
    import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory
jondecker76@miner1:~/poclbm$ cd /usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl/
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$ ls
array.py   clmath.pyc  clrandom.py   elementwise.py   __init__.pyc  version.py
array.pyc  _cl.py      clrandom.pyc  elementwise.pyc  tools.py      version.pyc
clmath.py  _cl.pyc     _cl.so        __init__.py      tools.pyc
jondecker76@miner1:/usr/local/lib/python2.7/dist-packages/pyopencl-0.92-py2.7-linux-i686.egg/pyopencl$


pyopencl made just fine, and its installed apparently. Any ideas?
legendary
Activity: 1260
Merit: 1000
I tried 2.4 and got about 10% less performance out of 2.4, so I went back to 2.1.  The difference you are probably seeing in the guide is the difference between the modern miner and the one the guide was put together with.  Your extra hashes are about what you'd see with the BF_INT performance enhancement introduced into the miners recently.
newbie
Activity: 15
Merit: 0
Great guide. I just went through all this on my own yesterday before you posted this.  Cheesy

The only major difference with my process for 11.04 (besides running 32-bit) is that I did use the 2.4 AMD ATI SDK, and have seen 5-10% better performance than that shown for my card with the 2.1 SDK on the https://en.bitcoin.it/wiki/Mining_hardware_comparison page. I get 83 Mhash/s, not 78 Mhash/s as shown on the wiki for the ATI 4870.

Otherwise, these steps are more or less exactly what I followed!
Pages:
Jump to: