Bitcoin Forum
January 04, 2026, 03:06:54 AM *
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 1239745 times)
LobsterMan
Member
**
Offline Offline

Activity: 73
Merit: 10


View Profile
February 05, 2011, 07:21:22 AM
 #381

My hash rate is actually somewhat higher with the new version, I went from about 50mhash/s per gtx275 to around 58mhash/s, but my desktop is somewhat less responsive with the miners running now where it was not before
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 05, 2011, 08:29:10 AM
 #382

@LobsterMan, the default '-f' is 30 now, use '-f 60' (previous default) or more if it hogs your desktop

Cablesaurus
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250



View Profile WWW
February 05, 2011, 08:42:56 AM
 #383

30Mhash/s slower after the update.

HD6950 went from 226M to 196M.

No obvious change for me ( 5850 ), still getting between 249M - 251M.

No change for me either, getting the exact same, no slowdown.

PCIe Extender Cables; Dummy Plugs, Fans; PSU Cables; Cases & More
Visit www.Cablesaurus.com and our forum thread at http://bitcointalk.org/index.php?topic=6128.0
FairUser
Sr. Member
****
Offline Offline

Activity: 1344
Merit: 264


bit.ly/3QXp3oh | Ultimate Launchpad on TON


View Profile
February 06, 2011, 12:16:19 AM
 #384

I'm still seeing several invalid stale hashes being submitted.

05/02/2011 16:12, 3725321b, accepted
05/02/2011 16:13, b794eb73, invalid or stale
05/02/2011 16:13, 898ceca7, invalid or stale
05/02/2011 16:13, bde1a5f3, invalid or stale
05/02/2011 16:14, 0a07cf1a, accepted

Any idea as to why?

TONUP██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
▄▄███████▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████▄░▄▄▀█████▀▄████▄
▄███████▄▀█▄▀██▀▄███████▄
█████████▄▀█▄▀▄██████████
██████████▄▀█▄▀██████████
██████████▀▄▀█▄▀█████████
▀███████▀▄██▄▀█▄▀███████▀
▀████▀▄█████▄▀▀░▀█████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀███████▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████████████████████▄
▄████▀▀███▀▀███▀▀██▀███▄
████▀███████▀█▀███▀█████
██████████████████████
████▄███████▄█▄███▄█████
▀████▄▄███▄▄███▄▄██▄███▀
▀█████████████████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
████████
██
██
██
██
██
██
██
██
██
██
██
████████
████████████████████████████████████████████████████████████████████████████████
.
JOIN NOW
.
████████████████████████████████████████████████████████████████████████████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
February 06, 2011, 01:05:13 AM
 #385

I'm still seeing several invalid stale hashes being submitted.
Any idea as to why?

Maybe because they are really stale? http://blockexplorer.com/block/00000000000018cf119be227dcf0d7403b20dc9b8fa0c3d6bc9022c65baf9a39

FairUser
Sr. Member
****
Offline Offline

Activity: 1344
Merit: 264


bit.ly/3QXp3oh | Ultimate Launchpad on TON


View Profile
February 06, 2011, 06:02:48 AM
 #386

Literally just got these

05/02/2011 22:00, 2a07e960, accepted
05/02/2011 22:00, fe7439af, accepted
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale

This is on a stock miner....no mods of any kind.
6 getworks were requested, and the answer found were repeats.

TONUP██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
▄▄███████▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████▄░▄▄▀█████▀▄████▄
▄███████▄▀█▄▀██▀▄███████▄
█████████▄▀█▄▀▄██████████
██████████▄▀█▄▀██████████
██████████▀▄▀█▄▀█████████
▀███████▀▄██▄▀█▄▀███████▀
▀████▀▄█████▄▀▀░▀█████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀███████▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████████████████████▄
▄████▀▀███▀▀███▀▀██▀███▄
████▀███████▀█▀███▀█████
██████████████████████
████▄███████▄█▄███▄█████
▀████▄▄███▄▄███▄▄██▄███▀
▀█████████████████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
████████
██
██
██
██
██
██
██
██
██
██
██
████████
████████████████████████████████████████████████████████████████████████████████
.
JOIN NOW
.
████████████████████████████████████████████████████████████████████████████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
FairUser
Sr. Member
****
Offline Offline

Activity: 1344
Merit: 264


bit.ly/3QXp3oh | Ultimate Launchpad on TON


View Profile
February 06, 2011, 06:05:40 AM
 #387

I'm still seeing several invalid stale hashes being submitted.
Any idea as to why?

Maybe because they are really stale? http://blockexplorer.com/block/00000000000018cf119be227dcf0d7403b20dc9b8fa0c3d6bc9022c65baf9a39

So getworks are now going stale even faster....thanks for clarifying.

TONUP██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
▄▄███████▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████▄░▄▄▀█████▀▄████▄
▄███████▄▀█▄▀██▀▄███████▄
█████████▄▀█▄▀▄██████████
██████████▄▀█▄▀██████████
██████████▀▄▀█▄▀█████████
▀███████▀▄██▄▀█▄▀███████▀
▀████▀▄█████▄▀▀░▀█████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀███████▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄██████████████▀▀█████▄
▄██████████▀▀█████▐████▄
██████▀▀████▄▄▀▀█████████
████▄▄███▄██▀█████▐██████
█████████▀██████████████
▀███████▌▐██████▐██████▀
▀███████▄▄███▄████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
▄▄▄███████▄▄▄
▄▄███████████████▄▄
▄███████████████████▄
▄█████████████████████▄
▄████▀▀███▀▀███▀▀██▀███▄
████▀███████▀█▀███▀█████
██████████████████████
████▄███████▄█▄███▄█████
▀████▄▄███▄▄███▄▄██▄███▀
▀█████████████████████▀
▀███████████████████▀
▀▀███████████████▀▀
▀▀▀███████▀▀▀
████████
██
██
██
██
██
██
██
██
██
██
██
████████
████████████████████████████████████████████████████████████████████████████████
.
JOIN NOW
.
████████████████████████████████████████████████████████████████████████████████
████████
██
██
██
██
██
██
██
██
██
██
██
████████
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
February 06, 2011, 01:59:07 PM
 #388

Literally just got these

05/02/2011 22:00, 2a07e960, accepted
05/02/2011 22:00, fe7439af, accepted
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale
05/02/2011 22:01, 2a07e960, invalid or stale
05/02/2011 22:01, fe7439af, invalid or stale

This is on a stock miner....no mods of any kind.
6 getworks were requested, and the answer found were repeats.

There are two ways to get something like this - first one is using ask rate of more than ~12 seconds with an overclocked 5870 (stock max -a is 10 seconds). Other one is network problems triggering resubmission of results - this mechanism is removed since last version. Since you said it happened with stock miner I vote for the latter. 

Quantumboredom
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
February 06, 2011, 09:50:27 PM
 #389

Hi. I'm trying to get this to work, and want to check it with the "testnet" I've heard about.

What I've done:
Followed the guide. After starting bitcon.exe -server and the .bat-file as described I get a cmd window with the hash speed showing.
I then copied the bitcoin.conf to %appdata%/bitcoin/testnet, ran bitcoin.exe -server -testnet and then launced the .bat-file as before. Again the hash speed is showing in a cmd-window, but after about 30 minutes with ~280000 khash/s I've still not gotten any messages about completed blocks. My impression was that that should happen very quicly on the testnet. What am I doing wrong?

Thanks for any help.
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
February 07, 2011, 05:17:36 AM
 #390

The last time I looked, the testnet difficulty factor was around 350.  Using that number as a guide, 280 Mhash/s should yield a block on average every 1.5 hours.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
February 07, 2011, 09:23:50 AM
 #391

Aye a couple showed up when I let it run for a while longer, thanks Smiley

Another question, it's ok to close poclbm.exe and bitcoin, correct? It isn't necessary to keep them running non-stop untill a block is solved?
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
February 07, 2011, 03:17:47 PM
 #392

Both m0mchil's python program and bitcoind must be running continuously for mining to take place.  I have no idea how to run or monitor detached processes on Windows, but my guess is that you have to keep the command windows open.  Maybe someone with Windows experience will chime in here.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
Quantumboredom
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
February 07, 2011, 03:23:48 PM
 #393

I think you misunderstood my question. I do keep both bitcoin.exe and poclbm.exe running at the same time, what I'm wondering is what happens if I restart the programs, or reboot my computer. Will I start again from scratch or does the mining continue where it left off?
Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
February 07, 2011, 03:32:02 PM
 #394

Finding a correct hash is a completely random event, and the probability depends only on the hash rate and the total amount of time dedicated to mining.  You lose a little time having to reconnect to the network and retrieve the latest transactions, but it's pretty insignificant.  A 280 Mhash/s rig turned on for 12 hours a day should perform the same as a 140 Mhash/s rig running 24 hours a day.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
BitLex
Hero Member
*****
Offline Offline

Activity: 532
Merit: 505


View Profile
February 07, 2011, 03:32:57 PM
 #395

Will I start again from scratch or does the mining continue where it left off?
Yes and yes.  Grin
it's not that you're making any "progress" that could be lost,
you start from scratch with any single hash, like drawing lottery-tickets a few thousand/million times a second,
you either get a winning-ticket, or a loser. won't help you to keep the loser in your pocket.

Quantumboredom
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
February 07, 2011, 03:37:28 PM
 #396

Ok I understand, thanks for the help Cryptoman and BitLex Smiley
ribuck
Donator
Hero Member
*
Offline Offline

Activity: 826
Merit: 1065


View Profile
February 07, 2011, 04:55:39 PM
Last edit: February 22, 2011, 06:00:47 PM by ribuck
 #397

OpenCL HOWTO FOR FEDORA 14 LINUX

Here are some notes which may be useful to anyone who wishes to mine for bitcoins on Fedora 14 Linux. It's simpler than the instructions I posted for Fedora 12, because Bitcoin now supports the 'getwork' call and therefore doesn't need to be recompiled.

===

Check your software versions, and upgrade as necessary. The gcc compiler needs to be 4.x (for PyOpenCL), and Python needs to be 2.4 or newer (again, for PyOpenCL), but not Python 3.x.

Code:
$ gcc --version
gcc (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)

$ python --version
Python 2.7

You need to have either the full kernel source, or the kernel headers (because the ATI GPU driver is installed by compiling a kernel module). You also need the Python headers.

Code:
$ rpm -q kernel-devel
kernel-devel-2.6.35.10-74.fc14.x86_64

$ rpm -q python-devel
python-devel-2.7-8.fc14.1.x86_64

===

Update your display driver.

I followed the instructions from here:
http://gofedora.com/how-to-install-ati-catalyst-fglrx-98-drivers-fedora-11/
except that I used the version 11.1 11.2 of the ATI Catalyst Display Driver for Linux x86 from here:
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx?type=2.4.1&product=2.4.1.3.42&lang=English

Supposedly some of the installation steps are no longer needed with version 11.1, but I wasn't completely certain which ones, so I did them all anyway.

===

Get the ATI Stream SDK v2.1 (NOT any later version, according to brocktice), from here: http://developer.amd.com/gpu/ATIStreamSDK/pages/ATIStreamSDK-Archive.aspx

You need two downloads from that page: the Linux SDK (32-bit or 64-bit according to your version of Linux), plus icd-registration.tgz

Untar the SDK anywhere convenient. Add these lines to your .bash_profile file (in your login directory):

Code:
export ATISTREAMSDKSAMPLESROOT=...<some path>.../ati-stream-sdk-v2.1-lnx64
export ATISTREAMSDKROOT=...<some path>.../ati-stream-sdk-v2.1-lnx64
export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH

These pathnames will vary slightly if you have a 32-bit Fedora installation.

Move icd-registration.tgz into your root directory and (as root) untar it from there. It puts some essential config files into /etc.

If you like, follow the documentation that is included in the SDK to compile the examples. Execute ati-stream-sdk-v2.1-lnx64/samples/opencl/bin/x86_64/CLInfo to check that things are working and that your GPU card is detected.

===

Install the Python OpenCL module (PyOpenCL). Broadly, follow the instructions here:
http://wiki.tiker.net/PyOpenCL/Installation/Linux

However, in step 2 I couldn't install the Numpy dependency this way. Instead I ran "System | Administration | Add/Remove Software", then searched for numpy and installed it.

In step 3, the OpenCL headers and libraries weren't found, so I had to use the longer configure.py example and provide explicit paths.

I don't think the "Boost C++" libraries are required for this version of PyOpenCL.

===

Install the JSON-RPC module for Python. This was straightforward using the instructions here:
http://json-rpc.org/wiki/python-json-rpc

===

Go to m0mchil's Git repository:
https://github.com/m0mchil/poclbm

Click the "Download" button. Download and unpack these files anywhere convenient. Change poclbm.py to executable and check that it's working:

Code:
chmod 744 poclbm.py
./poclbm.py --help

===

If you don't already have a file bitcoin.conf in your ~/.bitcoin directory, create one and put a username and password in it:

Code:
rpcuser=yourusername
rpcpassword=yourpassword

Go back to the bitcoin/bin/64 directory and start bitcoin in rpc server mode:

Code:
./bitcoin -server &

Go to the directory where you built poclbm.py and run it:

Code:
./poclbm.py --user=yourusername --pass=yourpassword

It will tell you which devices it can see. Choose the one that's not your CPU, and add that one to the command line with the "-d" switch:

Code:
./poclbm.py --user=yourusername --pass=yourpassword -d1

Watch the khash/s figures with sweet delight, and enjoy the few moments before the roar of your GPU fan starts up.

Many thanks to m0mchil and the many others who have offered code or helpful tips.

(PS: If you upgrade your kernel, the ATI driver might hang on startup. If this happens, boot into runlevel 3, delete /etc/X11/xorg.conf , reboot and reinstall the ATI driver.)
Cablesaurus
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250



View Profile WWW
February 07, 2011, 09:32:04 PM
 #398

What is the -askrate flag doing? How does it help if set to something non-default? thanks for any input.

PCIe Extender Cables; Dummy Plugs, Fans; PSU Cables; Cases & More
Visit www.Cablesaurus.com and our forum thread at http://bitcointalk.org/index.php?topic=6128.0
TheKoziTwo
Legendary
*
Offline Offline

Activity: 1552
Merit: 1047



View Profile
February 08, 2011, 01:38:47 AM
 #399

I just get 3500 khash/s

--device=0 -f 5 -v -w 128 (tried different combinations like f 30 and w 256 etc)

What am I doing wrong?


Cryptoman
Hero Member
*****
Offline Offline

Activity: 726
Merit: 500



View Profile
February 08, 2011, 02:32:50 AM
 #400

I just get 3500 khash/s

--device=0 -f 5 -v -w 128 (tried different combinations like f 30 and w 256 etc)

What am I doing wrong?

Device 0 is your CPU, most likely.  Try device=1 or start the miner with no options and it will list the devices.

"A small body of determined spirits fired by an unquenchable faith in their mission can alter the course of history." --Gandhi
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!