Bitcoin Forum
December 29, 2025, 10:19:32 PM *
News: Latest Bitcoin Core release: 30.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 1239737 times)
aistto
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
February 21, 2011, 10:33:13 PM
 #541

@aistto

Switch crossfire off for now. Until I found why versions until and including 20101126 work with crossfire and later ones don't.


And what about version  20101126 and earlier? may be I could use it? where can I download it?
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
February 21, 2011, 11:31:30 PM
 #542

And what about version  20101126 and earlier? may be I could use it? where can I download it?

maybe you could, i wouldn't recommend it though if you don't really have to use it (have a 5970/dualGPU card)
on a 2x 5870 setup you can easily disable crossfire and use the latest miner-version on both cards.

if you want to use 20101126 anyway, here's a mirror.



Fractality
Newbie
*
Offline Offline

Activity: 47
Merit: 0



View Profile WWW
February 21, 2011, 11:38:49 PM
Last edit: February 22, 2011, 01:21:15 AM by Fractality
 #543

Any advice on autostarting the miner when the computer boots up (without me logging in)? I configured bitcoind for autostart using this script from the forum.

I suppose for the miner I somehow need to configure envrionment variables (ATI Stream SDK) to be available upon boot. Plus it is confusing as I will start two instances of poclbm, one for each GPU I have.

I suppose I could still copy the script above in principle. One more problem, though: I think I want to pipe the verbose output of poclbm into a script that will parse and log the information, so I suppose I would start it like this

Quote
./poclbm.py -u somebody --pass=pwd -d 2 -v -w 128 --verbose | myparser.py

But what PID will be returned if I feed this to the start-stop-daemon command? If I use pipes, is the script I pipe into dependent on the originating script, that is, if I kill poclbm, will myparser.py also be killed?

Anything else I need to consider?

Thx!

Update: I just tried to start poclbm via ssh login from another computer. If the miner only shows the login screen, I get

Quote
No protocol specified
No device specified or device not found, use -d to specify one of the following

  •    Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
Once I log in to my account on the miner, I can also start poclbm via ssh.

What could be the reason? I don't suppose it is the environment variables, as they are configured in .bashrc. So I assume they should be known if I log in via ssh, too.
aistto
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
February 22, 2011, 08:32:37 AM
 #544

And what about version  20101126 and earlier? may be I could use it? where can I download it?

maybe you could, i wouldn't recommend it though if you don't really have to use it (have a 5970/dualGPU card)
on a 2x 5870 setup you can easily disable crossfire and use the latest miner-version on both cards.

if you want to use 20101126 anyway, here's a mirror.


when I disable crossfire only first device is available. What should I do to use 2-nd?

crossfire disable
  •      Cypress
  • [1]     AMD Athlon(tm) II X2 220 Processor

    crossfire anable
  •      Cypress
  • [1]     Cypress
    [2]     AMD Athlon(tm) II X2 220 Processor
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 22, 2011, 09:12:29 AM
 #545

aistto, see http://blog.zorinaq.com/?e=11

Initially, you can start the miner on first device, then connect your monitor to second device to make it available. If this seems too difficult, see above link for a way to keep second device always active. This is a windows only problem.

m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 22, 2011, 01:20:41 PM
 #546

New version is up. Changes:

- handling httplib exceptions
- proper handling of wrong user name and password when mining with bitcoind
- support for more than one OpenCL platform
- caching kernel binaries for faster startup
- always flush stdout

krepta3000
Member
**
Offline Offline

Activity: 92
Merit: 10


View Profile
February 23, 2011, 08:38:23 AM
 #547

I have no OpenCL support on my Gateway 450ROG with ATI Mobility Radeon 7500 laptop running Windows XP Pro, 32 bit.  As far as I can tell, I guess I can't run a GPU miner.  I tried downloading one, but it's only got linux programs in the zip file I downloaded, nothing for windows.  So, I don't get it.  I guess I'll just keep using the RPC Miner screensaver I downloaded and got working.
wolfangel91
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
February 23, 2011, 02:59:25 PM
 #548

Hi all, the new version works perfectly, I've got 310-314Mhashes/s on my HD5870, but I've a noob question, if I run the program and stop a few hours later,  it resumed his calculations when he was stopped? Or I've to run it non-stop until having 50BTC?  (excuse my english ^^)
xenon481
Sr. Member
****
Offline Offline

Activity: 406
Merit: 250



View Profile
February 23, 2011, 04:09:53 PM
 #549

Hi all, the new version works perfectly, I've got 310-314Mhashes/s on my HD5870, but I've a noob question, if I run the program and stop a few hours later,  it resumed his calculations when he was stopped? Or I've to run it non-stop until having 50BTC?  (excuse my english ^^)


It's like playing the lottery every few seconds. Any one play can win the prize and subsequent plays aren't dependent upon previous plays. So, don't worry about turning it off whenever you don't want it on; everything will still average out.

Tips Appreciated: 171TQ2wJg7bxj2q68VNibU75YZB22b7ZDr
CD-RW
Jr. Member
*
Offline Offline

Activity: 56
Merit: 22


View Profile
February 23, 2011, 06:54:49 PM
Last edit: February 23, 2011, 09:17:24 PM by Jeroenz0r
 #550

Used CTRL+c, then I got this:

Code:
23/02/2011 19:53:07, Unexpected error:
Traceback (most recent call last):
File "poclbm.py", line 52, in <module>

  File "BitcoinMiner.pyc", line 229, in mine
  File "BitcoinMiner.pyc", line 147, in sayLine
  File "BitcoinMiner.pyc", line 141, in say
KeyboardInterrupt
Grinder
Legendary
*
Offline Offline

Activity: 1284
Merit: 1001


View Profile
February 23, 2011, 08:36:15 PM
 #551

ctrl-c is the standard shortcut for stopping a command line program...
CD-RW
Jr. Member
*
Offline Offline

Activity: 56
Merit: 22


View Profile
February 23, 2011, 09:15:44 PM
 #552

ctrl-c is the standard shortcut for stopping a command line program...
Thanks, caption obvious.  Roll Eyes

But should just say 'bye', but that one time it got error'd
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
February 24, 2011, 06:00:44 AM
 #553

Works great, m0mchil. Doing 48M on my GTX 460 with -v -f 90 (so I can use my desktop; I could get much more but I don't want to OC and I want to use my computer). It even continues doing 41M while WoW is running with no really discernible loss in frame rate.

My only question is, What's your address? I want to send you some bitcoins! Even though I'm sure you don't need them Cheesy

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
f3ndot
Newbie
*
Offline Offline

Activity: 7
Merit: 0



View Profile WWW
February 24, 2011, 10:28:22 AM
 #554

Right. Anyone else experiencing this problem?

Sys Specs:
Python 2.6.1
PyOpenCL 0.92 built from source
ATI Radeon HD 5750
Mac OS X 10.6.6 (Snow Leopard)

Command Line:
python poclbm.py -v -u xxx -p xxx -d 0

Bug / Error (repeats over and over until I ^C):
Code:
24/02/2011 05:14:40, Unexpected error:                      
Traceback (most recent call last):
  File "/Users/x/bt/m0mchil-poclbm-ff291bf/m0mchil-poclbm-ff291bf/BitcoinMiner.py", line 200, in mine
    work = self.getwork()
  File "/Users/x/bt/m0mchil-poclbm-ff291bf/m0mchil-poclbm-ff291bf/BitcoinMiner.py", line 189, in getwork
    self.connection.close()
AttributeError: 'NoneType' object has no attribute 'close'

Then it spits this out after ^C:
Code:
Traceback (most recent call last):
  File "poclbm.py", line 52, in <module>
    myMiner.mine()
  File "/Users/x/bt/m0mchil-poclbm-ff291bf/m0mchil-poclbm-ff291bf/BitcoinMiner.py", line 230, in mine
    traceback.print_exc()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/traceback.py", line 227, in print_exc
    print_exception(etype, value, tb, limit, file)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/traceback.py", line 125, in print_exception
    print_tb(tb, limit, file)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/traceback.py", line 67, in print_tb
    '  File "%s", line %d, in %s' % (filename,lineno,name))
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/traceback.py", line 13, in _print
    file.write(str+terminator)
KeyboardInterrupt
^C

Then hangs
rogalik
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 24, 2011, 10:38:03 AM
 #555

have you tried running it from the .exe file?
f3ndot
Newbie
*
Offline Offline

Activity: 7
Merit: 0



View Profile WWW
February 24, 2011, 10:41:11 AM
 #556

have you tried running it from the .exe file?

Buddy... I'm using Mac which is based on the UNIX backend. It's strictly python or shell for me, no .exe's.
FreeMoney
Legendary
*
Offline Offline

Activity: 1246
Merit: 1028


Strength in numbers


View Profile WWW
February 24, 2011, 06:37:07 PM
 #557



Another thing that bothers us is the attempt to persuade our users to jump ship - one thing that Compute4Cash has done very differently from other alternatives is that we have engaged in paid-for advertising to grow our user base.  We have paid a substantial amount of money to share this opportunity with other people, knowing also that at some point in the future this would equate to advertising for Bitcoin and getting more people involved.  We therefore have invested in each and every user we have, so in a sense when you tell people to leave Compute4Cash you are running off with a portion of our investment.  If it weren't for our advertising efforts very few, if any, of our users would be aware of Bitcoin or making money in this way right now - that alone justifies not only a premium over the <10% profit margin of other pools, but it also justifies our expectation of being treated with decency.

Puhlease. Gimme a break. You paid for advertising so now you own your customers or something? Sweet Jesus Christ, is this a general rule in your mind? Anyone paying for advertising can't have their customers lured away by a better deal?

Play Bitcoin Poker at sealswithclubs.eu. We're active and open to everyone.
FooDSt4mP
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
February 24, 2011, 06:44:29 PM
 #558



Another thing that bothers us is the attempt to persuade our users to jump ship - one thing that Compute4Cash has done very differently from other alternatives is that we have engaged in paid-for advertising to grow our user base.  We have paid a substantial amount of money to share this opportunity with other people, knowing also that at some point in the future this would equate to advertising for Bitcoin and getting more people involved.  We therefore have invested in each and every user we have, so in a sense when you tell people to leave Compute4Cash you are running off with a portion of our investment.  If it weren't for our advertising efforts very few, if any, of our users would be aware of Bitcoin or making money in this way right now - that alone justifies not only a premium over the <10% profit margin of other pools, but it also justifies our expectation of being treated with decency.

Puhlease. Gimme a break. You paid for advertising so now you own your customers or something? Sweet Jesus Christ, is this a general rule in your mind? Anyone paying for advertising can't have their customers lured away by a better deal?

While I can see both points, Compute4Cash did only join this thread in order to correct some inaccurate accusations.  Spending money doesn't buy you customers, but it doesn't invite slander either.  They could be a little more open on their site about being driven by bitcoin, but anyone who knows how to use google can find that out.  Overall, they are contributing not only to mining, but I'm sure the press surrounding the "discovery" that is was driven by bitcoin hasn't hurt our community either.  Regardless, this thread is completely unrelated to Compute4Cash, so can we please table this discussion.  If you must reply, please do so in a different thread.

As we slide down the banister of life, this is just another splinter in our ass.
rogalik
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
February 24, 2011, 11:34:12 PM
 #559

have you tried running it from the .exe file?

Buddy... I'm using Mac which is based on the UNIX backend. It's strictly python or shell for me, no .exe's.
yeah, pardon me... suppose I wasn't fully awake while answering Cheesy. But still, isn't there a program equivalent to py2exe on Mac?
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
February 25, 2011, 12:25:49 AM
 #560

But still, isn't there a program equivalent to py2exe on Mac?

No, why would there be? py2exe is a nasty kludge for limitations inherent in Windows, and is completely unnecessary for a Unix system.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
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!