Bitcoin Forum
September 17, 2025, 01:59:54 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 1239583 times)
LobsterMan
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 19, 2010, 03:02:39 AM
 #201

I made a bit of a discovery when testing m0m's latest binaries in -testnet, look at the times when blocks are generated in the miners, and note that they don't all show up in bitcoin's UI:



There seems to be a delay of 1 or more minutes between when they show up in the miner and when bitcoin picks up the transaction, if it picks it up at all.
Is this something to worry about, or just a peculiarity of testnet?
Remote
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 19, 2010, 07:37:22 AM
 #202

it's actually all said in this thread, you just have to read it.

1. download (getwork patched client) bitcoin-getwork-* and the miner poclbm_py2exe_*.


2. make sure, you got a bitcoin.conf file at
C:\Users\[username]\AppData\Roaming\Bitcoin\bitcoin.conf
(or on xp)
C:\Documents and Settings\[username]\Application Data\Bitcoin\bitcoin.conf

containing
Code:
rpcuser=someone
rpcpassword=secret


3.a start bitcoin -server and wait for connections to get the last block
3.b start poclbm --user=someone --pass=secret
if you only have one GPU, this is it, if there's more, you'd need to specify the device to use for the miner, but it will tell you.
if you don't know how to handle your commandline, just create
a bitcoin.bat containing
Code:
start /DC:\Users\[username]\Desktop\bitcoin bitcoin.exe -server
and a poclbm.bat containing
Code:
start /DC:\Users\[username]\Desktop\poclbm poclbm.exe --user=someone --pass=secret
to feed your clicking-needs.


4. wait and/or pray Cheesy



Thanks for the guide, although it looks like you left something out. When I start the miner I get the following error:

Traceback (most recent call last):
  File "poclbm.py", line 5, in <module>
  File "pyopencl\__init__.pyc", line 3, in <module>
  File "pyopencl\_cl.pyc", line 12, in <module>
  File "pyopencl\_cl.pyc", line 10, in __load
ImportError: DLL load failed: The specified procedure could not be found.

Edit: Please post links if something needs to be downloaded.

I'm on Windows 7 64bit and have a NVIDIA GeForce 8800 GTS (with "OpenCL 1.0 CUDA 3.1.1 - CU: 12 @ 1188MHz (GPU)").

Nobody that can help me? I'm about to give up on running Bitcoins since I could use my CPU for other things, but I would like to use my GPU while I'm doing those other things. Please take a moment and explain how to fix this error.
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
November 19, 2010, 08:48:17 AM
 #203

i'm not sure about that error,
but do you have latest devdriver and cudatoolkit installed on your machine?

AHZ
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
November 19, 2010, 08:39:18 PM
 #204

I made a bit of a discovery when testing m0m's latest binaries in -testnet, look at the times when blocks are generated in the miners, and note that they don't all show up in bitcoin's UI:
...
There seems to be a delay of 1 or more minutes between when they show up in the miner and when bitcoin picks up the transaction, if it picks it up at all.
Is this something to worry about, or just a peculiarity of testnet?

I had 2 such events with bitcoin-getwork-svn173-win32 in a real network
the miner had the event, but bitcoin did not catch it at all.
I still do not know what happened there and how to to trace it Sad
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
November 19, 2010, 08:50:47 PM
 #205

that's just one of those ~10% "lost blocks",
your miner finds one, your client checks the network, network tells your client it's to late.

within the last weeks i'v been able to "find" 50hashes, only 45 of them have been accepted/shown up in the client-gui/generating coins.
get used to it.

LobsterMan
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 19, 2010, 09:34:09 PM
 #206

I made a bit of a discovery when testing m0m's latest binaries in -testnet, look at the times when blocks are generated in the miners, and note that they don't all show up in bitcoin's UI:

There seems to be a delay of 1 or more minutes between when they show up in the miner and when bitcoin picks up the transaction, if it picks it up at all.
Is this something to worry about, or just a peculiarity of testnet?

When they show up in the command window, they have zero confirmations. They do not show in the bitcoin UI until they have one confirmation. That delay can be a minute or 10. It is not a bug.

I don't think that is true...some of my blocks have shown up immediately with "0 confirmations" as soon as the miner locates them.




that's just one of those ~10% "lost blocks",
your miner finds one, your client checks the network, network tells your client it's to late.

within the last weeks i'v been able to "find" 50hashes, only 45 of them have been accepted/shown up in the client-gui/generating coins.
get used to it.

That's....not cool  Angry
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
November 19, 2010, 10:02:22 PM
 #207

Quote
That's....not cool
but that's how it is, you can't always win the race.
if your CPU/regular-miner does this, you wouldn't even notice/care, except when checking your debug.log.

m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
November 20, 2010, 10:16:19 AM
 #208

updated to SVN 186

laanwj
Hero Member
*****
Offline Offline

Activity: 826
Merit: 1030


View Profile
November 20, 2010, 03:03:00 PM
 #209

updated to SVN 186
Applies cleanly, thanks Smiley
satoshi
Founder
Sr. Member
*
Offline Offline

Activity: 364
Merit: 8147


View Profile
November 20, 2010, 05:24:20 PM
Last edit: November 20, 2010, 05:39:18 PM by satoshi
 #210

updated to SVN 186
Thanks m0mchil for keeping up on the updates!

GPU miners, please upgrade as soon as possible to shut down the free transaction abuse!  This version has the new priority-based limit on free transaction spam.

Just updated to SVN 181 and fixed getwork patch to wait 60 seconds between rebuilding the block with new transactions. This is actually the behavior of the original client, was forgotten in the patch by mistake.  Fixes heavy CPU usage on every getwork request (this became obvious with recent heavy transaction spam). Please upgrade.
Before SVN 184, compiling transactions into a block used an n^2 algorithm.  The new efficient single-pass algorithm is orders of magnitude quicker.  (O(n) vs O(n^2)/2 algorithm, n=200 maybe 10 to 100 times quicker)
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
November 23, 2010, 06:28:53 PM
 #211

Hi m0mchil, firstly thank you for your work. Is there any way to include getwork patch into official client? I'm using bitcoin on old centos server and compiling is pain here!

satoshi
Founder
Sr. Member
*
Offline Offline

Activity: 364
Merit: 8147


View Profile
November 24, 2010, 05:53:09 PM
 #212

A revised version of getwork is now in the official client, but the miners need to be updated a little to use it.
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
November 24, 2010, 07:15:49 PM
 #213

Thank you satoshi, it is a small fix, I hope it will be ready tomorrow.

m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
November 25, 2010, 10:33:06 AM
 #214

Updated the miner to work with official bitcoin SVN 189.

SmokeTooMuch
Legendary
*
Offline Offline

Activity: 860
Merit: 1076


View Profile
November 25, 2010, 10:14:06 PM
 #215

poclbm_py2exe_20101125 doesnt work for me
(Bitcoin 0.3.17 official @ win7 64)

sharound(..........) errors

Date Registered: 2009-12-10 | I'm using GPG, pm me for my public key. | Bitcoin on Reddit: https://www.reddit.com/r/btc
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
November 25, 2010, 10:55:06 PM
 #216

works fine for me with 0.3.17 on both, winXP&7 64.


neptop
Sr. Member
****
Offline Offline

Activity: 314
Merit: 251


View Profile
November 26, 2010, 12:45:31 AM
 #217

poclbm_py2exe_20101125 doesnt work for me
(Bitcoin 0.3.17 official @ win7 64)

sharound(..........) errors

Same here. Got an ATI card and latest (10.11) drivers. Also Win7 64.
Code:
error: function
          "amd_bitalign" declared implicitly
        sharound(D,E,F,G,H,A,B,C,R(37),0x766A0ABB);
        ^

BitCoin address: 1E25UJEbifEejpYh117APmjYSXdLiJUCAZ
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
November 26, 2010, 06:43:24 AM
 #218

Fixed.

LobsterMan
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
November 26, 2010, 08:12:33 AM
 #219

New version works very nicely, except if I try to add -v to my launch options on an nvidia gtx275



It crashes shortly thereafter

Code:
Faulting application name: poclbm.exe, version: 0.0.0.0, time stamp: 0x4918019b
Faulting module name: nvcuda.dll, version: 8.17.12.6099, time stamp: 0x4cb9d8c5
Exception code: 0xc0000005
Fault offset: 0x000285d5
Faulting process id: 0x480
Faulting application start time: 0x01cb8d411389c8bb
Faulting application path: C:\Users\[user]\Desktop\poclbm_py2exe_20101126\poclbm.exe
Faulting module path: C:\Windows\system32\nvcuda.dll
Report Id: 5a9d2442-f934-11df-8ff5-0026185aa540
brocktice
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


Apparently I inspired this image.


View Profile WWW
November 27, 2010, 03:10:23 AM
 #220

Thanks for the updates, m0mchil, and for integrating getwork into the mainline client, Satoshi!  I've also updated my minerd.py to incorporate m0mchil's latest changes, and I've tested it in the testnet and verified that it finds blocks appropriately with the svn r191.

http://media.witcoin.com/p/1608/8----This-is-nuts

My #bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=brocktice&sign=ANY&type=RECV

Like my post? Leave me a tip: 15Cgixqno9YzoKNEA2DRFyEAfMH5htssRg
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!