Bitcoin Forum
April 19, 2024, 08:00:53 PM *
News: Latest Bitcoin Core release: 26.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 1238793 times)
ColdHardMetal
Hero Member
*****
Offline Offline

Activity: 700
Merit: 500



View Profile
December 19, 2010, 04:10:41 PM
 #281

Hello,

I downloaded the miner and followed the instructions from the OP. I feel as though I have it set up correctly. When I try to run the miner a new CMD window flashes on my screen too rapidly to read anything, or even see if it says anything. I don't get any errors in the CMD window I'm using to launch the miner but I really don't feel like it's working. I'm also not sure how I'm able to tell if it is working.

Any assistance would be appreciated.

Thanks.

I HATE TABLES I HATE TABLES I HA(╯°□°)╯︵ ┻━┻ TABLES I HATE TABLES I HATE TABLES
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
dbc
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 19, 2010, 10:07:47 PM
 #282

Looking at the opencl kernel, can the belowOrEquals function not avoid the endian related comparison of seperate bytes, instead moving the switch into the python code when creating targetH and targetG. Then less branches in kernel and perhaps better stream usage?
gohan
Jr. Member
*
Offline Offline

Activity: 52
Merit: 1


View Profile
December 21, 2010, 12:56:32 AM
 #283

Finally got my hands on a GTX 275. Reporting stats:

CPU: Core2 Extreme QX6700, 2.67 GHz
OS: Gentoo Linux 2.6.34
Client: Classic 0.3.19 (local build)
khash/sec: ~5000

GPU: Nvidia GeForce GTX 275
Miner: m0mchil's OpenCL (2010-12-20)
Options: -r 3 -f 10 -w 256
khash/sec: ~49500

I have an old motherboard (PCIe 1.0a, etc.) which has a lot of strain on it, so your results with the same CPU or GPU could be better. It seems I should've gone for an ATI radeon though.
distant
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
December 21, 2010, 02:08:36 AM
 #284

Does anyone know what the optimal settings are for a GTX 580?

Thanks,
DiSTANT
fisuk
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 21, 2010, 07:16:58 AM
 #285

Finally got my hands on a GTX 275. Reporting stats:

CPU: Core2 Extreme QX6700, 2.67 GHz
OS: Gentoo Linux 2.6.34
Client: Classic 0.3.19 (local build)
khash/sec: ~5000

GPU: Nvidia GeForce GTX 275
Miner: m0mchil's OpenCL (2010-12-20)
Options: -r 3 -f 10 -w 256
khash/sec: ~49500

I have an old motherboard (PCIe 1.0a, etc.) which has a lot of strain on it, so your results with the same CPU or GPU could be better. It seems I should've gone for an ATI radeon though.

Yeah, I guess the problem lies with Nvidia's OpenCL drivers which are less than optimal. If there was a CUDA miner available, Nvidia users would probably get more comparable results.. So, who's up to the task? Wink
brocktice
Sr. Member
****
Offline Offline

Activity: 292
Merit: 250


Apparently I inspired this image.


View Profile WWW
December 21, 2010, 05:58:10 PM
 #286

Finally got my hands on a GTX 275. Reporting stats:

CPU: Core2 Extreme QX6700, 2.67 GHz
OS: Gentoo Linux 2.6.34
Client: Classic 0.3.19 (local build)
khash/sec: ~5000

GPU: Nvidia GeForce GTX 275
Miner: m0mchil's OpenCL (2010-12-20)
Options: -r 3 -f 10 -w 256
khash/sec: ~49500

I have an old motherboard (PCIe 1.0a, etc.) which has a lot of strain on it, so your results with the same CPU or GPU could be better. It seems I should've gone for an ATI radeon though.

Yeah, I guess the problem lies with Nvidia's OpenCL drivers which are less than optimal. If there was a CUDA miner available, Nvidia users would probably get more comparable results.. So, who's up to the task? Wink

Nvidia hardware sucks for mining at the hardware level. CUDA won't help.

http://media.witcoin.com/p/1608/8----This-is-nuts

My #bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=brocktice&sign=ANY&type=RECV

Like my post? Leave me a tip: 15Cgixqno9YzoKNEA2DRFyEAfMH5htssRg
GeorgeH
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile
December 23, 2010, 05:56:31 AM
 #287

Does anyone know what the optimal settings are for a GTX 580?

Thanks,
DiSTANT

Sell it and buy an ATI card.

1DSpPtPTGXTYjkZehPsiAbjkXLkB1jsZ2x
jiffy
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
December 23, 2010, 08:57:22 AM
 #288

Hi,

poclbm finally told me that a block was accepted (after 3 days with 0,23Ghash/s).

bitcoind getinfo shows no balance of +50 until now, though.

I read somewhere that this might take very long because the new block is checked very intensively. Couldn't find the text again, though.

So can you tell me that I can calm down or went something wrong and the 3 days of work are gone for somebody else?
davout
Legendary
*
Offline Offline

Activity: 1372
Merit: 1007


1davout


View Profile WWW
December 23, 2010, 09:32:07 AM
 #289

you have to wait 120 blocks before the coins mature,
otherwise you might spend coins that were generated on a chain fork

jiffy
Newbie
*
Offline Offline

Activity: 27
Merit: 0


View Profile
December 23, 2010, 09:55:51 AM
 #290

you have to wait 120 blocks before the coins mature,
otherwise you might spend coins that were generated on a chain fork


Thanks a lot for quick reply, davout!

Is it possible to see this on blockexplorer.com? What do I have to look for?
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
December 23, 2010, 05:10:34 PM
 #291

Is it possible to see this on blockexplorer.com? What do I have to look for?

You can see the block on BBE as soon as it is generated (1-minute delay). If it shows up there, it probably won't be reversed, though from time to time this does happen. It won't appear in your balance until it is 120 blocks deep.

The block hash is printed to debug.log by Bitcoin when you find a block. poclbm itself might also do this.
Code:
proof-of-work found  
  hash: 000000001cd845dc081bd5c2f0165f6101edee254a0f716701b70c1522758b69

You can use the hash to search BBE for the block.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
gohan
Jr. Member
*
Offline Offline

Activity: 52
Merit: 1


View Profile
December 23, 2010, 09:26:33 PM
 #292

Yeah, I guess the problem lies with Nvidia's OpenCL drivers which are less than optimal. If there was a CUDA miner available, Nvidia users would probably get more comparable results.. So, who's up to the task? Wink

Nvidia hardware sucks for mining at the hardware level. CUDA won't help.

Hi, are there any references you can recommend about this (which thread to read about Nvidia's deficiencies, etc.)? I'm interested in the implementations but I won't get in too deep if there isn't much to be done on CUDA.
GeorgeH
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile
December 24, 2010, 12:38:37 AM
 #293

I don't have any references on hand, but here's the Reader's Digest version: nVidia GPUs are built to do fast floating point math. Cryptological algorithms like Bitcoin's are computed using integer math. On the flip side, ATI's GPUs have strong integer math capabilities. ATI cards generally have 4-6x the performance of comparably priced nVidia cards.

1DSpPtPTGXTYjkZehPsiAbjkXLkB1jsZ2x
brocktice
Sr. Member
****
Offline Offline

Activity: 292
Merit: 250


Apparently I inspired this image.


View Profile WWW
December 24, 2010, 01:17:11 AM
 #294

Yeah, I guess the problem lies with Nvidia's OpenCL drivers which are less than optimal. If there was a CUDA miner available, Nvidia users would probably get more comparable results.. So, who's up to the task? Wink

Nvidia hardware sucks for mining at the hardware level. CUDA won't help.

Hi, are there any references you can recommend about this (which thread to read about Nvidia's deficiencies, etc.)? I'm interested in the implementations but I won't get in too deep if there isn't much to be done on CUDA.


Nvidia and ATI take different performance approaches, and even the newly-announced AMD/ATI GPUs take a slightly different approach than the previous generation. (Approach meaning number of ALUs, memory bandwidth, etc etc.) What this means is that ATI and Nvidia are lately neck-and-neck when it comes to average gaming performance, but for number crunching, especially integer number crunching, ATI/AMD 5xxx series currently hold the worldwide performance, price, and performance/price and performance/watt top spot, by a long shot.

http://media.witcoin.com/p/1608/8----This-is-nuts

My #bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=brocktice&sign=ANY&type=RECV

Like my post? Leave me a tip: 15Cgixqno9YzoKNEA2DRFyEAfMH5htssRg
gohan
Jr. Member
*
Offline Offline

Activity: 52
Merit: 1


View Profile
December 24, 2010, 12:52:09 PM
 #295

Ah, Integers! Thank you Smartzkid & brocktice. I thought it would be something more subtle (and bound to change), that's why I went for nVidia. Better warn suckers like me not to buy nVidia for bitcoin mining. Cheesy
brocktice
Sr. Member
****
Offline Offline

Activity: 292
Merit: 250


Apparently I inspired this image.


View Profile WWW
December 25, 2010, 07:21:43 PM
 #296

Ah, Integers! Thank you Smartzkid & brocktice. I thought it would be something more subtle (and bound to change), that's why I went for nVidia. Better warn suckers like me not to buy nVidia for bitcoin mining. Cheesy

It's more than that, basically it's number of stream processors. A 5970 still wins vs. any nvidia for floating point math, even more so when you factor in power and price.  The major downside with ATI is that their GPGPU toolchain is less mature than that of Nvidia. A cluster provider my company uses refuses to put ATI cards in their cluster for that reason. They don't trust them. ATI/AMD cards also not currently designed for headless operation, unlike Tesla cards.

http://media.witcoin.com/p/1608/8----This-is-nuts

My #bitcoin-otc ratings: http://bitcoin-otc.com/viewratingdetail.php?nick=brocktice&sign=ANY&type=RECV

Like my post? Leave me a tip: 15Cgixqno9YzoKNEA2DRFyEAfMH5htssRg
m0mchil (OP)
Full Member
***
Offline Offline

Activity: 171
Merit: 127


View Profile
December 28, 2010, 06:41:51 PM
 #297

Updated to support latest change of slush's pool which now returns JSON RPC error when its back-end server is down. Original bitcoind never returns such error as a response to getwork(data).

Summarized, this should help miner continue after pool downtime.

slush
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 28, 2010, 07:13:23 PM
 #298

Summarized, this should help miner continue after pool downtime.

Thank you for this update. I believe it will improve overall pool stability. I had to revert json error back to original HTML output, because current miners are crashing. But I will change it to json response after few days, when majority of users will use fixed miners.

Eloar
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
December 30, 2010, 11:43:04 PM
Last edit: December 31, 2010, 12:51:45 AM by Eloar
 #299

I have some problems with that. First I can't download binary package. Could someone send it to somekind mirror?

I'm trying to get it working from script, but it is not so easy. I can't make pyopencl installation right. My siteconf.py is:
Quote
BOOST_INC_DIR = [r'C:\Program Files (x86)\boost\boost_1_44']
BOOST_LIB_DIR = [r'C:\Program Files (x86)\boost\boost_1_44\lib']
BOOST_COMPILER = 'msvc'
BOOST_PYTHON_LIBNAME = ['boost_python-vc90-mt-1_44']
USE_SHIPPED_BOOST = False
CL_TRACE = False
CL_ENABLE_GL = False
CL_INC_DIR = ['C:\Program Files (x86)\ATI Stream\include']
CL_LIB_DIR = ['C:\Program Files (x86)\ATI Stream\lib\\x86']
CL_LIBNAME = ['OpenCL']
CXXFLAGS = ['/EHsc', '/DBOOST_PYTHON_NO_PY_SIGNATURES']
LDFLAGS = ['/FORCE']

I get as output from installation (I don't see any errors :/ ) :
Quote
running install
install_dir C:\Program Files (x86)\python\Lib\site-packages\
running bdist_egg
running egg_info
writing requirements to pyopencl.egg-info\requires.txt
writing pyopencl.egg-info\PKG-INFO
writing top-level names to pyopencl.egg-info\top_level.txt
writing dependency_links to pyopencl.egg-info\dependency_links.txt
writing requirements to pyopencl.egg-info\requires.txt
writing pyopencl.egg-info\PKG-INFO
writing top-level names to pyopencl.egg-info\top_level.txt
writing dependency_links to pyopencl.egg-info\dependency_links.txt
reading manifest file 'pyopencl.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'pyopencl.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building '_cl' extension
error: None

but when I try to run poclbm.py I get:
Quote
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
ImportError: No module named pyopencl

I was trying for few hours lot of configurations and nothing worked. Pynum, scipy and so are installed and works. All is for x86 installed on Win7 Pro x86_64 on ATi Radeon HD4870. New ATI Stream SDK and CCC are installed, and I tested some apps from examplest that are working.
chris200x9
Legendary
*
Offline Offline

Activity: 1316
Merit: 1011


View Profile
December 31, 2010, 01:36:06 AM
 #300

A couple questions, how do I confirm this is running for me? In the bitcoin app I don't see and khashes/s I only see it in the terminal in which I ran this from. Second question, my cpu is not being used at all can I use my cpu with the regular bitcoin client to work in parellel. Lastly can I use another computer to work in paralell?
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!