Pages:
Author

Topic: python OpenCL bitcoin miner - page 32. (Read 1239035 times)

sr. member
Activity: 406
Merit: 250
February 17, 2011, 02:38:19 PM
Firstly how do I "browse" using command prompt, typing a directory does nothing at all.

http://www.lsi.upc.edu/~robert/teaching/foninf/doshelp.html
full member
Activity: 322
Merit: 100
The All-in-One Cryptocurrency Exchange
February 17, 2011, 02:33:47 PM
Hello folks was hoping for a little help setting up.

I tried to follow the instructions how ever I found them to be about as useful as being punched in the face.


Firstly how do I "browse" using command prompt, typing a directory does nothing at all.



I'm curious, could this of not been done with an automated .exe?

sr. member
Activity: 258
Merit: 250
February 17, 2011, 02:27:14 AM
I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.

The next time I get an email you're getting some coins!

Under the following code you can also add a bit of filtering to not send email (or whatever you have it doing) by changing it from:
Code:
def blockFound(self, hash, accepted):

To:
Code:
def blockFound(self, hash, accepted, pct):
if accepted:
self.sendmail()

That way it's only valid, accepted shares/blocks that trigger an email.
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 16, 2011, 06:50:31 PM
I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.

The next time I get an email you're getting some coins!
full member
Activity: 238
Merit: 100
February 16, 2011, 06:34:48 PM
I know, the script is not a problem - but where in the code do I add it (and how Smiley)?

At the top of BitcoinMiner.py  add
Code:
import.os
Near
Code:
def blockFound(self, hash, accepted):
add
Code:
def sendmail(self):                                                                                                                                                     
                os.system("./your_mailing_script")
In
Code:
def blockFound(self, hash, accepted):
add
Code:
                self.sendmail()

The script will run if the block is either accepted or invalid/stale but the latter is also important to know. You can add hash and or date to the arguments. Remember than in Python indentation matters.
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 16, 2011, 06:12:04 PM
Would it be hard to get the miner to send an email message everytime the block was accepted?

The easiest would be to specify a program to be executed, when a block/share is accepted.

Then you can write a script / batch file to send an email, play a sound, send an SMS, whatever.

I know, the script is not a problem - but where in the code do I add it (and how Smiley)?
legendary
Activity: 1596
Merit: 1100
February 16, 2011, 06:10:16 PM
Would it be hard to get the miner to send an email message everytime the block was accepted?

The easiest would be to specify a program to be executed, when a block/share is accepted.

Then you can write a script / batch file to send an email, play a sound, send an SMS, whatever.
sr. member
Activity: 434
Merit: 251
Every saint has a past. Every sinner has a future.
February 16, 2011, 06:06:47 PM
I think this was mentioned before, but couldn't find it on the forum:

Would it be hard to get the miner to send an email message everytime the block was accepted?
newbie
Activity: 5
Merit: 0
February 16, 2011, 11:52:22 AM
May you introduce one feature?

When in cmd specified:
-r 0 - miner never calculated Khash/s rate and never flush it to console.

I think current option: -r 99999999999999999 - rare display info at screen, but rate in any cases calculated.

Thanks.
newbie
Activity: 5
Merit: 0
February 16, 2011, 10:22:38 AM
Ok, thanks.
full member
Activity: 171
Merit: 127
February 16, 2011, 08:56:51 AM
The 'Unexpected error:' doesn't affect mining at all. I just missed to handle HTTP exceptions. Will add it in next version.

@[Tycho]: For example trying to figure out why 20101126 works but later ones don't. I just don't have 5970 to test on Windows right now.
N12
donator
Activity: 1610
Merit: 1010
February 16, 2011, 08:40:58 AM
Awesome. I get up to 350 Mhash/s with my 5870 (overclocked to 915/1275MHz) now with the recommended settings.

I think my computer’s a bit less laggy after the update, but that could just be a placebo.
newbie
Activity: 5
Merit: 0
February 16, 2011, 07:54:57 AM
In last 8 hours problem described above ("Unexpected error:") not appear.
I stay used "poclbm_py2exe_20110215".
hero member
Activity: 742
Merit: 500
February 16, 2011, 06:36:17 AM
Do you know what's changed since poclbm_py2exe_20101126 so the new version doesn't works correctly anymore on slave core of 5970 in Windows ?
Current version works fine on primary core, but after finding first "accepted" share on slave core it starts flooding console with that "check hardware" error. Older, poclbm_py2exe_20101126 version works on both cores...
Yes, I'm aware of this problem. Unfortunately I'm still unable to resolve it. Any help from someone with 5970 on windows will be appreciated. The problem does not exist on Linux, but I can't figure out why it appeared on Windows only after the 20101126 release.[/quote]
What kind of help do you need ?
legendary
Activity: 1284
Merit: 1001
February 16, 2011, 05:39:33 AM
Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.
C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
You don't really need a batch file to run it from Windows. Just make a shortcut on the desktop and using your example add
D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe --user=youruser --pass=yourpw --device=0
to target and
D:\bitcoin\poclbm_py2exe_20110215\
to Start in.

Then you can just double click it to start.
member
Activity: 67
Merit: 10
Stop trying to steal my account, thanks.
February 16, 2011, 03:50:47 AM
Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?

Before issuing the poclbm_***.exe, switch to the right directory.
Code:
cd \
d:
cd bitcoin
cd poclbm_*****

Issue the command from here.
full member
Activity: 171
Merit: 100
February 16, 2011, 01:20:32 AM
Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?
use it in bat file:
cd "D:\bitcoin\poclbm_py2exe_20110215"
d:
poclbm.exe --user=youruser --pass=yourpw --device=0
newbie
Activity: 42
Merit: 0
February 15, 2011, 11:50:48 PM
Ok I've updated drivers, checked for latest versions, etc. but I'm still getting this error when I try to run the batch file.

C:\Windows\system32>"D:\bitcoin\poclbm_py2exe_20110215\poclbm.exe" --user=youruser --pass=yourpw --device=0
Traceback (most recent call last):
  File "poclbm.py", line 41, in
  File "BitcoinMiner.pyc", line 138, in __init__
IOError: [Errno 2] No such file or directory: 'BitcoinMiner.cl'

the file is there i can see it but the script doesn't. any ideas on how to get this up and running?
newbie
Activity: 1
Merit: 0
February 15, 2011, 06:26:20 PM
Just tested running the latest version (poclbm_py2exe_20110215) on a laptop with Windows 7 and NVIDIA Quadro NVS 135.  Installed the latest driver, and poclbm runs - however it's churning at mere 1khash (I get about 2khash with rpcminer-cpu with 2 threads).  Not sure if it's an issue with Quadro card or the driver - but I thought I'd report here and let everyone know my findings.
member
Activity: 67
Merit: 10
Stop trying to steal my account, thanks.
February 15, 2011, 05:56:52 PM
+1

Code:
15/02/2011 23:50:08, *******, accepted
15/02/2011 23:50:37, *******, accepted
15/02/2011 23:51:50, *******, accepted
15/02/2011 23:52:00, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
15/02/2011 23:53:14, Unexpected error:
Traceback (most recent call last):
  File "BitcoinMiner.pyc", line 210, in mine
  File "BitcoinMiner.pyc", line 187, in getwork
  File "httplib.pyc", line 974, in getresponse
  File "httplib.pyc", line 391, in begin
  File "httplib.pyc", line 355, in _read_status
BadStatusLine
15/02/2011 23:53:51, 42f6906e, accepted
23949 khash/s

Reverted back to 20110204, everything fine.
Pages:
Jump to: