Bitcoin Forum
June 21, 2024, 05:21:47 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: [ANN] cudapts - GPU mining for Protoshares (PTS)  (Read 19300 times)
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 08, 2014, 11:18:13 AM
Last edit: January 08, 2014, 12:03:03 PM by dga
 #1

Hi, all - as discussed in a prior thread, I've open sourced my code for mining ProtoShares (PTS) on Nvidia GPUs.

The code is still a little rough around the edges but is functional and decently fast - and, at least until the difficulty catches up, a very good mining-per-watt option. Smiley

https://github.com/dave-andersen/cudapts

Tested on MacOS and Linux and known to run on GT 650m, GTX 690, Tesla K20c, and GTX 650Ti.

The code is based on ptsminer and is tied to beeeeer right now, but should be straightforward to extend.

No binaries yet, and building it requires some experience with getting CUDA running on your system.  This is still advanced-intermediate terrain, but should get better as the kinks get worked out.

Happy mining!

  -Dave

dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 08, 2014, 12:04:16 PM
 #2

Reserving some space for updates:

 - Restructured the code and made it easier to run from the command line this morning.  Now just:

    ./cudapts <pay-addr>

    should work for most single-GPU systems.

 - Confirmed to work on a GTX 570 by changing makefile.unix, looking for 'arch' and changing it to sm_20

unsoindovo
Legendary
*
Offline Offline

Activity: 1932
Merit: 1042

https://locktrip.com/?refId=40964


View Profile
January 08, 2014, 03:44:47 PM
 #3

Reserving some space for updates:

 - Restructured the code and made it easier to run from the command line this morning.  Now just:

    ./cudapts <pay-addr>

    should work for most single-GPU systems.

 - Confirmed to work on a GTX 570 by changing makefile.unix, looking for 'arch' and changing it to sm_20

hi dga!
how many cpm whit this miner/GPU???

tx

██▬▬▬

██▬

██▬

██▬▬▬



████           ▄▄█████████▄▄            ▄▄█████████▄▄        ████         █████      ██████████████████   ████████████       ████    ████████████    
████         ▄███████████████▄        ▄███████████████▄      ████       █████      ████████████████████  █████████████      ████    █████████████   
████        █████▀       ▀█████▄     █████▀       ▀█████     ████     █████         █       ████       █  ████     █████             ████     █████  
████       ████▀           ▀████▄   ████▀           ▀████    ████   █████                   ████          ████      ████     ████    ████      ████  
████      ████▀              ▀████ ▀███▀                     ████ █████                     ████          ████     █████     ████    ████     █████  
████      ████                 ████▄ ▀                       ████████                       ████          █████████████      ████    █████████████   
████      ████                  ▀████                        ████████                       ████          ████████████       ████    ████████████    
████      ████▄             ▄██▄ ▀████▄                      ████ █████                     ████          ████    ████       ████    ████            
████       ████▄           ▄████   ▀████▄           ▄████    ████   █████                   ████          ████    ▀████      ████    ████            
████        █████▄       ▄█████      █████▄       ▄█████     ████     █████                 ████          ████      ████     ████    ████            
████████████ ▀███████████████▀        ▀███████████████▀      ████       █████               ████          ████       ████    ████    ████            
█████████████  ▀▀█████████▀▀            ▀▀█████████▀▀        ████         █████             ████          ████        █████  ████    ████            

 
 
 
▬▬▬██

▬██

▬██

▬▬▬██
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 08, 2014, 04:29:51 PM
Last edit: January 08, 2014, 10:58:09 PM by dga
 #4

Reserving some space for updates:

 - Restructured the code and made it easier to run from the command line this morning.  Now just:

    ./cudapts <pay-addr>

    should work for most single-GPU systems.

 - Confirmed to work on a GTX 570 by changing makefile.unix, looking for 'arch' and changing it to sm_20

hi dga!
how many cpm whit this miner/GPU???

tx

It's currently similar to a fast CPU but at lower power draw.  My internal version is a little faster.  The last time I tried to put together a set of numbers, I got this:

Dual GTX 690s:  2400 c/m at 115W at 10% CPU.  (600 c/s per GPU core, 2 per card, 2 cards in the box)
650Ti:  330-340 c/m at 1% CPU.
Macbook Pro with GT 650M:  200 c/m.
Tesla K20c:  ~800c/m.

Someone reported 500-600 on an older GTX 570.

(UPDATE:  I wrote c/s in a brain-dead moment.  Meant c/m, of course.)

cbuchner1
Hero Member
*****
Offline Offline

Activity: 756
Merit: 502


View Profile
January 08, 2014, 05:07:00 PM
 #5


Weird that you haven't blogged about this yet Wink

Christian
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 08, 2014, 05:08:27 PM
 #6


Weird that you haven't blogged about this yet Wink

Christian


grin.  I'm going to, of course.

I kind of like the two-bit counting filter I built for the GPU scanner.  It's far from optimal, but I've got one more clever idea to optimize it more, and then I'll blog about it.

  -Dave

SpeedDemon13
Hero Member
*****
Offline Offline

Activity: 518
Merit: 500



View Profile WWW
January 08, 2014, 06:02:55 PM
 #7

I'm interested in complying it into a workable binary, but I don't have the experience. I'm willing to learn if you can be directed to proper sites and/or books that can help me. I learn pretty fast and be come efficient once I learn a skill.

CRYPTSY exchange: https://www.cryptsy.com/users/register?refid=9017 BURST= BURST-TE3W-CFGH-7343-6VM6R BTC=1CNsqGUR9YJNrhydQZnUPbaDv6h4uaYCHv ETH=0x144bc9fe471d3c71d8e09d58060d78661b1d4f32 SHF=0x13a0a2cb0d55eca975cf2d97015f7d580ce52d85 EXP=0xd71921dca837e415a58ca0d6dd2223cc84e0ea2f SC=6bdf9d12a983fed6723abad91a39be4f95d227f9bdb0490de3b8e5d45357f63d564638b1bd71 CLAMS=xGVTdM9EJpNBCYAjHFVxuZGcqvoL22nP6f SOIL=0x8b5c989bc931c0769a50ecaf9ffe490c67cb5911
matt4054
Legendary
*
Offline Offline

Activity: 1946
Merit: 1035



View Profile
January 08, 2014, 06:06:43 PM
 #8

Thanks for this.

Compiling on Linux / OSX wouldn't be a problem for me but my only nVidia is on Windows right now... would definitely be interested in a Windows binary.
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 09, 2014, 12:46:01 AM
 #9

Thanks for this.

Compiling on Linux / OSX wouldn't be a problem for me but my only nVidia is on Windows right now... would definitely be interested in a Windows binary.

Heard.  I'm slowly trickling in some compilation fixes that should let things work on Windows under Cygwin.  Just committed another - but I'm pretty sure there are remaining bugs.  If anyone wants to grab the latest version from git and try, LMK.

(For those who tried before by manually compiling gpuhash.cu and got an error about "restrict", that bug should be fixed.  I hope.)

  -Dave

Sy
Legendary
*
Offline Offline

Activity: 1484
Merit: 1003


Bounty Detective


View Profile
January 09, 2014, 08:55:06 AM
 #10

A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL Smiley

BOUNTY DETECTIVE


















Powered by,
cbuchner1
Hero Member
*****
Offline Offline

Activity: 756
Merit: 502


View Profile
January 09, 2014, 10:38:24 AM
 #11

A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL Smiley

Power draw is very much reduced when you run memory intensive stuff that is not at all compute bound. For example my script-jane (Yacoin) implementation in CUDA makes my mining rig run at 400 Watts, whereas mining scrypt (Litecoin) will make it run at 850 Watts. Yet the mining returns are bigger with jane, so I am not complaining Wink

nVidia doesn't play nice with OpenCL (nVidia's support is outdated and half-assed. CUDA will in most cases get you better performance over an equivalent OpenCL implementation). So don't expect an OpenCL port from someone who mainly owns nVidia gear....

Christian
Sy
Legendary
*
Offline Offline

Activity: 1484
Merit: 1003


Bounty Detective


View Profile
January 09, 2014, 04:38:35 PM
 #12

Thanks for the info, didnt expect one from you - just wondering, will it be faster as everything else or this one finally better with cuda?

BOUNTY DETECTIVE


















Powered by,
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 10, 2014, 12:24:13 PM
 #13

Thanks for the info, didnt expect one from you - just wondering, will it be faster as everything else or this one finally better with cuda?

Not sure.  I'm gong to try an OpenCL one next week if nobody beats me to it.  I have a fairly different algorithmic approach in mind for AMD.  We'll see. Smiley

  -Dave

MrMirkin
Newbie
*
Offline Offline

Activity: 24
Merit: 0


View Profile
January 10, 2014, 05:26:39 PM
 #14

Thanks for this.

Compiling on Linux / OSX wouldn't be a problem for me but my only nVidia is on Windows right now... would definitely be interested in a Windows binary.

Same here, would love to try this on my 570.  Please let us know when you can!
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
January 10, 2014, 07:40:09 PM
 #15

I have a GTX 780 that I received yesterday

so I'll make a windows binary sometime tonight, after I get around to setting it up (have to swap some power supplies too)

(beh, i'll post the other stuff on marketplace later maybe)
dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 10, 2014, 07:51:27 PM
 #16

I have a GTX 780 that I received yesterday

so I'll make a windows binary sometime tonight, after I get around to setting it up (have to swap some power supplies too)

(beh, i'll post the other stuff on marketplace later maybe)

I believe Archit has one working (binary only and donations to him, but works on windows! Smiley.  But help getting my version to work cleanly on windows would be appreciated - we'll have a higher-quality open source base for everyone.

dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 11, 2014, 01:36:58 AM
 #17

A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL Smiley

I was slightly off on my power measurements - I was giving single card numbers earlier, not double, because I had the monitor on a different line than I thought I did.  Oops.  WIth the newer code, it's using more.  Dev version to be released next week if things goes well uses about 175W per card.  Rats. Smiley  (It's also faster.)

dga (OP)
Hero Member
*****
Offline Offline

Activity: 737
Merit: 511


View Profile WWW
January 11, 2014, 02:37:04 AM
 #18

Decent-ish update 2014-01-10:  I've committed some new changes to the repository.  Some are cosmetic, but three are important:

  1)  Memory use on the host side is reduced by about 500MB.  This may or may not matter for you.

  2)  Speed is boosted by 10-20% on a lot of platforms.  I have another speed boost patch coming next week once I've made it not horrible, but this one gets a decent chunk of the gains.

  3)  There's now a developer fee that goes to me.  Kinda. 

I'm doing an experiment with this code release in the developer fee:  It's easy to disable.  It's not hidden.  But it's also just a list of addresses that share the dev fee equally.

So here's my proposal:  If you port this software to another platform or release a binary, don't remove my address.  Instead, add yours to the list -- I've tried to make it super easy for you to get your own share.  If this works out, I'll continue to release improvements and try to make it even easier for other developers who improve upon the code, because we'll all have a reason to make software that remains open source and which is user-friendly and high performance.

If you think this is horrible, let me know and let's try to find a way to make it work better.

If you're a user who hates the idea of a dev fee, the source is yours and you can delete the addresses listed there and/or add your own.

  -Dave

mmihai1978
Sr. Member
****
Offline Offline

Activity: 378
Merit: 250


View Profile
January 11, 2014, 06:23:31 PM
 #19

hi dga

is this guy using your source code? The project name in his screenshot looks just like yours.

https://bitcointalk.org/index.php?topic=410111.0

thanks
relm9
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
January 11, 2014, 07:47:22 PM
 #20

hi dga

is this guy using your source code? The project name in his screenshot looks just like yours.

https://bitcointalk.org/index.php?topic=410111.0

thanks

It seems to be the same. Gotta say that's pretty scummy, no credit to the original author and asks for donations  Angry
Pages: [1] 2 »  All
  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!