Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: dga on January 08, 2014, 11:18:13 AM



Title: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 08, 2014, 11:18:13 AM
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. :)

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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 08, 2014, 12:04:16 PM
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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: unsoindovo on January 08, 2014, 03:44:47 PM
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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 08, 2014, 04:29:51 PM
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.)


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: cbuchner1 on January 08, 2014, 05:07:00 PM

Weird that you haven't blogged about this yet ;)

Christian


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 08, 2014, 05:08:27 PM

Weird that you haven't blogged about this yet ;)

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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: SpeedDemon13 on January 08, 2014, 06:02:55 PM
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.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: matt4054 on January 08, 2014, 06:06:43 PM
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.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 09, 2014, 12:46:01 AM
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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: Sy on January 09, 2014, 08:55:06 AM
A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL :)


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: cbuchner1 on January 09, 2014, 10:38:24 AM
A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL :)

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 ;)

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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: Sy on January 09, 2014, 04:38:35 PM
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?


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 10, 2014, 12:24:13 PM
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. :)

  -Dave


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: MrMirkin on January 10, 2014, 05:26:39 PM
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!


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: zvs on January 10, 2014, 07:40:09 PM
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)


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 10, 2014, 07:51:27 PM
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! :).  But help getting my version to work cleanly on windows would be appreciated - we'll have a higher-quality open source base for everyone.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: dga on January 11, 2014, 01:36:58 AM
A 680 GTX drawing 115W?

Besides that, very nice - now we need openCL :)

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. :)  (It's also faster.)


Title: Update 2014-01-10 - speed boosts, dev donation, and memory reduction
Post by: dga on January 11, 2014, 02:37:04 AM
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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: mmihai1978 on January 11, 2014, 06:23:31 PM
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


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: relm9 on January 11, 2014, 07:47:22 PM
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  >:(


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: archit on January 13, 2014, 10:04:23 AM
Run the app and then say


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: subhead on January 14, 2014, 12:45:44 AM
Run the app and then say

it is clearly noticeable that your miner is based on dga source.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: fran2k on January 14, 2014, 02:53:39 AM
The era of CUDACoins has begun.

Lets power on NVIDIA.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: fran2k on January 14, 2014, 02:58:21 AM
Brilliant, thanks!

What possibility do you see in coins with PoW algorithms that run better in CUDA ?


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: SnakeJG on January 14, 2014, 05:33:36 AM
Run the app and then say

it is clearly noticeable that your miner is based on dga source.

I think archit is saying that when you run the app, it clearly states it is based on dga source.  In particular:


╔══════════════════════════════════════════════════╗
║  arCUDAminer (v0.4)                              ║
║  author: jh,dga and ported by archit             ║
║  http://ypool.net                                ║
╚══════════════════════════════════════════════════╝


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: relm9 on January 14, 2014, 05:35:03 AM
Fair enough then. I don't run things without any available source.

Edit: BTW, I should mention, I just set this up on another machine and the latest build from git is giving me 1250 c/m on a 780. With the build I was using previously I got around 1650.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: tomun on January 14, 2014, 11:05:37 PM
I tried it on Linux, and it fails to malloc on this line

  error = cudaMalloc((void **)&dev_countbits, sizeof(uint32_t)*NUM_COUNTBITS_WORDS);

My card is a compute 2.1 GTX 460 with only 768MB ram and currently running two screens. I have changed arch to sm_21

FYI "Device has 647233536 free of 804454400 total bytes of memory"

Suggestions?


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: Snard on January 17, 2014, 08:20:29 PM
Was anyone able to get this compiled in Windows? Tried in mingw but no success. Not sure if it can even be compiled in mingw.


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: jae480 on January 25, 2014, 07:31:06 PM
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. :)

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

Is GPU mining on AMD cards available?


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: NaN_PTS on January 26, 2014, 08:13:50 PM
Yes, it is available. I've written a first version of a miner for AMD gpus, which seems to be much faster than other miners (>2100 c/m @ R290@1025mhz). but i provide at the moment only linux binaries: https://www.dropbox.com/s/s7jlsyqkowwswaa/clpts.tar.gz


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: jae480 on January 31, 2014, 11:22:26 AM
Yes, it is available. I've written a first version of a miner for AMD gpus, which seems to be much faster than other miners (>2100 c/m @ R290@1025mhz). but i provide at the moment only linux binaries: https://www.dropbox.com/s/s7jlsyqkowwswaa/clpts.tar.gz

is it or will it be out for the community to use ;)


Title: Re: [ANN] cudapts - GPU mining for Protoshares (PTS)
Post by: milly6 on February 20, 2014, 02:49:38 AM
This file has been deleted or removed. Im interested in this, PM me.