Bitcoin Forum
April 25, 2024, 07:13:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Easy Ubuntu python OpenCL mining setup  (Read 140108 times)
Dusty
Hero Member
*****
Offline Offline

Activity: 731
Merit: 503


Libertas a calumnia


View Profile WWW
April 16, 2011, 12:15:55 AM
 #21

Thank brunopio!
Your hint solved my problem.

While for yours:
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

I found this topic: http://bitcointalk.org/index.php?topic=3359.0;all
but I do not kown what to do next...
=(

Try with:
apt-get install python-pyopencl

Articoli bitcoin: Il portico dipinto
1714029227
Hero Member
*
Offline Offline

Posts: 1714029227

View Profile Personal Message (Offline)

Ignore
1714029227
Reply with quote  #2

1714029227
Report to moderator
1714029227
Hero Member
*
Offline Offline

Posts: 1714029227

View Profile Personal Message (Offline)

Ignore
1714029227
Reply with quote  #2

1714029227
Report to moderator
1714029227
Hero Member
*
Offline Offline

Posts: 1714029227

View Profile Personal Message (Offline)

Ignore
1714029227
Reply with quote  #2

1714029227
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
Pander
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
April 18, 2011, 01:27:45 PM
 #22

in /opt/ati-stream-.../lib/ do
Code:
sudo ln -s libOpenCL.so libOpenCL.so.1
JWU42
Legendary
*
Offline Offline

Activity: 1666
Merit: 1000


View Profile
April 23, 2011, 11:42:07 PM
 #23

Bruno's issue is that the LD_LIBRARY_PATH isn't in .bashr

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

This assumes your are following Raulo's guide and using 2.1 and are on x86_64

TheShoura
Member
**
Offline Offline

Activity: 98
Merit: 10

Testing


View Profile
May 05, 2011, 08:40:50 AM
 #24

How do I change the PW's after running the script

If you would like to send me a tip: 1HVGGWGWgHkyh9K8sntkZmXoiopX8Bsvv8

Security: 8452BCD9
ALWAYS gpg ident the person you're about to exchange with!
DELTA9
Member
**
Offline Offline

Activity: 102
Merit: 10


View Profile
May 15, 2011, 05:42:34 PM
 #25

trying to mine on my HP laptop...xubuntu 32bit, nvidia 8400m gs

Quote
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 505, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/thevjm/BitcoinMiner.py", line 272, in miningThread
    self.loadKernel()
  File "/home/thevjm/BitcoinMiner.py", line 355, in loadKernel
    self.context = cl.Context([self.device], None, None)
RuntimeError: Context failed: out of host memory

seems to be having trouble communicating with bitcoin RPC, can anyone help?
floe
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
May 25, 2011, 04:51:17 PM
 #26

Just cloned the git repo on my Ubuntu 11.04 machine and started the miner without any issues at all.
Thanks for such a smooth piece of software  Cheesy
Currently reporting ~ 6.3 Mhash/s on my Geforce 8600 GT, very impressive.

One additional question: do the hashes generated by poclbm show up in the "hashespersec" statistic shown by "bitcoind getinfo"? Seems like they don't...

Florian
Shin
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 25, 2011, 05:34:58 PM
 #27

Hi,
I just got through these steps to bitcoin mining on a NVidia GF9400 and I get just 2350khash/sec. That's not so impressive against my low end Core2Duo with 1680khash/sec.

Is my card not so good?

Cheers...
ethereal
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 26, 2011, 05:47:55 PM
 #28

Aha, got it. Thanks!

Currently mining at ~20,000 khash/s on a AMD 550v; my CPU usage is negligable.

- ethereal
deuxmill
Full Member
***
Offline Offline

Activity: 130
Merit: 100



View Profile
May 27, 2011, 11:36:40 PM
 #29

Hello guys i managed to get it working ... i'm currently trying to conect to bitcoin.cz could anyone please tell me the command to do so.

Thank you
AngelusWebDesign
Sr. Member
****
Offline Offline

Activity: 392
Merit: 250


View Profile
May 31, 2011, 10:55:52 PM
 #30

Glad it worked for you too! Sure, I'll accept donations at 1JpsaZmgqaPTx9pHayPHxNK3uuHqahDZ12.

Ok, just sent you 10 bitcoins.

This is quaint to read -- I see it came from January of this year.
Today you'd never see someone give 10 BTC, no matter how grateful they were Smiley
That would be $90 at today's prices.
T4b
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 03, 2011, 06:15:56 PM
 #31

Hello guys i managed to get it working ... i'm currently trying to conect to bitcoin.cz could anyone please tell me the command to do so.

Thank you
python poclbm.py -d 0 --user USER --pass PASSWORD --host=mining.bitcoin.cz --port=8332

This miner uses about 50% cpu although it is supposed to be a gpu miner. What could be the cause of this? I guess this isn't the normal behaviour?
CristianCantoro
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 04, 2011, 06:28:20 PM
 #32

Hi everybody,

I have tried to rum poclbm on Ubuntu 11.04 my graphics card is Nvidia is the following (output of lshw)
product: C67 [GeForce 7000M / nForce 610M]

If I run poclbm I get:

$ ./poclbm.py
Traceback (most recent call last):
  File "./poclbm.py", line 27, in <module>
    platforms = cl.get_platforms()
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

I have read previous links but that did not help. I have nvdia drivers installed and also CUDA installed.
Thanks in advance.
T4b
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
June 07, 2011, 03:30:50 PM
 #33

When I run the last command, I receive
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
  File "/usr/lib/pymodules/python2.7/pyopencl/__init__.py", line 3, in <module>
    import pyopencl._cl as _cl
ImportError: libboost_python-py27.so.1.42.0: cannot open shared object file: No such file or directory


Libboost_python 1.42 has been installed, so I do not know what the issue is.
Then it's maybe in the wrong place, if it's actually installed?

This miner uses about 50% cpu although it is supposed to be a gpu miner. What could be the cause of this? I guess this isn't the normal behaviour?
EJW
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 08, 2011, 06:40:21 PM
 #34

Quote

now 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

I found this topic: http://bitcointalk.org/index.php?topic=3359.0;all
but I do not kown what to do next...
=(


Yo, first post...I too have this problem trying to get mining up and running.
I'm using an NVIDEA graphics card, so I think the problem is that I'm running a 32-bit machine and the script is assuming is 64-bit. Thing is I'm fairly new to both Ubuntu and Python so I've no idea what to do! Any help would be greatly appreciated.
floe
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 10, 2011, 09:43:01 AM
 #35

$ ./poclbm.py
Traceback (most recent call last):
  File "./poclbm.py", line 27, in <module>
    platforms = cl.get_platforms()
pyopencl.LogicError: clGetPlatformIDs failed: invalid/unknown error code

When you have this problem, you should check /etc/OpenCL/vendors/amdocl32.icd - this file should exist and contain the string "libamdocl32.so"
(for a 64-bit system, replace 32 with 64).

Floe
Friar
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
June 12, 2011, 01:10:42 AM
 #36

I've gone through this installation process, but I seem to be spending most of the time downloading blocks.

Also, is there somewhere that defines what the command line arguments are? Can I use my GPU and both CPU cores?  How can I look in my wallet?
ThiagoCMC
Legendary
*
Offline Offline

Activity: 1204
Merit: 1000

฿itcoin: Currency of Resistance!


View Profile
June 26, 2011, 02:50:59 PM
Last edit: June 26, 2011, 03:19:36 PM by ThiagoCMC
 #37

Guys,

 I would like to update this thing a bit, look:

 
Quote
Do not use Ubuntu 11.04 with NVidia cards! The poclbm.py/python process will consume all of your CPU for nothing. This behavior does not exist in Ubuntu 10.10.

 
Quote
The poclbm in Ubuntu 10.10 does not consume 100% of CPU, but Xorg does if you try to use the mining machine as a daily Desktop...  Undecided

 New procedure:

Code:
cd ~

sudo add-apt-repository ppa:stretch/bitcoin
sudo apt-get update
sudo apt-get install python-pyopencl subversion git-core bitcoin

svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
cd ~/python-jsonrpc/
sudo python setup.py install
cd ~

mkdir ~/.bitcoin
echo "rpcuser=user" > .bitcoin/bitcoin.conf
echo "rpcpassword=password" >> .bitcoin/bitcoin.conf

bitcoin -server &

git clone https://github.com/m0mchil/poclbm.git
cd ~/poclbm
python poclbm.py -d 0 --user user --pass password

 You can change the command:

Code:
bitcoin -server &

 to:

Code:
bitcoind -daemon

 ...if you do not want the GUI interface of Bitcoin client.

 Advantages of this approach:

 1- To upgrade Bitcoin client, just run:

Code:
sudo apt-get update
sudo apt-get upgrade

 2- To upgrade poclbm, just run:

Code:
cd ~/poclbm
git pull

 3- To upgrade python-jsonrpc, run:

Code:
cd ~/python-jsonrpc/
svn up
# If there is a new version:
sudo python setup.py install
cd ~

 That's it!

Cheers!
Thiago
Zenitur
Sr. Member
****
Offline Offline

Activity: 362
Merit: 250


View Profile
July 30, 2011, 08:01:45 AM
 #38

http://svn.json-rpc.org/trunk/python-jsonrpc - Error 404.

P.S. Ubuntu sucks.
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!