Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: OpenCL GPU miner opensource (for AMD cards)  (Read 15519 times)

0 Members and 1 Guest are viewing this topic.

Offline iruu

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
OpenCL GPU miner opensource (for AMD cards)
« on: January 10, 2014, 03:46:53 PM »

Hi. This is an opencl miner. More specifically, it's a miner without network code. 
To compile, you'll need: Visual Studio 2010, AMD APP SDK, Boost, OpenSSL (or an alternative implementation of SHA512). The actual collision pair are computed to a vector on line 120 in momentum_gpu.cpp, if you know c++ you can take it from there. 
I was mining on this code by a dll hack - I compiled a dll with "mine" function and added LoadLibrary/GetProcAddr to first beer's miner. I'm not releasing that code though because it's an ugly hack.

https://github.com/iruu/protoshares_momentum_opencl

Licensed under GPL 2.0. It's the same code that was in the benchmark I gave to some people on irc.

Initially (in November) I was planning and creating a pool for this, but something completely unrelated came up and I wasn't able to finish this. Sorry if you were waiting, especially if you helped me benchmark the code. 

There's an exe in Release folder, you can use to benchmark. 

Why release now? Because someone released CUDA miner. A closed, proprietary language! CUDA should die.

EDIT: When benchmarking use at least 100 iterations for reliable results.

-

If you find it useful (or derived miner, which is very easy to do and probably will appear fast), need to exchange btc or like to trade btc on margin and you don't already have an account on bitfinex (cheapest btc exchange), during registration use my bitfinex referral code IiDoeUOa3i. A sort of a tip which doesn't cost you anything.
« Last Edit: January 12, 2014, 07:57:33 AM by iruu »

Offline nikmal

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #1 on: January 10, 2014, 04:23:21 PM »

Hi. The link does not open.

Offline Amazon

  • Hero Member
  • *****
  • Posts: 831
    • View Profile
    • Bitshares Forum
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #2 on: January 10, 2014, 04:25:54 PM »
Great, thank you.
Forum Donation: PforumPLfVQXTi4QpQqKwoChXHkoHcxGuA

Offline iruu

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #3 on: January 10, 2014, 04:40:56 PM »
I think Megaupload has some technical difficulties.

http://bitfinexreferrercode.com/momentum_gpu.rar

Offline nikmal

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #4 on: January 10, 2014, 05:02:59 PM »
I think Megaupload has some technical difficulties.

http://bitfinexreferrercode.com/momentum_gpu.rar
How to run a miner?

Offline abc123

  • Full Member
  • ***
  • Posts: 59
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #5 on: January 10, 2014, 05:10:12 PM »
OpenCL is open, but I think it needs more time to develop a good OpenCL program.

Offline earthbound

  • Full Member
  • ***
  • Posts: 120
    • View Profile
    • earthbound.io
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #6 on: January 10, 2014, 07:30:09 PM »
After I installed both of the following, I was able to run a benchmark:

http://www.microsoft.com/en-us/download/confirmation.aspx?id=29
http://slproweb.com/download/Win32OpenSSL_Light-1_0_1f.exe re http://slproweb.com/products/Win32OpenSSL.html
re: http://www.openssl.org/related/binaries.html

This seems to run really great collision rates on AMD hardware, with the following initialization strings/resulting rates:

For an ATI Radeon HD 580 as device 1:
Code: [Select]
momentum_gpu.exe -m 288 -d 1 -b 2Result:
Code: [Select]
2 repeats, average 507.5ms, 865.645 col/m
For an AMD Radeon HD 78 as device 0:
Code: [Select]
momentum_gpu.exe -m 288 -d 0 -b 1Result:
Code: [Select]
1 repeats, average 906ms, 377.754 col/m
Am I smoking weed? This would be a combined average 1243.399 col/m on commonly available GPU cards. Those are great figures, aren't they?
« Last Edit: January 11, 2014, 12:18:54 AM by earthbound »
I think I'm not alone when I say I'd like to see more and more planets fall under the ruthless dominion of our solar system. -Jack Handey

Offline sircotra

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #7 on: January 10, 2014, 08:24:15 PM »
Hi, i'm trying to execute "momentum_gpu.exe" in "Release" folder but i got an error: "The procedure entry point clRetainDevice could not be located in the dynamic library OpenCL.dll".

My pc has Core i7 Cpu and Ati Radeon HD6490M GPU

Thank you

Offline earthbound

  • Full Member
  • ***
  • Posts: 120
    • View Profile
    • earthbound.io
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #8 on: January 10, 2014, 09:06:25 PM »
Dunno. Maybe you need to install the AMD App SDK and/or the newest driver for your card?
I think I'm not alone when I say I'd like to see more and more planets fall under the ruthless dominion of our solar system. -Jack Handey

Offline voffka05

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #9 on: January 10, 2014, 09:14:53 PM »
What setting need type to poolmining?

Offline earthbound

  • Full Member
  • ***
  • Posts: 120
    • View Profile
    • earthbound.io
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #10 on: January 11, 2014, 12:15:40 AM »
What setting need type to poolmining?

This does not mine (it does not connect to any pools). It is a prototype (benchmark) compile with source code. The freely available code is begging to be integrated into a full-blown miner. (Please see the thread I link to in my second post in this thread.)
« Last Edit: January 11, 2014, 12:17:27 AM by earthbound »
I think I'm not alone when I say I'd like to see more and more planets fall under the ruthless dominion of our solar system. -Jack Handey

Offline scp_1982

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #11 on: January 11, 2014, 01:36:05 AM »
momentum_gpu.exe -m 288 -d 1 -b 2
AMD HD7950, col/m=946
AMD HD7970, col/m=1060
« Last Edit: January 11, 2014, 01:40:14 AM by scp_1982 »

Offline iruu

  • Jr. Member
  • **
  • Posts: 46
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #12 on: January 11, 2014, 02:00:38 AM »
Don't use less than 100 iterations for a benchmark, results from 3 iterations are not reliable.
On 7970 without OC you should get about 500col/m. 
Generally the more memory the better should be the result. 

Apparently the RX series cards support buffers bigger than 512MB. That makes the two buffer hack obsolete (ie. one buffer 1GB, or even 2GB version should be a few percents faster). 
« Last Edit: January 11, 2014, 02:14:01 AM by iruu »

Offline unclewind

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #13 on: January 11, 2014, 02:54:33 AM »
how long can we get the mining tools?

Offline jefflee

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: OpenCL GPU miner opensource (for AMD cards)
« Reply #14 on: January 11, 2014, 04:19:32 AM »
Does anyone port it to Linux? That would be great :)

 

Google+