Bitcoin Forum
April 27, 2024, 07:37:32 AM *
News: Latest Bitcoin Core release: 27.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 1238799 times)
aistto
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


View Profile
February 21, 2011, 08:21:32 PM
 #541

MB MSI Socket-AM3 870A-G54 (pci-e x16 in dual cross work as 8/8 (but someone says that as 16/4))
catalyst 11.1
stream 2.2
1. hd5870 gigabyte
2. hd5870 his
I used 2 crossfire bridge
not overclocked

In my crossfire system doesn't work second card. it's look like below
Quote
F:\MySpace\btc\poclbm_py2exe_20110204>poclbm.exe
No device specified or device not found, use -d to specify one of the following

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

    F:\MySpace\btc\poclbm_py2exe_20110204>poclbm.exe -u usr --pass=pswrd -o 178.79.147.99 -p 8332 -d 0 -v -w 128 -f 30
    21/02/2011 23:07, b2ca3069, accepted
    21/02/2011 23:07, 818e219a, accepted
    312424 khash/s
    Compilation terminated.
    (work as usual)

    F:\MySpace\btc\poclbm_py2exe_20110204>poclbm.exe -u usr --pass=pswrd-o 178.79.147.99 -p 8332 -d 1 -v -w 128 -f 30
    21/02/2011 23:08, 5f141da2, accepted (Here always accepting first block)
    verification failed, check hardware!
    verification failed, check hardware!
    verification failed, check hardware!
Why? Huh

sorry for my english:)
1714203452
Hero Member
*
Offline Offline

Posts: 1714203452

View Profile Personal Message (Offline)

Ignore
1714203452
Reply with quote  #2

1714203452
Report to moderator
1714203452
Hero Member
*
Offline Offline

Posts: 1714203452

View Profile Personal Message (Offline)

Ignore
1714203452
Reply with quote  #2

1714203452
Report to moderator
1714203452
Hero Member
*
Offline Offline

Posts: 1714203452

View Profile Personal Message (Offline)

Ignore
1714203452
Reply with quote  #2

1714203452
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
CD-RW
Jr. Member
*
Offline Offline

Activity: 56
Merit: 22


View Profile
February 21, 2011, 08:48:14 PM
Last edit: February 21, 2011, 09:07:02 PM by Jeroenz0r
 #542

Had some errors too.

poclbm should had used a catch elseif for this error, to make more clear that something went wrong.
Or at least make it less scary, just make it print 'Could not fetch new work' Tongue
~


Code:
File "poclbm.py", line 25  print 'No device specified or device not found, use -d to specify one of the following\n'
            ^
SyntaxError: invalid syntax

Using python 3.2 on windows  Undecided
Quantumboredom
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
February 21, 2011, 09:01:59 PM
 #543

I'm running at ca. 42 Mhps on Mobility Radeon HD 5650, OpenCL SDK 2.3. Best options so far: -d 0 --user=XXX --pass=XXX -w 128 -v -f 5 (I'm not sure what does -f parameter do really, I'm a dummy).
Do you think that individual mining with laptop GPU is worth it? Note: I'm not paying for the electricity.
From what I've read, "-f x" is "framerate", i.e. the program will try to balance the kernel so that the kernel is run x times per second. This means that a lower value makes the kernel run for longer (-f 5 means the kernel takes about 0.2 seconds). If your OS feels sluggish (windows lag when you drag them on the desktop, videos seem choppy etc.) you can try to set -f higher. I use -f 120. At -f 60 I get slight lag when playing back HD videos, and the performance difference is only about 6% so I would much rather have a fully working machine. At -f 120 I notice no slowdown.

At least that is how I've understood it, I'm sure someone will correct me if I am wrong.

Edit: And if you're not paying anything for the electricity and it does not bother you to have it running in the background (presumably when the laptop is plugged in!) then it's free money, so why not? If you think bitcoin is interesting I see no reason why you wouldn't mine Smiley
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 21, 2011, 09:33:51 PM
 #544

@aistto

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

Using python 3.2 on windows  Undecided

No, no, no... use python 2.6

poclbm is not compatible with python 3. Actually python 2 and python 3 are quite different and not compatible with each other.

aistto
Legendary
*
Offline Offline

Activity: 1001
Merit: 1005


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

@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
 #546

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
 #547

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
 #548

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
 #549

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
 #550

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
 #551

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
 #552

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
 #553

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
 #554

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
 #555

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
 #556

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
 #557

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
 #558

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
 #559

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
 #560

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.
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!