Bitcoin Forum
October 20, 2017, 09:14:45 AM *
News: Latest stable version of Bitcoin Core: 0.15.0.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: 1 2 3 4 5 6 7 [All]
  Print  
Author Topic: 50 BTC if you write a complete guide on GPU mining on Ubuntu using ATI  (Read 100879 times)
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 05:05:24 PM
 #1

I will give 50 BTC to the person who will write a comprehensive tutorial on starting to mine using ATI GPUs on Ubuntu. The tutorial should include installation of relevant ATI drivers, 2.2 2.1 SDK with OpenCL and a GPU miner (preferably m0mchil's). This should also cover a scenario when someone has two or more GPUs installed in one machine (disabling Crossfire etc.).

Cheers.

PS. I will send Bitcoins only after I test it myself and confirm this is working on a fresh Ubuntu install.
1508490885
Hero Member
*
Offline Offline

Posts: 1508490885

View Profile Personal Message (Offline)

Ignore
1508490885
Reply with quote  #2

1508490885
Report to moderator
1508490885
Hero Member
*
Offline Offline

Posts: 1508490885

View Profile Personal Message (Offline)

Ignore
1508490885
Reply with quote  #2

1508490885
Report to moderator
1508490885
Hero Member
*
Offline Offline

Posts: 1508490885

View Profile Personal Message (Offline)

Ignore
1508490885
Reply with quote  #2

1508490885
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1508490885
Hero Member
*
Offline Offline

Posts: 1508490885

View Profile Personal Message (Offline)

Ignore
1508490885
Reply with quote  #2

1508490885
Report to moderator
dingus
Full Member
***
Offline Offline

Activity: 126



View Profile
February 11, 2011, 05:06:55 PM
 #2

which version of ubuntu?

ding·us/ˈdiNGgəs/
Noun: Used to refer to something whose name the speaker cannot remember, is unsure of, or is humorously or euphemistically omitting
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 05:07:34 PM
 #3

which version of ubuntu?

10.10
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 05:52:38 PM
 #4

I can write it. But why SDK 2.2 when 2.1 is faster?


1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
davout
Legendary
*
Offline Offline

Activity: 1372


1davout


View Profile WWW
February 11, 2011, 06:02:02 PM
 #5

Never got 2.2 to work ...

Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 06:03:39 PM
 #6

I can write it. But why SDK 2.2 when 2.1 is faster?

Sorry, I meant 2.1.
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 06:16:52 PM
 #7

This should be a complete tutorial. Ask if you have some problems, as I might have had a different hardware/software configuration or forgot about a required package. that I installed before.  

------
Make sure all the cards are visible

$ lspci -v

should have a line (lines) with "Display controller: ATI Technologies Inc Device"

Open terminal and write the following command

$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
# the following line added after moa comment later in the thread
$ sudo apt-get update
$ sudo apt-get install fglrx
$ sudo apt-get install fglrx-amdcccle
$ sudo apt-get install fglrx-modaliases

This should install Proprietary ATI Catalyst drivers.

Create xorg.conf by issuing:

$ sudo aticonfig --initial

If you have more than one card, do
$ sudo aticonfig --initial -f --adapter=all

Reboot to load the kernel modules.

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

$ fglrxinfo

Download ATI SDK from AMD webpage

http://developer.amd.com/gpu/AMDAPPSDK/downloads/pages/AMDAPPSDKDownloadArchive.aspx

2.1 is recommended. For 64-bit systems, it will be

http://developer.amd.com/Downloads/ati-stream-sdk-v2.1-lnx64.tgz

Unpack it to, e.g. /opt

$ cd /opt
$ sudo mv Downloadlocation/ati-stream-sdk-v2.1-lnx64.tgz /opt
$ sudo tar xfzv ati-stream-sdk-v2.1-lnx64.tgz

Download

http://developer.amd.com/Downloads/icd-registration.tgz

and unpack it into root directory.

$ cd /
$ sudo mv Downloadlocation/icd-registration.tgz /
$ tar zxfv icd-registration.tgz

You should have
 /etc/OpenCL/vendors/

with

atiocl32.icd  atiocl64.icd

Add library location  (you may want to add it to your .bashrc) (for 64-bit version)

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

And you can test openCL support:

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

$ ./CLInfo |grep CL_DEVICE_TYPE_GPU
 
It should lits all your GPUs (in case of 5970s, two for each card).

If only one is shown, issue
$ export DISPLAY=:0

In some cases, you'll need to disable CrossFire for 5970.

$ aticonfig --list-adapters

$ aticonfig --crossfire=off --adapter=all

You may need to restart X and/or repeat aticinfig --initial step

If you have correct  ./CLInfo, you can proceed to installing miners.

Download PyOpenCL
$ wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz

Unpack

$ tar zxfv pyopencl-0.92.tar.gz

Compile and install

Prerequisites:
$ sudo apt-get install g++  libboost-all-dev subversion git-core python-numpy

$ cd pyopencl-0.92

$ ./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
$ make
$ sudo make install

Download python-jsonrpc

$ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc

$ cd python-jsonrpc

$ sudo python setup.py install

Download m0mchil poclbm

$ git clone git://github.com/m0mchil/poclbm poclbm
$ cd poclbm
$ chmod +x poclbm.py

Run ./poclbm.py to see if all devices are detected. If only one GPU is visible (on multi-GPU system), do

$ export DISPLAY=:0

$ ./poclbm.py  -u user --pass=pass -o host -p 8332 -d 1

And the same for other GPUs (-d 2, -d3, etc.)

If it fails during kernel compilation, try:

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

You may play with "-v", "-w" and "-f" options. See, poclbm thread

http://bitcointalk.org/index.php?topic=1334.0

Useful utilities:

$ aticonfig --odgt --adapter=all

shows GPU temperature

$ aticonfig --odgc --adapter=all

shows clock and load.

$ aticonfig --pplib-cmd "get fanspeed 0"

shows fan speed

If you have multiple cards, before checking the fan for each one, you need  for first GPU
$ export DISPLAY=:0.0; aticonfig --pplib-cmd "get fanspeed 0"
for second GPU, etc.
$ export DISPLAY=:0.1 ; aticonfig --pplib-cmd "get fanspeed 0"

edit: apt-get update added

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 07:30:09 PM
 #8

You really know what you're doing. Smiley

I am testing it using 32-bit version, just replaced 64 with 32 or omitted it wherever necessary. Everything has been going great until I got to:


$ cd /opt/ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86
$ ./CLInfo |grep CL_DEVICE_TYPE_GPU


I get:

mahkul@mahkul:/opt/ati-stream-sdk-v2.1-lnx32/samples/opencl/bin/x86$ ./CLInfo |grep CL_DEVICE_TYPE_GPU
./CLInfo: error while loading shared libraries: libOpenCL.so: cannot open shared object file: No such file or directory
mahkul@mahkul:/opt/ati-stream-sdk-v2.1-lnx32/samples/opencl/bin/x86$


Any thoughts?


Sorry, my bad. Made a typo in the LIBRARY PATH. Getting back to testing.

Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 07:52:10 PM
 #9

@Raulo:

When I get to:

Code:
$ ./configure --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx64/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64
$ make

This is what I get: (I assume you meant the user to use ./configure.py and not just ./configure as there is no such file in that directory?)

Code:

mahkul@mahkul:~/Downloads/pyopencl-0.92$ ./configure.py --cl-inc-dir=/opt/ati-stream-sdk-v2.1-lnx32/include/ --cl-lib-dir=/opt/ati-stream-sdk-v2.1-lnx32/lib/x86
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.14.tar.gz
Extracting in /tmp/tmpUWd5Tu
Now working in /tmp/tmpUWd5Tu/distribute-0.6.14
Building a Distribute egg in /home/mahkul/Downloads/pyopencl-0.92
/home/mahkul/Downloads/pyopencl-0.92/distribute-0.6.14-py2.6.egg
mahkul@mahkul:~/Downloads/pyopencl-0.92$ make
ctags -R src || true
/bin/sh: ctags: not found
/usr/bin/python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
creating build/lib.linux-i686-2.6/pyopencl
copying pyopencl/array.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/version.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/tools.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/__init__.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/elementwise.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/clrandom.py -> build/lib.linux-i686-2.6/pyopencl
copying pyopencl/clmath.py -> build/lib.linux-i686-2.6/pyopencl
running build_ext
building '_cl' extension
----------------------------------------------------------------------------
Sorry, your build failed. Try rerunning configure.py with different options.
----------------------------------------------------------------------------
Traceback (most recent call last):
  File "setup.py", line 160, in <module>
    main()
  File "setup.py", line 152, in main
    extra_link_args=conf["LDFLAGS"],
  File "/home/mahkul/Downloads/pyopencl-0.92/aksetup_helper.py", line 37, in setup
    setup(*args, **kwargs)
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.6/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "build/bdist.linux-i686/egg/setuptools/command/build_ext.py", line 46, in run
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 340, in run
    self.build_extensions()
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 449, in build_extensions
    self.build_extension(ext)
  File "build/bdist.linux-i686/egg/setuptools/command/build_ext.py", line 182, in build_extension
  File "/usr/lib/python2.6/distutils/command/build_ext.py", line 496, in build_extension
    include_dirs=ext.include_dirs,
  File "/home/mahkul/Downloads/pyopencl-0.92/aksetup_helper.py", line 69, in include_dirs
    return self._include_dirs + [self.get_numpy_incpath()]
  File "/home/mahkul/Downloads/pyopencl-0.92/aksetup_helper.py", line 63, in get_numpy_incpath
    file, pathname, descr = find_module("numpy")
ImportError: No module named numpy
make: *** [all] Error 1

kiba
Legendary
*
Offline Offline

Activity: 980


View Profile
February 11, 2011, 07:53:34 PM
 #10

You need to install numpy, Mahkul.

Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 07:56:46 PM
 #11

You need to install numpy, Mahkul.

Yes, that's what I think too. I briefly looked at how to do it:

http://ubuntuforums.org/showthread.php?t=566456

Seems to be a little bit problematic. I will better let Raulo earn his Bitcoins.
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 08:04:03 PM
 #12

To install numpy

Code:
$ sudo apt-get install python-numpy

Apt should do all the rest of the magic.

And of course, it was ./configure.py

I'll correct the post.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 08:04:48 PM
 #13

By the way, have you already checked CLInfo and it was OK? If so, you are close to finish. Getting drivers and SDK was the hardest part.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 08:26:16 PM
 #14

@Raulo

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.

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.

Should I use the Bitcoin address in your signature?

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?
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 09:43:44 PM
 #15

@Raulo

On the machine that has two cards after intalling the drivers I am getting this:

Code:

mahkul@mahkul:~$ fglrxinfo
Error: unable to open display (null)


This may have something to do with the fact that the drivers were installed using: System->Administration->Aditional Drivers (I did this before you wrote the tutorial). However, when I do the four steps:

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

it always says that everything is already installed.

Any thoughts?
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 09:54:21 PM
 #16

@Raulo

On the machine that has two cards after intalling the drivers I am getting this:

Code:

mahkul@mahkul:~$ fglrxinfo
Error: unable to open display (null)


This may have something to do with the fact that the drivers were installed using: System->Administration->Aditional Drivers (I did this before you wrote the tutorial). However, when I do the four steps:

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

it always says that everything is already installed.

Any thoughts?

Sorted: just added -display :0 switch
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 09:59:03 PM
 #17

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 10:05:36 PM
 #18

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

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 10:15:04 PM
 #19

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
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 10:31:08 PM
 #20

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 10:35:33 PM
 #21

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 <module>
    platform = cl.get_platforms()[0]
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

:/
Fractality
Jr. Member
*
Offline Offline

Activity: 44



View Profile WWW
February 11, 2011, 10:47:49 PM
 #22

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?


1K4noMkNgrPztyqtHCYd2CevsZ72FeYUKF
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 10:52:11 PM
 #23

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 <module>
    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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 11:01:45 PM
 #24

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 <module>
    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
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 11:08:21 PM
 #25

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 11, 2011, 11:14:32 PM
 #26

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 

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Fractality
Jr. Member
*
Offline Offline

Activity: 44



View Profile WWW
February 11, 2011, 11:28:48 PM
 #27

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.

1K4noMkNgrPztyqtHCYd2CevsZ72FeYUKF
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 11, 2011, 11:38:56 PM
 #28

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.
humble
Member
**
Offline Offline

Activity: 91



View Profile
February 12, 2011, 01:39:29 AM
 #29

I've posted a guide, which may be helpful to some, over here.
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 12, 2011, 09:24:53 AM
 #30

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 12, 2011, 03:56:15 PM
 #31

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?
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 12, 2011, 05:39:44 PM
 #32

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


1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 12, 2011, 05:44:32 PM
 #33

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:~$
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 12, 2011, 07:27:11 PM
 #34

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

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
dingus
Full Member
***
Offline Offline

Activity: 126



View Profile
February 12, 2011, 07:30:38 PM
 #35

May I ask if this guide will work for multiple ATI 5970s?

ding·us/ˈdiNGgəs/
Noun: Used to refer to something whose name the speaker cannot remember, is unsure of, or is humorously or euphemistically omitting
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 12, 2011, 10:24:40 PM
 #36

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.

Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 12, 2011, 10:44:51 PM
 #37

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

This is exactly as it should be.

Quote
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.

Also correct.

I don't know. Was there any error when installing fglrx? Something is broken. You may have some crap left from previous drivers.

I have the following links
Code:
$ ls -l /etc/ati
lrwxrwxrwx 1 root root 26 2011-01-07 13:52 /etc/ati -> /etc/alternatives/ati_conf
$ ls -l /etc/alternatives/ati_conf
lrwxrwxrwx 1 root root 22 2011-01-07 13:52 /etc/alternatives/ati_conf -> /usr/lib/fglrx/etc/ati

You have an error about missing /etc/ati/control so there is something not installed correctly there. Check what package owns the final link

I have
Code:
$ dpkg -S  /usr/lib/fglrx/etc/ati
fglrx: /usr/lib/fglrx/etc/ati

Remove the package (if it is not fglrx). Remove fglrx and install again.

Or try

Code:
$ sudo mv /etc/ati /etc/ati.bak
$ sudo ln -s /etc/alternatives/ati_conf /etc/ati
$ mv /etc/alternatives/ati_conf /etc/alternatives/ati_conf.bak
$ sudo ln -s  /etc/alternatives/ati_conf -> /usr/lib/fglrx/etc/ati


1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
February 12, 2011, 10:46:44 PM
 #38

May I ask if this guide will work for multiple ATI 5970s?

Worked for me (after I unsuccessfully tried stock Ubuntu fglrx drivers).

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 14, 2011, 12:23:24 PM
 #39

@Raulo just so you know I reinstalled Ubuntu and followed your guide again. The cards are working perfectly now. Thanks again!

I think someone should add a link to this thread in the main m0mchil's miner's thread (like there is one there for doing it with nVidia).

Cheers for your help!
gwern
Jr. Member
*
Offline Offline

Activity: 47


View Profile WWW
February 18, 2011, 08:48:20 PM
 #40

I just went through this tutorial to get GPU mining working on my Dell studio 17 laptop with ATI Mobility Radeon HD 5600/5700 & running Ubuntu 10.10. Tutorial basically works (pocl is giving me between 44-49 megahashes), but it has some rough edges.

1. The final instruction assumes you already have 'bitcoind -server' running. I hadn't realized that the RPC was not optional (and had been assuming the RPC stuff was there for people who were parts of a pool) until someone mentioned the '-server' option and I saw there was no such option in the poclbm code.
2. the 'export' library path stuff seems incomplete. I kept getting a libOpenCL.so.1 error with poclbm (which I knew I had installed as part of the tutorial's directions), and eventually slocate told me where it was and I did another export command which went like `export LD_LIBRARY_PATH=/usr/lib/nvidia-current/:/opt/ati-stream-sdk-v2.2-lnx32/lib/x86/:$LD_LIBRARY_PATH`
3. hardwiring the paths is a little annoying because I had to rewrite all the filepaths (I'm on i386). Maybe this could be turned into a genuine pastable script
4. the tutorial advised me to the 2.1 SDK, but this seemed to lead to odd problems which went away with 2.2. On the other hand, I hadn't rebooted so I'm not entirely sure what was going on there.

Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 19, 2011, 06:14:06 AM
 #41

1. The final instruction assumes you already have 'bitcoind -server' running. I hadn't realized that the RPC was not optional (and had been assuming the RPC stuff was there for people who were parts of a pool) until someone mentioned the '-server' option and I saw there was no such option in the poclbm code.

This is more miner related thing, you should have checked m0mchil's miner thread for general instructions. The tutorial was written specifically for me and I did not ask for explaining that. Its only purpose was to get me going with my ATI cards.

Quote
2. the 'export' library path stuff seems incomplete. I kept getting a libOpenCL.so.1 error with poclbm (which I knew I had installed as part of the tutorial's directions), and eventually slocate told me where it was and I did another export command which went like `export LD_LIBRARY_PATH=/usr/lib/nvidia-current/:/opt/ati-stream-sdk-v2.2-lnx32/lib/x86/:$LD_LIBRARY_PATH`

The path quoted by Raulo works perfectly for me (unless obviously you are using the 32-bit version).

Quote
3. hardwiring the paths is a little annoying because I had to rewrite all the filepaths (I'm on i386). Maybe this could be turned into a genuine pastable script

Good idea.

Quote
4. the tutorial advised me to the 2.1 SDK, but this seemed to lead to odd problems which went away with 2.2. On the other hand, I hadn't rebooted so I'm not entirely sure what was going on there.

Apparently the 2.1 SDK is the most efficient one (for mining purposes) on Linux.
limpbrains
Jr. Member
*
Offline Offline

Activity: 51


View Profile
February 24, 2011, 07:36:20 PM
 #42

I've installed everything following this guide and using Radeon HD 5870.
And started nonstop mining for about 10 hours.
Also I've tried change GPU and memory speed, but returned them to default - 850 Mhz.
After it I've turned off mining and start Ioquake3 just for testing.
After enjoing quake for about 10 minutes miner won't start. It says that I have only 1 device avaible for minig - my CPU.
So I've rebooted my PC.

And now I can't get it working. X server freezes on booting with one-color screen.
I've reinstalled Ubuntu - same rusult  Grin
Really can't figure out what's wrong.

Nothing helpfull in Xorg logs

**UPDATE

Looks like my RAdeon don't work propertly. It succesfully started with driver after 10 minutes break.
Sorry for spamming.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
February 24, 2011, 07:44:53 PM
 #43

I've installed everything following this guide and using Radeon HD 5870.
And started nonstop mining for about 10 hours.
Also I've tried change GPU and memory speed, but returned them to default - 850 Mhz.
After it I've turned off mining and start Ioquake3 just for testing.
After enjoing quake for about 10 minutes miner won't start. It says that I have only 1 device avaible for minig - my CPU.
So I've rebooted my PC.

And now I can't get it working. X server freezes on booting with one-color screen.
I've reinstalled Ubuntu - same rusult  Grin
Really can't figure out what's wrong.

Nothing helpfull in Xorg logs

You re-installed complete system without problems (did it get to the "Reboot" button screen)?
aistto
Legendary
*
Offline Offline

Activity: 981


View Profile
February 26, 2011, 04:49:24 PM
 #44

I can't get working CL

Code:
$ ./CLInfo
terminate called after throwing an instance of 'cl::Error'
  what():  clGetPlatformIDs

$ ldd ./CLInfo
linux-gate.so.1 =>  (0x00144000)
libpthread.so.0 => /lib/libpthread.so.0 (0x004d7000)
libdl.so.2 => /lib/libdl.so.2 (0x00eaa000)
libOpenCL.so => /home/serj/stream/ati-stream-sdk-v2.1-lnx32/lib/x86/libOpenCL.so (0x006bb000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0034b000)
libm.so.6 => /lib/libm.so.6 (0x00e04000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00585000)
libc.so.6 => /lib/libc.so.6 (0x00145000)
/lib/ld-linux.so.2 (0x00f3c000)
librt.so.1 => /lib/librt.so.1 (0x00ba9000

I did everything by Raulo
What's wrong?

catalyst 10.10, ati stream 2.1, ubuntu 10.10, hd4830

edit
I found mistake:)
I did
Code:
tar zxfv icd-registration.tgz
to sdk folder:)
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 02, 2011, 04:38:15 PM
 #45

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
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 02, 2011, 05:46:09 PM
 #46

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


Double check everything up to this point. It must work.

Is fglrxinfo giving you an error? Did you unpack icd-registration.tgz in the correct place? What is the result of
Code:
ldd ./CLInfo
?
Check previous post for correct result.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
March 02, 2011, 06:06:04 PM
 #47

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 was getting that after I made a typo in the Library path. Triple check it. Smiley
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 02, 2011, 09:50:42 PM
 #48

ldd command gives me expected output (libOpenCL.so is in the right place).
I've extracted icd-registration to /, so it created /etc/OpenCL/vendors dir and placed two files there
fglrxinfo gives me some info about the card (no error):
Code:
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5800 Series
OpenGL version string: 4.1.10524 Compatibility Profile Context

LD_LIBRARY_PATH looks correct, because:
Code:
$ ls $LD_LIBRARY_PATH

Gives me a list of six .so / .bc files from SDK lib directory.
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
March 02, 2011, 10:07:15 PM
 #49

ldd command gives me expected output (libOpenCL.so is in the right place).
I've extracted icd-registration to /, so it created /etc/OpenCL/vendors dir and placed two files there
fglrxinfo gives me some info about the card (no error):
Code:
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: ATI Radeon HD 5800 Series
OpenGL version string: 4.1.10524 Compatibility Profile Context

LD_LIBRARY_PATH looks correct, because:
Code:
$ ls $LD_LIBRARY_PATH

Gives me a list of six .so / .bc files from SDK lib directory.

Looks to me like you omitted the ":" after exporting the path (marked in red):

export LD_LIBRARY_PATH=/opt/ati-stream-sdk-v2.1-lnx64/lib/x86_64/:$LD_LIBRARY_PATH
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 02, 2011, 10:13:12 PM
 #50

Yes, I omitted it to be fully certain that the path is good.
I did some fiddling here and there and I got to the point where CLInfo showed my card correctly. But I have another problem - poclbm.py doesn't see it. It displays:

  • Cypress

In card list. When I pick it, it get's 0 khash/s. Anyone encountered something like this?
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
March 02, 2011, 10:16:11 PM
 #51

Yes, I omitted it to be fully certain that the path is good.
I did some fiddling here and there and I got to the point where CLInfo showed my card correctly. But I have another problem - poclbm.py doesn't see it. It displays:

  • Cypress

In card list. When I pick it, it get's 0 khash/s. Anyone encountered something like this?

Cypress is the name of the GPU. Did you add -d 0 to poclbm.py?
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 02, 2011, 10:25:42 PM
 #52

Yes, that's when I got 0 khash/s. I also tried to run other samples from ATI SDK, all are hanging or not working.  Huh

Edit: I switched to SDK v2.2 and I got ~700 khash/s, which is worse that my CPU. What's the matter Huh
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
March 02, 2011, 10:47:08 PM
 #53

Yes, that's when I got 0 khash/s. I also tried to run other samples from ATI SDK, all are hanging or not working.  Huh

Edit: I switched to SDK v2.2 and I got ~700 khash/s, which is worse that my CPU. What's the matter Huh

Seems like using your CPU. Were you using SDK v.2.1 before?

Does ./poclbm give you two devices?
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 02, 2011, 10:50:57 PM
 #54

No, it lists only one. It doesn't list my CPU.
M4v3R
Hero Member
*****
Offline Offline

Activity: 607



View Profile
March 03, 2011, 07:13:48 AM
 #55

I was using v2.1 and I can't get it to work. On v2.2 I finally managed to get it working. It's doing ~250MHash, which is great Smiley. Thanks for all your help!
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
March 03, 2011, 08:19:06 AM
 #56

I was using v2.1 and I can't get it to work. On v2.2 I finally managed to get it working. It's doing ~250MHash, which is great Smiley. Thanks for all your help!

What was wrong that you were only getting 700Mhash/s?

Happy mining! Smiley
burtyb
Jr. Member
*
Offline Offline

Activity: 45



View Profile WWW
March 03, 2011, 09:43:30 AM
 #57

I've noticed when using poclbm sometimes the GPU/CPU numbers change on subsequent runs which makes scripting interesting (to automate a miner for each GPU) - maybe that is the cause here too?

marcus_of_augustus
Legendary
*
Offline Offline

Activity: 2408



View Profile
March 14, 2011, 08:49:10 PM
 #58

There is an omission in this tutorial that will send linux noobs astray on the driver install ...

at this point here

 
Quote
Open terminal and write the following command

$ 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

This should install Proprietary ATI Catalyst drivers.

Assuming a starting position as new clean ubuntu install, between setting your repository to ppa:ubuntu-x-swat and getting the drivers you'll need to issue a command to update the repository list in the machine else you will just go ahead and install the current fglrx drivers referred to in the default repository. (10.10) which is exactly what Mahkul got.

So it should read
$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
$ sudo apt-get update
### or alternately here you can open Synaptic and hit the "Reload" button, check ppa:ubuntu-x-swat is ticked as a repository in Settings->Repositories->Other Software ... also beware an "apt-get update will update your whole system which may take a while depending ....

and now it will get the drivers from ubuntu-xswat (if that is what you really want, I didn't use them)
$ sudo apt-get install fglrx
$ sudo apt-get install fglrx-amdcccle
$ sudo apt-get install fglrx-modaliases

Also here at the repository it recommends you completely uninstall all traces of any installed fglrx before trying to put another on the system ... and you can install a tool to do that (sudo ppa-purge ppa:ubuntu-x-swat/x-updates), so I guess they really mean it.
https://launchpad.net/~ubuntu-x-swat/+archive/x-updates?field.series_filter=maverick
http://wiki.cchtml.com/index.php/Ubuntu_Maverick_Installation_Guide#Removing_Catalyst.2Ffglrx

mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 08:48:45 AM
 #59

I have followed a lot of this and have

 1 off NVIDIA GTX 470
 2 off ATI HD5850

After messing with the NVIDIA Cuda libraries (which I did in fact get working) , I gave up on this and decided to concentrate on getting the ATI cards working.

So far both the ATI cards work and give the expected hashrate, but if I run 2 threads then the combined hashrate is lower than with one card.

If both threads are started with the same -f parameter then its pretty much that the 2nd one to start has a hashrate similar to the cpu and the other one falls to about half what it was.

Otherwise it seems that the one with the lower -f parameter "wins" and the gets about half the expected hashrate, and the other does very much much worse than that.

podclm.py with no parameters gives 3 devices, the cpu, and the 2 ati cards.

Other data:
Ubuntu 10.04.
poclm version: poclbm/201103.beta1
ATI Stream SDK 2.3

Can anyone suggest what I might do to fix this?

[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
marcus_of_augustus
Legendary
*
Offline Offline

Activity: 2408



View Profile
March 25, 2011, 10:46:49 AM
 #60


Crossfire off?

mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 08:16:39 PM
 #61

Yes, crossfire off, and the connector between the boards not connected.

[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 25, 2011, 09:36:19 PM
 #62

So far both the ATI cards work and give the expected hashrate, but if I run 2 threads then the combined hashrate is lower than with one card.

Do you run poclbm with different device numbers, e.g. "-d 1" for the first GPU and "-d 2" for the other (adjust the numbers according to the list printed by poclbm with no options)? It looks like you don't and if you run it with the same device, they will compete for the graphics card.

By the way (but do it after you solve the above issue), SDK 2.1 is faster.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 10:06:25 PM
 #63

Yes thats what I did.


[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 25, 2011, 10:22:33 PM
 #64

Yes thats what I did.

Well, let's check what you did because it should work.

Could you write the output of ./poclbm.py without any options
and your command line options for poclbm.py (obviously without user and pass)?

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 10:42:03 PM
 #65

Thank you! Obviously I HAVE made some error because it SHOULD work. Here goes:

export DISPLAY=:0
mark@bigdaddy:~$ ./poclbm.py
No device specified or device not found, use -d to specify one of the following

[ 0]   Cypress
[1]   Cypress
[2]   Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
./poclbm.py -f 100 --verbose -w 128 -r 60 -v -d1 --user ...  --pass ...

-d0  works exactly the same way so far as I can see.
I use -f 100 because it makes only a small difference to the hash rate but increases display responsiveness a lot.




[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 25, 2011, 10:55:13 PM
 #66

./poclbm.py -f 100 --verbose -w 128 -r 60 -v -d1 --user ...  --pass ...

If you run the above in one window and
Code:
./poclbm.py -f 100 --verbose -w 128 -r 60 -v -d0 --user ...  --pass ...
in another (notice different device numbers) and you still have problems, then it's weird. Do it and show the output of
Code:
aticonfig --odgc --adapter=all

Both cards should have close to 100% usage.

You may also try SDK 2.1 because SDK 2.3 may be broken and SDK 2.1 is faster so it's best to use it anyway.
Notice that the device numbers change with SDK 2.1.

Quote
I use -f 100 because it makes only a small difference to the hash rate but increases display responsiveness a lot.

If by "small difference" you mean about 10% then I agree (in my opinion 10% is quite a lot if you don't care about responsiveness). 

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 11:13:36 PM
 #67

1st window:

mark@bigdaddy:~/poclbm20110311$ ./poclbm.py -f 100 --verbose -w 128 -r 10 -v -d0 --user ... --pass ...
25/03/2011 23:04:05, 187777 khash/s
25/03/2011 23:04:11, checking 3512679190 <= 62265
25/03/2011 23:04:15, 186506 khash/s
25/03/2011 23:04:20, checking 3742602603 <= 62265
25/03/2011 23:04:25, 189006 khash/s
25/03/2011 23:04:35, 192135 khash/s
25/03/2011 23:04:45, 190200 khash/s
25/03/2011 23:04:55, 189390 khash/s
25/03/2011 23:05:05, 193691 khash/s
25/03/2011 23:05:15, 194551 khash/s
25/03/2011 23:05:22, checking 3736923992 <= 62265
25/03/2011 23:05:25, 192253 khash/s
25/03/2011 23:05:31, checking 1440968788 <= 62265
25/03/2011 23:05:35, 190937 khash/s
25/03/2011 23:05:45, 193015 khash/s
^C
Compilation terminated.

2nd window:
mark@bigdaddy:~/poclbm20110311$ ./poclbm.py -f 100 --verbose -w 128 -r 10 -v -d1 --user ... --pass ...
25/03/2011 23:04:06, 85915 khash/s
25/03/2011 23:04:16, 78925 khash/s
25/03/2011 23:04:26, 80097 khash/s
25/03/2011 23:04:36, 80161 khash/s
25/03/2011 23:04:46, 79075 khash/s
25/03/2011 23:04:56, 75824 khash/s
25/03/2011 23:05:06, 73409 khash/s
25/03/2011 23:05:16, 75611 khash/s
25/03/2011 23:05:26, 74499 khash/s
25/03/2011 23:05:36, 74750 khash/s
25/03/2011 23:05:46, 74164 khash/s
25/03/2011 23:05:54, checking 3327463497 <= 62265
25/03/2011 23:05:56, 241692 khash/s
25/03/2011 23:06:02, checking 589964444 <= 62265
25/03/2011 23:06:06, 255866 khash/s
25/03/2011 23:06:06, checking 2921145210 <= 62265
25/03/2011 23:06:11, checking 2796295684 <= 62265
25/03/2011 23:06:16, 256471 khash/s
^C
Compilation terminated.

3rd window:

mark@bigdaddy:~$ date ; aticonfig --odgc --adapter=all
Fri Mar 25 23:05:24 GMT 2011
Adapter 0 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    765           1125
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    72%

Adapter 1 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    765           1125
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    28%
mark@bigdaddy:~$ date ; aticonfig --odgc --adapter=all

Fri Mar 25 23:06:10 GMT 2011
Adapter 0 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    157           300
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    0%

Adapter 1 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    765           1125
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    96%
mark@bigdaddy:~$ date ; aticonfig --odgc --adapter=all

Fri Mar 25 23:07:19 GMT 2011
Adapter 0 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    765           1125
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    0%

Adapter 1 - ATI Radeon HD 5800 Series
                            Core (MHz)    Memory (MHz)
           Current Clocks :    157           300
             Current Peak :    765           1125
  Configurable Peak Range : [550-900]     [900-1300]
                 GPU load :    0%


Explanation:

What I did here is broadly what you suggested. windows 1 and 2 were started as near as I could at the same time.
Although both rates are low, the 2nd window is lower. I stop the 1st window and the 2nd picks up in speed.

In the 3rd window, I run the command a) when both threads are running. b) after the first has been stopped c) after both are stopped.


Any thoughts?

[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 25, 2011, 11:30:22 PM
 #68

Any thoughts?

You are running it correctly but the threads apparently compete for the same GPU instead of running on their own. 

My ideas:

1. Buggy SDK
2. Buggy Catalyst driver (10.11 or 10.12 are reported to work best). What's your version?
3. Broken xorg.conf

Could you show your "Device" sections in /etc/X11/xorg.conf?

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 25, 2011, 11:43:05 PM
 #69

Catalyst version 10.12 according to amdcccle.

I have always hated Xorg.conf!  Here are my device sections:

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

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

And while on the subject, here is
lspci | grep ATI
03:00.0 VGA compatible controller: ATI Technologies Inc Cypress [Radeon HD 5800 Series]
03:00.1 Audio device: ATI Technologies Inc Cypress HDMI Audio [Radeon HD 5800 Series]
04:00.0 VGA compatible controller: ATI Technologies Inc Cypress [Radeon HD 5800 Series]
04:00.1 Audio device: ATI Technologies Inc Cypress HDMI Audio [Radeon HD 5800 Series]

Regards, and thanks for your help !


[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
March 26, 2011, 12:00:04 AM
 #70

Catalyst version 10.12 according to amdcccle.

I have always hated Xorg.conf!  Here are my device sections:

Looks OK. If you have also correct  "Screen" sections (pointing to different devices) then the only thing is SDK 2.3. I read reports that it had some problems with multi-GPU settings:
http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=143851

Install SDK 2.1 and cross fingers. After reading the above thread, it's probably the case.

edit: Apparently
Code:
export GPU_USE_SYNC_OBJECTS=1
should also help (you can make a quick test) but there is no reason to use SDK 2.3.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 26, 2011, 12:07:34 AM
 #71

Screens section is as follows:
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

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


I hear what you say, I will try 2.1 I guess.

Thanks very much for your help.


[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
mintymark
Sr. Member
****
Offline Offline

Activity: 276


View Profile
March 30, 2011, 12:12:11 AM
 #72

I was in truth rather discouraged by all this. Last time I had tried to change versions it was very difficult to get it working again at all.

But the export GPU_USE_SYNC_OBJECTS=1 did it, with 2.3, no need to re-install 2.1

So thanks very much for that clue!!

[[ All Tips gratefully received!!  ]]
15ta5d1N8mKkgC47SRWmnZABEFyP55RrqD
pawel
Newbie
*
Offline Offline

Activity: 1


View Profile
April 12, 2011, 07:55:01 PM
 #73

It's any way to monitoring GPU and CPU temperatures with Bitcoing progress of work by telnet ? Or i obliged to use remote desktop :/
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
April 13, 2011, 06:32:32 PM
 #74

It's any way to monitoring GPU and CPU temperatures with Bitcoing progress of work by telnet ? Or i obliged to use remote desktop :/

Try:

While logged in via ssh try this:

Code:
aticonfig --odgt --adapter=all

If you get errors do:

Code:
export DISPLAY=:0

And then try aticonfig again.

EDIT: By the way, there is a Polish bitcoin forum at http://bitcoin.pl/forum (I assume you're Polish judging by your nick).

EDIT 2: As for the CPU try typing:

Code:
sensors

If this doesn't work follow this guide.
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
April 15, 2011, 06:50:20 PM
 #75

I got:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.6/pyopencl/__init__.py", line 3, in <module>
    import pyopencl._cl as _cl
ImportError: libOpenCL.so.1: cannot open shared object file: No such file or directory

And I do not kown why, but
Code:
$ ./CLInfo |grep CL_DEVICE_TYPE_GPU
got "No such file or directory".
=(

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
April 15, 2011, 07:06:21 PM
 #76

I got:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.6/pyopencl/__init__.py", line 3, in <module>
    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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
April 15, 2011, 07:18:01 PM
 #77

I got:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.6/pyopencl/__init__.py", line 3, in <module>
    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?

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
April 15, 2011, 07:31:11 PM
 #78

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
April 15, 2011, 07:46:51 PM
 #79

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...

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
April 15, 2011, 07:52:49 PM
 #80

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.
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
April 15, 2011, 07:54:38 PM
 #81

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
April 15, 2011, 08:11:37 PM
 #82

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 <module>
    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

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
aistto
Legendary
*
Offline Offline

Activity: 981


View Profile
April 15, 2011, 09:37:09 PM
 #83

did you unzip icd-registration.tgz to /?
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
April 15, 2011, 10:27:35 PM
 #84

did you unzip icd-registration.tgz to /?

yes, with sudo.
/etc/OpenCL/vendors/
with
atiocl32.icd  atiocl64.icd
=(

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
aistto
Legendary
*
Offline Offline

Activity: 981


View Profile
April 16, 2011, 10:25:02 AM
 #85

Make sure that you installed suitable drivers.
Show results of
$ fglrxinfo
valefor
Newbie
*
Offline Offline

Activity: 1


View Profile
April 20, 2011, 12:35:35 AM
 #86

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.
sniper_sniperson
Full Member
***
Offline Offline

Activity: 124


View Profile
April 28, 2011, 09:37:05 AM
 #87

Is there a chance some good guy to make an installer script for 2.4 SDK?
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
April 28, 2011, 01:11:40 PM
 #88

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.
drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
April 28, 2011, 02:18:06 PM
 #89

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
caston
Hero Member
*****
Offline Offline

Activity: 731



View Profile WWW
May 02, 2011, 02:15:13 PM
 #90

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

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
Mahkul
Sr. Member
****
Offline Offline

Activity: 434


Every saint has a past. Every sinner has a future.


View Profile
May 02, 2011, 03:39:17 PM
 #91

Hm, seems like you're getting 133Mhash/s and 171Mhash/s with switches. What's the problem?
caston
Hero Member
*****
Offline Offline

Activity: 731



View Profile WWW
May 03, 2011, 12:51:33 AM
 #92

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!

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
caston
Hero Member
*****
Offline Offline

Activity: 731



View Profile WWW
May 03, 2011, 03:28:53 AM
 #93

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?

18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
jondecker76
Full Member
***
Offline Offline

Activity: 238


View Profile
May 04, 2011, 01:26:56 PM
 #94

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!

RollerBot Advanced Trading Platform
https://bitcointalk.org/index.php?topic=447727.0
BTC Donations for development: 1H36oTJsi3adFh68wwzz95tPP2xoAoTmhC
Bogart
Legendary
*
Offline Offline

Activity: 938


View Profile
May 04, 2011, 05:19:46 PM
 #95

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...

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
chungenhung
Legendary
*
Offline Offline

Activity: 1134


View Profile
May 04, 2011, 06:21:00 PM
 #96

so has anyone completed the full tutorial yet?

Trading MtGox USD for Dwolla/ACH deposit/Chase cash deposit
https://bitcointalk.org/index.php?topic=90115.0
Buy/Sell Call/Put Bitcoin options https://bitcointalk.org/index.php?topic=99853.0
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 04, 2011, 08:48:19 PM
 #97

This should be a complete tutorial. Ask if you have some problems, as I might have had a different hardware/software configuration or forgot about a required package. that I installed before.  

$ sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
# the following line added after moa comment later in the thread
$ sudo apt-get update
$ sudo apt-get install fglrx
$ sudo apt-get install fglrx-amdcccle
$ sudo apt-get install fglrx-modaliases

This should install Proprietary ATI Catalyst drivers.


Hi Raulo,

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.


khash@MiningRig:~$ grep "ATI Proprietary Linux Driver" /var/log/Xorg.0.log
[    15.468] (II) ATI Proprietary Linux Driver Version Identifier:8.80.5
[    15.468] (II) ATI Proprietary Linux Driver Release Identifier: 8.801                               
[    15.468] (II) ATI Proprietary Linux Driver Build Date: Nov 25 2010 21:36:26
khash@MiningRig:~$ 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
khash@MiningRig:~$ fglrxinfo
Segmentation fault

any ideas?

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
May 04, 2011, 09:17:43 PM
 #98

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 04, 2011, 09:44:26 PM
 #99

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 didn't try those lower versions yet, 11.04/10.10 installing/configuring have cost me a lot of hours up till now, i wanted to know if it was possible to mine on the newest ubuntu. But this is something for comming weeks/months to find out.
Thanks

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
eleuthria
Legendary
*
Offline Offline

Activity: 1750



View Profile
May 04, 2011, 09:51:48 PM
 #100

so has anyone completed the full tutorial yet?

I just followed Raulo's guide when setting up my 4th dedicated Miner.  Worked perfectly, although it's possible I interpreted an extra step from memories of setting up the other 3.
kjhd456
Newbie
*
Offline Offline

Activity: 24


View Profile
May 04, 2011, 10:44:46 PM
 #101

It stops working on
Code:
sudo aticonfig --initial
it says
Code:
sudo: aticonfig: command not found
or
Code:
aticonfig: no supported adapters detected

I'm running Ubuntu thru my iMac via VirtualBox, because I don't have enough spare hardware for a dedicated Ubuntu computer right now. The iMac is late 2010 (second newest version as of yesterday), if that matters.

Could it be a problem routing the command thru VirtualBox the the driver on my mac?

Thanks in advance.

Sharecoin: SfMc4KVGzdsXyZiMtALCeVqAxynCGifWwY
aistto
Legendary
*
Offline Offline

Activity: 981


View Profile
May 05, 2011, 07:22:48 PM
 #102

It stops working on
Code:
sudo aticonfig --initial
it says
Code:
sudo: aticonfig: command not found
or
Code:
aticonfig: no supported adapters detected

I'm running Ubuntu thru my iMac via VirtualBox, because I don't have enough spare hardware for a dedicated Ubuntu computer right now. The iMac is late 2010 (second newest version as of yesterday), if that matters.

Could it be a problem routing the command thru VirtualBox the the driver on my mac?

Thanks in advance.
I think it's impossible to mine in that way. You need dedicated rig.
eleuthria
Legendary
*
Offline Offline

Activity: 1750



View Profile
May 05, 2011, 07:55:15 PM
 #103

I'm pretty sure VirtualBox creates a virtual video card adapter.  This means that ATI's drivers, tools, and SDK won't do you any good, because as far as the OS is concerned, you're not using an ATI video card.
kjhd456
Newbie
*
Offline Offline

Activity: 24


View Profile
May 05, 2011, 09:53:13 PM
 #104

Thanks. I have a dedicated mining rig, but its in another country, so I can't get to it. Either way, it's still fun to mess round with Ubuntu.

Sharecoin: SfMc4KVGzdsXyZiMtALCeVqAxynCGifWwY
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 06, 2011, 03:55:11 PM
 #105

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

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
charliesheen
Member
**
Offline Offline

Activity: 98


View Profile WWW
May 06, 2011, 10:53:28 PM
 #106

Wonderful instructions, i had to re export DISPLAY:0 and set the library path before starting poclbm for each GPU

http://www.youtube.com/watch?v=j86pORrusUo

drgr33n
Sr. Member
****
Offline Offline

Activity: 266



View Profile
May 07, 2011, 03:18:02 PM
 #107

Use LinuxCoin Cheesy

http://bitcointalk.org/index.php?topic=7374.0
caston
Hero Member
*****
Offline Offline

Activity: 731



View Profile WWW
May 11, 2011, 04:03:37 PM
 #108

I'm not sure exactly which thread to post this to as I used info from a few different ones but I took my 5770 card out of my machine with a Asus M4A88TD-M EVO motherboard, quadcore athlon, 8gb DDR3 RAM etc (was upgrading to a 6950) and put it in a machine with GA-MA770-S3P motherboard 2gb DDR2 and a single core AM2 Althon. I installed the propriety driver and the AMD APP SDK 2.4 just like I did on the other machine.

I used most of this post (http://bitcointalk.org/index.php?topic=7514.0) and poclbm.

Now when I mine from that machine I am getting a much lower Mhash rating that on my other machine. e.g. its showing  between 110 and 120 Mhash with switches whereas I was getting between 150 and 170 mhash on the other machine using the same card.

I am wondering what the bottlenecks are and how to track them down or if it is just that overall this machine is a slower machine e.g. only pcie 2.0 and not pcie 2.1, slower RAM, slower FSB etc.

The reason I ask is because its probably better to optimise your setup and software as much as possible before you try other things like overclocking.

I will probably also try it with a linux coin boot cd tomorrow.


18jL18iH96BBhwUCQn27FQp7ocodSxvJAB
Bogart
Legendary
*
Offline Offline

Activity: 938


View Profile
May 11, 2011, 06:40:36 PM
 #109

I finally got mining working on linux by following this guide (roughly), and I thought I'd share a few pitfalls I discovered, to help others to avoid the same fate.

I'm running Ubuntu 10.04.2 64-bit on a Phenom II X6, using a single 5970, Stream SDK 2.1, and poclbm.

Tip #1: Start with Ubuntu Desktop.  If you start with Ubuntu Server you'll just make things harder for yourself.  Running the "full stack" GUI is essential for mining to work at all.  (I ended up "converting" Server using 'apt-get install ubuntu-desktop'.)

Tip #2: The drivers from ati.com (10.11 and 11.4) did not work at all for me for OpenCL using the GPUs.  They would drive the display fine, but I was never able to make the GPUs available for OpenCL (OpenCL apps would show the CPU only.  Using the drivers from the ppa:ubuntu-x-swat/x-updates repo solved that problem for me.

Tip #3: The whole business of setting LD_LIBRARY_PATH seems really clunky to me, and it didn't work either.  Instead I added the path to /etc/ld.so.conf.d/OpenCL.conf (creating a new file), and then ran sudo ldconfig.  After that everything was able to link dynamically to the Stream SDK just fine.

Tip #4: If you have limited internet bandwidth like me, there are a couple ways you can make the install easier.  One is to get the Ubuntu 10.04.2 install DVD and add it to /etc/apt/sources.list.  This will allow many of the needed packages to be installed from there instead of being downloaded.  For a physical disc, you can use 'apt-cdrom' to access it.  For the iso, you can mount it using 'mount -o loop ubuntu_dvd.iso /mnt/ubuntu-install-dvdrom', and then add a line to /etc/apt/sources.list like "deb file:/ubuntu-install-dvdrom/ lucid main restricted".  Another bandwidth saver is to use squid to cache any downloaded packages and indexes.  See http://itkia.com/using-squid-to-cache-apt-updates-for-debian-and-ubuntu/


Pitfall #1: If the GUI (Xorg) is not running, mining and any other OpenCL operations will fail.

Pitfall #2: If the GUI is running, BUT is not currently trying to display the GUI (i. e. you use ctrl-alt-F1 to switch to text mode display), any OpenCL programs such as CLInfo and poclbm will hang when you try to execute them.

Pitfall #3: If the GUI is running AND displaying, BUT the user is not logged into the GUI (It's sitting at the login screen), the user will not be able to use the GPUs with OpenCL apps (logging in via ssh).  You must then use sudo in order for CLInfo or poclbm to be able to see the GPU(s).

Pitfall #4: If the GUI is running AND displaying AND the user is logged into a GUI session, then you will able to run OpenCL processes as the user and use the GPUS, HOWEVER you must export DISPLAY=:0 in order to see both GPUs.  If you fail to do this, only one GPU will show up.

Pitfall #5: If the GUI is running AND attempting to display BUT a display is not connected to the video card, most functions will work, but you will be unable to use "aticonfig --odgt" to query the GPU temperature until you connect a display.  The program will just hang instead.  Using a dummy display adapter may help with this problem.

I hope this information is useful.

"All safe deposit boxes in banks or financial institutions have been sealed... and may only be opened in the presence of an agent of the I.R.S." - President F.D. Roosevelt, 1933
JorgePasada
Member
**
Offline Offline

Activity: 61


View Profile
May 13, 2011, 07:59:03 AM
 #110

So . . . Tried to get this miner working using https://www.bitcoin.org/smf/index.php?topic=3359.msg108953#msg108953 that guide today for about 2 hours, and I have no idea what I'm doing wrong, nor if I'm just missing something simple.

Any tips or other places I should be looking?

Jorge
freecoin
Jr. Member
*
Offline Offline

Activity: 31


View Profile
May 14, 2011, 04:57:39 AM
 #111

Noob here using Ubuntu 11.04 desktop 64 bit.  With the help of some other threads here I managed to install:
1. Bitcoin with GUI interface.  Although I have no bitcoind.  Works but connections seem a little flakey.  I can CPU generate at about 5 Mhash/s.

2. poclbm$ ./poclbm.py
No device specified or device not found, use -d to specify one of the following
[ 0]   Intel(R) Core(TM) i7 CPU         920  @ 2.67GHz
[1]   Cypress
[2]   Cypress

3. phoenix/$ ./phoenix.py -u http://user:pass@192.168.1.2:8332 -k poclbm BFI_INT vectors device=1
[14/05/2011 00:31:49] Phoenix r76 starting...
[14/05/2011 00:31:52] Failed to connect, retrying...
[14/05/2011 00:32:10] Failed to connect, retrying...
etc...
[0 Khash/sec] [0 Accepted] [0 Rejected] [RPC]

How can I GPU generate solo?  Just want to test my GPU hash rate before I decide to join a pool.  What am I missing?
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
May 14, 2011, 07:46:46 AM
 #112

How can I GPU generate solo?  Just want to test my GPU hash rate before I decide to join a pool.  What am I missing?

You did not configure your bitcoin to accept RPC commands. Follow these instructions for creating bitcoin.conf
https://en.bitcoin.it/wiki/Running_Bitcoin

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
freecoin
Jr. Member
*
Offline Offline

Activity: 31


View Profile
May 14, 2011, 12:54:24 PM
 #113

thought I did.  Created this bitcoin.conf file in the subfolder:
rpcuser=use
rpcpassword=pass
# Listen for RPC connections on this TCP port:
rpcport=8332


I start bitcoin with this from command line:
./bitcoin -server -rpcuser=user rpcpassword=pass

And then I open another Terminal and launch the ./phoenix command

Thanks for the reply!
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 14, 2011, 10:30:36 PM
 #114

So . . . Tried to get this miner working using https://www.bitcoin.org/smf/index.php?topic=3359.msg108953#msg108953 that guide today for about 2 hours, and I have no idea what I'm doing wrong, nor if I'm just missing something simple.

Any tips or other places I should be looking?

Jorge

When done installing you join one of the pools and start mining

- Joining a pool: you make an account at one of the pools, mining.bitcoin.cz - deepbit.net - bitcoinpool.com - btcmine.com - Eligius.?
to start a miner(poclbm or phoenix):
- go to youruserdirectory/poclbm and you start it with: python poclbm.py --host=poolservername.com --port=8332 --user=username --pass=yourpassword --device =0
- go to youruserdirectory/phoenix and start it with: python phoenix.py -u http://username:password@poolservername:8332 -k poclbm VECTORS BFI_INT DEVICE=0 AGGRESSION=12

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
freecoin
Jr. Member
*
Offline Offline

Activity: 31


View Profile
May 15, 2011, 06:54:08 AM
 #115

Gnaffel! It's working!  poclbm is showing 308 Mhash/s per core without any tweaking.  Seems I wasn't using the 'python' command and 'user='  Not pool mining yet, just testing.  Throwing out some serious heat - 84C core after several minutes. The phoenix command still errors with 'failed to connect.'  Is this how it's normally done; start poclbm and then phoenix?

Thanks; I sent you coin.

Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 15, 2011, 03:16:26 PM
 #116

Gnaffel! It's working!  poclbm is showing 308 Mhash/s per core without any tweaking.  Seems I wasn't using the 'python' command and 'user='  Not pool mining yet, just testing.  Throwing out some serious heat - 84C core after several minutes. The phoenix command still errors with 'failed to connect.'  Is this how it's normally done; start poclbm and then phoenix?

Thanks; I sent you coin.



Welcome to the world of Bitcoin mining

84C is a little high, i keep mine going between 74C - 79C, play around with aticonfig: aticonfig -h (ati help)
aticonfig --odgt --adapter=all (GPU temperature), aticonfig --odgc --adapter=all (shows clock speed), aticonfig --pplib-cmd "get fanspeed 0" (shows fan speed)

or try AMDOverDriveCtrl: http://sourceforge.net/projects/amdovdrvctrl/

The phoenix error is because you haven't set a valid pool account.

Normally you only need one miner (poclbm or phoenix) going for one gpu card or 2 gpu's on crossfire.


1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
freecoin
Jr. Member
*
Offline Offline

Activity: 31


View Profile
May 16, 2011, 12:50:41 AM
 #117

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:PASS@192.168.1.2: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.
Gnaffel
Jr. Member
*
Offline Offline

Activity: 53


View Profile
May 16, 2011, 01:25:26 AM
 #118

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:PASS@192.168.1.2: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:RPCPASSWORD@127.0.0.1:8332 -k poclbm VECTORS BFI_INT DEVICE=1 WORKSIZE=128

then you can start solomining

1CKysMBXVd6qEAhrP7eXWFYwhfGkwqBEWS
freecoin
Jr. Member
*
Offline Offline

Activity: 31


View Profile
May 16, 2011, 03:57:46 AM
 #119

you da man.  Phoenix now working.  Slightly better numbers than poclbm.  Haven't overclocked the GPU cores.

Thanks!
sagefool1975
Newbie
*
Offline Offline

Activity: 6


View Profile
May 20, 2011, 01:02:31 AM
 #120

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.
thesaint4cs
Newbie
*
Offline Offline

Activity: 2


View Profile
May 24, 2011, 06:31:07 PM
 #121

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
Raulo
Full Member
***
Offline Offline

Activity: 238


View Profile
May 24, 2011, 06:39:54 PM
 #122

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.

1HAoJag4C3XtAmQJAhE9FTAAJWFcrvpdLM
thesaint4cs
Newbie
*
Offline Offline

Activity: 2


View Profile
May 24, 2011, 08:01:19 PM
 #123

*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
Sicness
Jr. Member
*
Offline Offline

Activity: 30


View Profile
June 01, 2011, 09:59:38 AM
 #124

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?
Laminator
Newbie
*
Offline Offline

Activity: 10


View Profile
June 02, 2011, 02:11:33 PM
 #125

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?
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
June 02, 2011, 02:43:24 PM
 #126

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.

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
June 02, 2011, 03:00:51 PM
 #127

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.

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
Laminator
Newbie
*
Offline Offline

Activity: 10


View Profile
June 02, 2011, 03:31:25 PM
 #128

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
cbeast
Donator
Legendary
*
Offline Offline

Activity: 1736

Let's talk governance, lipstick, and pigs.


View Profile
June 06, 2011, 07:13:50 PM
 #129

I'm using this as a first time Linux user. Thanks for doing this, I'll donate if I get it to work!

Any significantly advanced cryptocurrency is indistinguishable from Ponzi Tulips.
blap
Jr. Member
*
Offline Offline

Activity: 53


=)


View Profile
June 07, 2011, 03:16:12 PM
 #130

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 <module>
    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 <module>
    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

I could be killing, I could be stealing. But I'm begging here:
http://payb.tc/blap or
1LLqF5bdbhQoH37ztTsZ5tmyE5Lq7jYmns
=)
chut
Newbie
*
Offline Offline

Activity: 20


View Profile
June 11, 2011, 11:00:20 AM
 #131

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.
Yeti
Member
**
Offline Offline

Activity: 112

Firstbits: 1yetiax


View Profile
June 12, 2011, 11:47:19 PM
 #132

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!

1YetiaXeuRzX9QJoQNUW84oX2EiXnHgp3 or http://payb.tc/yeti

Since Bitcoin Randomizer is dead, join the Bitcoin Pyramid (referrer id #203)! Be quick, be on top! Instant payout as soon as one of your referrals deposits!
ewibit
Legendary
*
Offline Offline

Activity: 2072


View Profile
July 03, 2011, 03:08:12 PM
 #133


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
Cablesaurus
Sr. Member
****
Offline Offline

Activity: 302



View Profile WWW
July 26, 2011, 10:26:06 PM
 #134

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.

PCIe Extender Cables; Dummy Plugs, Fans; PSU Cables; Cases & More
Visit www.Cablesaurus.com and our forum thread at http://bitcointalk.org/index.php?topic=6128.0
newminerr
Member
**
Offline Offline

Activity: 112

like no other.


View Profile
July 28, 2011, 08:29:03 PM
 #135

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
kano
Legendary
*
Offline Offline

Activity: 2240


Linux since 1997 RedHat 4


View Profile
January 20, 2012, 10:11:23 PM
 #136

Hmm found someone still using this so I thought they should use something at least a little more updated Tongue
See my sig Smiley

Pool: https://kano.is Here on Bitcointalk: Forum BTC: 1KanoPb8cKYqNrswjaA8cRDk4FAS9eDMLU
FreeNode IRC: irc.freenode.net channel #kano.is Majority developer of the ckpool code
Help keep Bitcoin secure by mining on pools with full block verification on all blocks - and NO empty blocks!
Pages: 1 2 3 4 5 6 7 [All]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!