Bitcoin Forum
August 21, 2025, 02:47:08 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [37] 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  Print  
Author Topic: python OpenCL bitcoin miner  (Read 1239536 times)
Beremat
Full Member
***
Offline Offline

Activity: 263
Merit: 100


YGOLD is a Defi platform


View Profile
March 27, 2011, 08:42:16 PM
 #721

Hi does anyone know if the accepted shares should be shown?

I am running solo with the latest poclbm client and unlike mining in pool the command prompt doesn't show any accepted shares or rejected shares. Is this normal?

Cheers!
There are no shares when mining solo, only found blocks.

kindle
Member
**
Offline Offline

Activity: 84
Merit: 10


View Profile
March 27, 2011, 08:43:50 PM
 #722

Oh thanks for the prompt reply, will overclocking failure reflect rejected?

m4rkiz
Full Member
***
Offline Offline

Activity: 170
Merit: 100


View Profile
March 29, 2011, 11:38:30 AM
 #723

Version 20110325 is a good 5%-10% slower on my 2nd and 3rd card compared to version 20110311.

i have a drop of ~2000 khash/s on 6950 and ~1000 khash/s on 5970 and 5870, nothing major, not even 1%
nelisky
Legendary
*
Offline Offline

Activity: 1540
Merit: 1002


View Profile
March 29, 2011, 05:30:01 PM
 #724

Not sure if this was discussed before, I didn't find anything on my 5 seconds search. I needed to use ssl for remote miners and while bitcoind now supports that out of the box, poclbm didn't seem to, at least not the version I was using (and I'm too lazy to try and upgrade a perfectly running system) so here's a patch to allow for that. Patch is for BitcoinMiner.py and you just supply the host part with 'https://' prefix to make it use ssl.

Code:
158,159c158,162
<
< self.host = '%s:%s' % (host.replace('http://', ''), port)
---
> if host.find('https:') >= 0:
> self.connector = httplib.HTTPSConnection
> else:
> self.connector = httplib.HTTPConnection
> self.host = '%s:%s' % (host.replace('http://', '').replace('https://', ''), port)
220c223
< self.connection = httplib.HTTPConnection(self.host, strict=True, timeout=5)
---
> self.connection = self.connector(self.host, strict=True, timeout=5)
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
March 29, 2011, 07:43:09 PM
 #725

Thanks nelisky! I'll add this in next version.

Elanzer
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
March 31, 2011, 01:29:21 AM
 #726

try sdk 2.2 instead

Using SDK 2.2 instead of 2.3 or 2.4, I still get 2 cores put to 100% load using a HD 5870 and HD 5670 on Win7.

For the meanwhile anyone with this problem can set CPU affinity to only 1 (same for all) core for all poclbm processes so only one core is fully loaded, that way less electricity is used and less heat is made until a proper solution arises.. it doesn't seem to effect hash rate at all.
niooron
Full Member
***
Offline Offline

Activity: 193
Merit: 100


View Profile
April 03, 2011, 03:28:43 AM
 #727

A while ago I installed opensuse 11.4, what exactly I need to do to use poclbm? The source only has 4 files and no makefile.
CD-RW
Jr. Member
*
Offline Offline

Activity: 56
Merit: 22


View Profile
April 03, 2011, 12:31:51 PM
 #728

Still have the CTRL+c error

Code:
03/04/2011 14:29:26, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyo", line 142, in mine
IOError: [Errno 4] Interrupted function call

bye

Doesn't look like a graceful shutdown to me Tongue
kelp
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
April 04, 2011, 07:55:43 PM
 #729

I'm getting a crash on Mac OS X 10.6.7 with m0mchil-poclbm-b981138. It doesn't crash with m0mchil-poclbm-74a5442.

I've posted the stack trace here:
https://gist.github.com/902241

I'm running it like this:

python poclbm.py -o deepbit.net -p 8332 -u <email> --pass=<password> -d 0 -f 120

This is with Python 2.6.6 installed from MacPorts. All dependencies were also installed from MacPorts.

Anyone else running into this and found a fix?
FnuGk
Newbie
*
Offline Offline

Activity: 55
Merit: 0


View Profile
April 05, 2011, 04:28:54 PM
 #730

I'm getting a crash on Mac OS X 10.6.7 with m0mchil-poclbm-b981138. It doesn't crash with m0mchil-poclbm-74a5442.

I've posted the stack trace here:
https://gist.github.com/902241

I'm running it like this:

python poclbm.py -o deepbit.net -p 8332 -u <email> --pass=<password> -d 0 -f 120

This is with Python 2.6.6 installed from MacPorts. All dependencies were also installed from MacPorts.

Anyone else running into this and found a fix?

how do i run it on mac?

sanchaz
Member
**
Offline Offline

Activity: 90
Merit: 10


View Profile
April 05, 2011, 05:30:46 PM
Last edit: April 05, 2011, 05:59:28 PM by sanchaz
 #731

Hi,

I have a HD5850, and installed the AMD STREAM SDK 2.2.
But whenever i try to launch the miner i get my cpu's being used at 100% and no activity from the GPU.

Quote
Q: Why it uses 100% CPU?

You probably selected the CPU as OpenCL device. Or you are using it on Linux with AMD Stream SDK 2.2. Use 2.1 instead.

So how do i select the GPU as OpenCL device?

thank you.

EDIT: never mind just changed -d 0 to -d1 and the gpu was used.

Is there an option to limit the usage of the GPU to 50%?

Anonymous Cash-By-Mail Exchange: https://www.bitcoin2cash.com
kelp
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
April 05, 2011, 05:31:28 PM
 #732

I'm getting a crash on Mac OS X 10.6.7 with m0mchil-poclbm-b981138. It doesn't crash with m0mchil-poclbm-74a5442.

I've posted the stack trace here:
https://gist.github.com/902241

I'm running it like this:

python poclbm.py -o deepbit.net -p 8332 -u <email> --pass=<password> -d 0 -f 120

This is with Python 2.6.6 installed from MacPorts. All dependencies were also installed from MacPorts.

Anyone else running into this and found a fix?

Oddly, now it's working fine for me with b981138.
Mongol
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
April 05, 2011, 08:22:41 PM
 #733



AMD 5xxx and up
use '-v -w 128'

Hi miners!

This should be "-v -w 128" or "-v -w128" without quote of course?
kelp
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
April 05, 2011, 11:26:53 PM
 #734


how do i run it on mac?



This is what I had to do.

Download and install Xcode

Install MacPorts from: http://www.macports.org/install.php

Install the dependences for poclbm. This step may take a long time while it downloads and compiles stuff:

sudo port install py26-pyopencl

Download the sources for m0mchil-poclbm, from https://github.com/m0mchil/poclbm

then open a terminal and extract it, and give it a try.

mkdir Bitcoin
cd Bitcoin
tar zxvf ~/Downloads/m0mchil-poclbm-b981138.tar
cd m0mchil-poclbm-b981138/
python2.6 poclbm.py -d 0 -o yourfavoriteminer -p 8332 -u user@example.com --pass=something

Be aware, that for what ever reason, OS X is FAR slower for mining than Linux or Windows. I run this on a Mac Pro with a pair of ATI Radeon HD 5770s. In OS X I get about 65Mhash/s on one and 95Mhash/s on the other. I installed  Ubuntu 10.10 and boot into it through Bootcamp. There I get 170Mhash/s on each card, over 2x the performance.
laykaka
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 07, 2011, 03:57:12 AM
 #735

ขอบคุณมาก ครับ
nster
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile
April 07, 2011, 04:00:27 AM
 #736

ขอบคุณมาก ครับ

That is Thai for Thank you very much

167q1CHgVjzLCwQwQvJ3tRMUCrjfqvSznd Donations are welcome Smiley Please be kind if I helped
Reto
Newbie
*
Offline Offline

Activity: 101
Merit: 0


View Profile
April 07, 2011, 10:21:14 PM
 #737

I tried the search function, but I didn't get any results, so gonna ask my question.

Can I cap the processing power this can use? I'd like to be able to limit it to 50% or so power so I can still get decent gaming performance.
cdhowie
Full Member
***
Offline Offline

Activity: 182
Merit: 107



View Profile WWW
April 07, 2011, 10:27:05 PM
 #738

I tried the search function, but I didn't get any results, so gonna ask my question.

Can I cap the processing power this can use? I'd like to be able to limit it to 50% or so power so I can still get decent gaming performance.

You shouldn't have to if you use -f.  Try adding -f 120 to the command line and play a game.  The game framerate will be just slightly degraded; I don't usually notice a difference.  If you have dual monitors and put the miner on the one you don't use for gaming, you'll notice that the hashrate will drop dramatically while you play.  Basically it will be using the extra GPU cycles that the game is idle during.

Tips are always welcome and can be sent to 1CZ8QgBWZSV3nLLqRk2BD3B4qDbpWAEDCZ

Thanks to ye, we have the final piece.

PGP key fingerprint: 2B7A B280 8B12 21CC 260A  DF65 6FCE 505A CF83 38F5

SerajewelKS @ #bitcoin-otc
Reto
Newbie
*
Offline Offline

Activity: 101
Merit: 0


View Profile
April 07, 2011, 10:44:20 PM
 #739

At the end or anywhere in the command?
cdhowie
Full Member
***
Offline Offline

Activity: 182
Merit: 107



View Profile WWW
April 07, 2011, 10:46:31 PM
 #740

At the end or anywhere in the command?

Anywhere, so long as you don't separate another switch and its argument.  The end is a good place to put it if you want to be sure.  Smiley

Tips are always welcome and can be sent to 1CZ8QgBWZSV3nLLqRk2BD3B4qDbpWAEDCZ

Thanks to ye, we have the final piece.

PGP key fingerprint: 2B7A B280 8B12 21CC 260A  DF65 6FCE 505A CF83 38F5

SerajewelKS @ #bitcoin-otc
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 [37] 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 »
  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!