Pages:
Author

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

legendary
Activity: 1134
Merit: 1005
so has anyone completed the full tutorial yet?
legendary
Activity: 966
Merit: 1000
Code:
$ ./CLInfo
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs
Aborted

I'm struggling to get pass this error. Help, anyone?

- I have 64-bit system
- ATI Radeon 5850
- LD_LIBRARY_PATH is set
- DISPLAY is set


I have this same error and can't solve it.

I'm using Ubuntu Server 10.04 32-bit with a single 5970.

'env' shows: (output trimmed)

Code:
LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx32/lib/x86/
DISPLAY=0:0

I have also added the library path to /etc/ld.so.conf.d/OpenCL.conf (creating a new file), and run 'sudo ldconfig -v' (my own ideas).  Up until I did this CLInfo would give a missing library error.

'ldd CLInfo' shows:

Code:

linux-gate.so.1 =>  (0xb7897000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7875000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7871000)
libOpenCL.so => /opt/ati-stream-sdk-v2.1-lnx32/lib/x86/libOpenCL.so (0xb786b000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7775000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb774f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7730000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb75d6000)
/lib/ld-linux.so.2 (0xb7898000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb75cc000)

'fglrxinfo' shows:

Code:
display: 0:0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5900 Series
OpenGL version string: 4.1.10362 Compatibility Profile Context

'strace ./CLInfo' shows a lot of output.  I notice a lot of failed attempts to open something called libGLU.so.1, followed by failed attempts to open libatiocl64.so:

Code:
open("/opt/ati-stream-sdk-v2.1-lnx32/lib/x86/libatiocl64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libatiocl64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libatiocl64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/tls/libatiocl64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libatiocl64.so", O_RDONLY) = -1 ENOENT (No such file or directory)
...etc

...a 64-bit library on a 32-bit OS?...hmm...

Thanks for any help given.

Edit: Looking further up in the strace output:

Code:
open("/etc/OpenCL/vendors/atiocl64.icd", O_RDONLY) = 4

It also went for the 64-bit flavor of that file.

I only installed the 32-bit edition by mistake and am getting ready to reinstall using the 64-bit edition, once it finishes downloading.  Hopefully that will solve my issue.

Edit 2: Looking more, I now see that it first opened /etc/OpenCL/vendors/atiocl32.icd, and /opt/ati-stream-sdk-v2.1-lnx32/lib/x86/libatiocl32.so, followed by /usr/lib/libX11.so.6 and /usr/lib/fglrx/libGL.so.1, all successfully.  Then, only after failing to open libGLU.so.1 does it appear to try to "fall back" to the 64-bit stuff...
full member
Activity: 238
Merit: 100
Thanks for the useful information here.. I'm expecting my 5850 to arrive this week and have a couple of other questions that don't seem to be covered here:

- Is there a performance difference between using the 32 and 64 bit distributions of Ubuntu?
- Any reason this wouldn't work with Ubuntu server edition?
- Do you know of any good tutorials on adjusting the ATI card clock, voltage, memory clock, etc?


thanks!
hero member
Activity: 756
Merit: 500
The other question I have is that if I buy a newer card e.g. a  a 6800, 6900 series will I need to change much? e.g. do I have to uninstall and reinstall the drive and run aticonfig again?
hero member
Activity: 756
Merit: 500
Thanks Mahkul.  Phew I was about to pave the thing and put BackTrack Linux on as I downloaded the Torrent last night. Still might play with it on a new machine though.

The kilohash reading didn't look half as impressive as the megahash readings people give but it looks like you just divide by 1000 or put the decimal place before the last three digits.
Can I get the client program to do this for me?

Also I worked out how to get my gputemp:

aticonfig --odgt

Default Adapter - ATI Radeon HD 5700 Series
                  Sensor 0: Temperature - 58.00 C

Shame I didn't try doing all of this last year!
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
Hm, seems like you're getting 133Mhash/s and 171Mhash/s with switches. What's the problem?
hero member
Activity: 756
Merit: 500
Hi guys,

I am having trouble getting a decent hash rate with my XFX HD5770 850M PCIe/1GB

Should be over 100mhash/s according to https://en.bitcoin.it/wiki/Mining_hardware_comparison

Does anyone have any ideas or more questions that may help me?

I have tried to include as much information as possible. I am running Kubuntu  x64 11.04 and the other specifics are included below.

Most of this assumes the problem is software. I will include my hardware details if we can rule out software.

Thank you


xserver-xorg-core                    2:1.10.1-1ubuntu1  

AMD-APP-SDK-v2.4-lnx64.tgz                
ati-driver-installer-11-4-x86.x86_64.run  

./poclbm.py
No device specified or device not found, use -d to specify one of the following

[ 0 ]     Juniper
[ 1 ]     AMD Athlon(tm) II X4 630 Processor


chris@galaxy:~/Downloads/bitcoin-0.3.21/bin/64$ ./poclbm.py  -d 0 -u un --pass=pw
133721 khash/s^C                                            
bye

./poclbm.py -v -w 128 -f 30 -d 0 -u un --pass=pw
171353 khash/s^C                                    

Achris@galaxy:~/Downloads/bitcoin-0.3.21/bin/64$ ./poclbm.py  -d 1 -u un --pass=pw
3433 khash/s^C                                              
bye
chris@galaxy:~/Downloads/bitcoin-0.3.21/bin/64$ ./poclbm.py  --version
poclbm/2011.beta4

name -a
Linux galaxy 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux


aticonfig --list-adapters
* 0. 01:00.0 ATI Radeon HD 5700 Series

* - Default adapter



fglrxinfo

display: :0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5700 Series
OpenGL version string: 4.1.10666 Compatibility Profile Context


cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "aticonfig Layout"
        Screen      0  "aticonfig-Screen[0]-0" 0 0
EndSection

Section "Module"
EndSection

Section "Monitor"c

        Identifier   "aticonfig-Monitor[0]-0"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
EndSection

Section "Device"
        Identifier  "aticonfig-Device[0]-0"
        Driver      "fglrx"
        BusID       "PCI:1:0:0"
EndSection

Section "Screen"
        Identifier "aticonfig-Screen[0]-0"
        Device     "aticonfig-Device[0]-0"
        Monitor    "aticonfig-Monitor[0]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection


printevn
No command 'printevn' found, did you mean:
 Command 'printenv' from package 'coreutils' (main)
printevn: command not found
chris@galaxy:~/Downloads$ printenv
SSH_AGENT_PID=1332
KDE_MULTIHEAD=false
DM_CONTROL=/var/run/xdmctl
SHELL=/bin/bash
TERM=xterm
XDG_SESSION_COOKIE=6222fe216f83ced3241def2d00000008-1304328121.288897-1766637577
XDM_MANAGED=method=classic
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/chris/.gtkrc-2.0:/home/chris/.gtkrc-2.0-kde4:/home/chris/.kde/share/config/gtkrc-2.0
KONSOLE_DBUS_SERVICE=:1.73
GS_LIB=/home/chris/.fonts
GTK_RC_FILES=/etc/gtk/gtkrc:/home/chris/.gtkrc::/home/chris/.kde/share/config/gtkrc
WINDOWID=88112908
OLDPWD=/home/chris/Downloads/bitcoin-0.3.21/bin/64
SHELL_SESSION_ID=9912e85e4dee400094918fdac59f7761
AMDAPPSSAMPLESROOT=/opt/AMD-APP-SDK-v2.4-lnx64
*snip*
LD_LIBRARY_PATH=/opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64
LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib64/dri
SSH_AUTH_SOCK=/tmp/ssh-DucjsWiF1273/agent.1273
SESSION_MANAGER=local/galaxy:@/tmp/.ICE-unix/1479,unix/galaxy:/tmp/.ICE-unix/1479
DESKTOP_SESSION=default
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/chris/Downloads
AMDAPPSDKROOT=/opt/AMD-APP-SDK-v2.4-lnx64
KDE_SESSION_UID=1000
LANG=en_AU.UTF-8
UBUNTU_MENUPROXY=libappmenu.so
KONSOLE_DBUS_SESSION=/Sessions/6
HOME=/home/chris
COLORFGBG=15;0
SHLVL=1
KDE_SESSION_VERSION=4
LANGUAGE=en_AU:en
XCURSOR_THEME=default
LOGNAME=chris
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-vsx2o0OTYh,guid=0435c55d5783dde763471f0f00000015
LESSOPEN=| /usr/bin/lesspipe %s
WINDOWPATH=7
PROFILEHOME=
DISPLAY=:0
QT_PLUGIN_PATH=/home/chris/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/printenv
sr. member
Activity: 308
Merit: 251
I wrote a guide on how to get your cards mining via backtrack linux. Would be exactly the same as ubuntu Cheesy I'll link it here it may help some people out. 

http://www.backtrack-linux.org/forums/backtrack-howtos/39969-how-gpu-bitcoin-mine-backtrack-4-your-hardware-could-now-pay-rent.html

Its a complete guide with a patch for fglrx for kernels > 2.6.38.

Hope this helps you out and for the recorc v2.4 is fine with bitcoin mining Cheesy I'm getting 267MH/s using phoenix with AMD APP v2.4 with a xfx 5830 Cheesy
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
I'm running into a small problem running CLInfo on ubuntu 10.10 server with a full desktop using SDK 2.1. When I run ./CLInfo I get

Code:
 Device Type: CL_DEVICE_TYPE_GPU

Rather than my GPU which is a mobile 5870.

This always looks like that.
full member
Activity: 124
Merit: 100
Is there a chance some good guy to make an installer script for 2.4 SDK?
newbie
Activity: 1
Merit: 0
I'm running into a small problem running CLInfo on ubuntu 10.10 server with a full desktop using SDK 2.1. When I run ./CLInfo I get

Code:
  Device Type: CL_DEVICE_TYPE_GPU

Rather than my GPU which is a mobile 5870.
legendary
Activity: 1001
Merit: 1005
Make sure that you installed suitable drivers.
Show results of
$ fglrxinfo
newbie
Activity: 51
Merit: 0
did you unzip icd-registration.tgz to /?

yes, with sudo.
/etc/OpenCL/vendors/
with
atiocl32.icd  atiocl64.icd
=(
legendary
Activity: 1001
Merit: 1005
did you unzip icd-registration.tgz to /?
newbie
Activity: 51
Merit: 0
I will try v2.1...

Do you have 5xxx card or 6xxx? If the former, 2.1 is no brainer. If the latter, from what I heard, 2.1 does not work and one must use 2.3 or above. I tested my 5xxx with 2.3 and it works, albeit slower than 2.1 but 2.3 works with these instructions.

I put an error in v2.4!
now
Code:
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.4-lnx64/lib/x86_64/
is correct.
but
Code:
$ cd /opt/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86_64
$ ./clinfo |grep CL_DEVICE_TYPE_GPU
not found again...

now I get this:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 27, in
    platforms = cl.get_platforms()
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

yeah...
I will reinstall ubuntu...

UPDATE
Sorry, my configurations:
Ubuntu 10.10
ATI Mobility Radeon HD 5650
full member
Activity: 238
Merit: 100
I will try v2.1...

Do you have 5xxx card or 6xxx? If the former, 2.1 is no brainer. If the latter, from what I heard, 2.1 does not work and one must use 2.3 or above. I tested my 5xxx with 2.3 and it works, albeit slower than 2.1 but 2.3 works with these instructions.
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
The guide was written for SDK 2.1 which is still the best choice for 5xxx cards. I don't have 2.4 but apparently AMD renamed some dirs and moved some programs.

The library path is AMD-APP-SDK-v2.4-lnx64/lib/x86_64 and clinfo (with small letters) is in AMD-APP-SDK-v2.4-lnx64/bin/x86_64

But if you want to continue with SDK 2.4, you are on your own because I didn't test it on this version.


ok, I found clinfo in "/opt/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86_64", but

Code:
$ cd /opt/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86_64
$ ./clinfo |grep CL_DEVICE_TYPE_GPU

did not work too...
I will try v2.1...

It's ./CLInfo not ./clinfo

Unless you were just lazy in your post.
newbie
Activity: 51
Merit: 0
The guide was written for SDK 2.1 which is still the best choice for 5xxx cards. I don't have 2.4 but apparently AMD renamed some dirs and moved some programs.

The library path is AMD-APP-SDK-v2.4-lnx64/lib/x86_64 and clinfo (with small letters) is in AMD-APP-SDK-v2.4-lnx64/bin/x86_64

But if you want to continue with SDK 2.4, you are on your own because I didn't test it on this version.


ok, I found clinfo in "/opt/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86_64", but

Code:
$ cd /opt/AMD-APP-SDK-v2.4-lnx64/samples/opencl/bin/x86_64
$ ./clinfo |grep CL_DEVICE_TYPE_GPU

did not work too...
I will try v2.1...
full member
Activity: 238
Merit: 100
The guide was written for SDK 2.1 which is still the best choice for 5xxx cards. I don't have 2.4 but apparently AMD renamed some dirs and moved some programs.

The library path is AMD-APP-SDK-v2.4-lnx64/lib/x86_64 and clinfo (with small letters) is in AMD-APP-SDK-v2.4-lnx64/bin/x86_64

But if you want to continue with SDK 2.4, you are on your own because I didn't test it on this version.
newbie
Activity: 51
Merit: 0
I got:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.6/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

Code:
$ ./CLInfo |grep CL_DEVICE_TYPE_GPU
got "No such file or directory".

Both errors are because SDK is not installed or installed in a different directory than in the guide.


ok, I used sdk 2.4, but
Code:
export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.4-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
will not link?
because I did not see in "/opt/ati-stream-sdk-v2.4-lnx64/lib/x86_64/" the folder "CLInfo" or something like this...

UPDATE:
I really need v 2.1? How I delete v 2.4?
Pages:
Jump to: