Bitcoin Forum
December 29, 2025, 10:24:26 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)
berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 10, 2010, 04:36:37 PM
 #241

I have pyopencl installed from packaged deb on launchpad, and when I try to run
Code:
python poclbm.py
I get:
Code:
  File "poclbm.py", line 6
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ^
SyntaxError: invalid syntax

thanks
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
December 10, 2010, 04:42:53 PM
 #242

I have pyopencl installed from packaged deb on launchpad, and when I try to run
Code:
python poclbm.py
I get:
Code:
  File "poclbm.py", line 6
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    ^
SyntaxError: invalid syntax

thanks

lol

berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 10, 2010, 05:26:55 PM
 #243

I am a linux noob and don't know anything about python.
And the how to above is for ATI, I am on Nvidia GT9800
berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 10, 2010, 05:57:55 PM
 #244

Now that the noobish mistake is solved I get:

Code:
bruno@bruno-desktop:~/bitcoin-0.3.17$ python ./poclbm.py
  File "./poclbm.py", line 27
    print 'No device specified or device not found, use -d to specify one of the following\n'
        ^
IndentationError: expected an indented block
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
December 10, 2010, 07:15:26 PM
 #245

Apparently you copy-pasted the file, loosing some important details. Use raw view instead (https://github.com/m0mchil/poclbm/raw/master/poclbm.py). Perhaps for other files too.

davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
December 10, 2010, 08:47:46 PM
 #246

Now that the noobish mistake is solved I get:

Code:
bruno@bruno-desktop:~/bitcoin-0.3.17$ python ./poclbm.py
  File "./poclbm.py", line 27
    print 'No device specified or device not found, use -d to specify one of the following\n'
        ^
IndentationError: expected an indented block

No offense intended Smiley, I asked questions that probably seemed stupid to the people that answered me.
Now I'm happily crunching at 600mh/s thanks to the people that helped me out.

Maybe you should simply clone the git repo so you can transparently get upgrades and forget about this kind of issues altogether
You need to apt-get install git-core and then
git clone <url>
and then you can just git pull from time to time to upgrade.

berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 12, 2010, 07:55:46 AM
 #247

It runs for 4-5 seconds, then asks me for my user-password again.

Code:
~/bitcoinminer$ python ./poclbm.py -d 0
Enter username for jsonrpc at 127.0.0.1:8332: berserk9779
Enter password for berserk9779 in jsonrpc at 127.0.0.1:8332:
20842 khash/sEnter username for jsonrpc at 127.0.0.1:8332: berserk9779
Enter password for berserk9779 in jsonrpc at 127.0.0.1:8332:
20847 khash/sEnter username for jsonrpc at 127.0.0.1:8332:

By the way, before poclbm I need to run bitcoind. Is there an option to have it running with the gui open?
ribuck
Donator
Hero Member
*
Offline Offline

Activity: 826
Merit: 1065


View Profile
December 12, 2010, 09:29:13 AM
 #248

It runs for 4-5 seconds, then asks me for my user-password again.

If you supply the user-password on the command line, you won't get asked for it again:

Code:
./poclbm.py --user=whatever --pass=whatever

That's not ideal from a security point of view, perhaps someone will suggest a better way.

By the way, before poclbm I need to run bitcoind. Is there an option to have it running with the gui open?

You can use bitcoin instead of bitcoind, provided you are using a recent version of Bitcoin (0.3.15 or later) and the latest version of poclbm. This gives you the GUI, plus OpenCL mining.
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1008


1davout


View Profile WWW
December 12, 2010, 09:46:38 AM
 #249

It runs for 4-5 seconds, then asks me for my user-password again.

If you supply the user-password on the command line, you won't get asked for it again:

Code:
./poclbm.py --user=whatever --pass=whatever

That's not ideal from a security point of view, perhaps someone will suggest a better way.

By the way, before poclbm I need to run bitcoind. Is there an option to have it running with the gui open?

You can use bitcoin instead of bitcoind, provided you are using a recent version of Bitcoin (0.3.15 or later) and the latest version of poclbm. This gives you the GUI, plus OpenCL mining.

Or you can just edit poclbm source for a quick slightly securer dirty hack

berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 12, 2010, 06:48:03 PM
 #250

It's finally up and running. 22 Mhash on average on a Nvidia 9800GT

But it only works with bitcoind.

And I had to start it like that:

Code:
 ./bitcoind -rpcuser=berserk9779 -rpcpassword=

and

Code:
./poclbm.py -d 0 --user=berserk9779 --pass=
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
December 13, 2010, 12:14:33 AM
 #251

Has anyone tried connecting to the bitcoin-server from a different machine using m0mchil's miner?

I am using Windows binary poclbm.exe. I have my bitcoin -server running on a local machine and have no problems connecting from poclbm.exe and generating using my GPU on the same local machine.

When I try to connect to the same bitcoin -server from a different PC using:

poclbm --user=user --pass=password --host=remoteip --port=8332

I keep on getting the message "Unable to communicate with bitcoin RPC".

The firewall on the PC running bitcoin.exe is disabled.

Is what I want to achieve at all possible?
berserk9779
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
December 13, 2010, 12:36:44 AM
 #252

I think you should substitute remoteip for the actual private IP of the local machine where the server is running (usually 192.168.x.x)
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
December 13, 2010, 05:10:52 AM
 #253

From bitcoin docs

Quote
# By default, only RPC connections from localhost are allowed.  Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
#rpcallowip=10.1.1.34
#rpcallowip=192.168.1.*

Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
December 13, 2010, 08:15:29 AM
 #254

From bitcoin docs

Quote
# By default, only RPC connections from localhost are allowed.  Specify
# as many rpcallowip= settings as you like to allow connections from
# other hosts (and you may use * as a wildcard character):
#rpcallowip=10.1.1.34
#rpcallowip=192.168.1.*

Thanks m0mchil. RTFM. :/
Mahkul
Sr. Member
****
Offline Offline

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
December 13, 2010, 08:18:29 PM
 #255

It's me again...

I managed to connect to my bitcoin -server from two different remote machines.

With the third one I am getting the following error:

Code:
pyopencl.RuntimeError: CommandQueue failed: out of host memory

Does this mean my server has no more memory to accept more miners?
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
December 14, 2010, 10:54:22 AM
 #256

Added update of block time every second and support for targets < 32 bits. Output now shows block hash and acceptance status.

adv
Full Member
***
Offline Offline

Activity: 168
Merit: 100


View Profile
December 14, 2010, 04:01:13 PM
 #257

May be add "silent" or "demonize" switch?

U may thank me here: 14Js1ng1SvYBPgUJnjNAEPYH4d6SHF79UF
SmokeTooMuch
Legendary
*
Offline Offline

Activity: 860
Merit: 1076


View Profile
December 14, 2010, 06:00:40 PM
 #258

Nice, with Bitcoin 0.3.19, poclbm 20101214 and catalyst 10.12 I get around 82000 khash/s now instead of 78000 with the old versions.

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

Activity: 434
Merit: 251


Every saint has a past. Every sinner has a future.


View Profile
December 14, 2010, 07:00:51 PM
 #259

Regarding my previous post about the "host out of memory" error - I figured that on some systems if you install ATI Catalyst into C:\Program Files\Ati Technologies there is some sort of an error and it is not possible to open the Catalyst Control Centre (this was causing my issue).

The solution to this is to completely uninstall all ATI software and put it into a different directory - I put it into C:\Program Files\Ati and the problem was solved.

Apparently AMD are aware of this issue.
LobsterMan
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
December 14, 2010, 09:30:16 PM
 #260

The new version seems like it may be running at 1-2mhash more than the previous version  Grin
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!