Author Topic: Donations to open source a GPU Protoshares miner (PTS)  (Read 73074 times)

0 Members and 1 Guest are viewing this topic.

Offline Isaaaaah

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #133 on: January 11, 2014, 04:04:18 am »
No that was no guide for profitable mining.
At least not profitable today :D
But it still is the easiest way to buy bitcoin via credit card *cough* :o
PZ13fD7vf6ebCVWp1geHTAjtiEHskv7Yo1 See you at MSC

Offline CryptoN8

  • Full Member
  • ***
  • Posts: 192
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #132 on: January 11, 2014, 03:13:50 am »
from 0 to ~560c/m @ AWS EC2 g2.2xlarge:

5.
Profit
(well maybe a bit too optimistic, but i was pretty excited learning all that)
Just curious, is that specific EC2 around $16 a day? And at current diff this would generate 0.2244 PTS?
(http://mrx.im/pts.php?cpm=560) I'm not knocking what you have provided in the way of guidance, I'm checking my math to realize ROI over upgrading some existing equipment (CPU's) or wait for ATI GPU miner as I have stacks of them left over from the early BTC days.

It's cheaper than that on the spot market, sometimes.

http://aws.amazon.com/ec2/spot-instances/

For example, right now, most markets do cost $16/day on spot (because of all the damn miners. grin.)

But Northern California is only $0.2/hour = $4.80 per day.

Which, alas, is below being profitable.

But, um, if you grab my most recent code you might find that the profitability threshold on ec2 just went up. I'm getting over 800 c/m on Amazon, but my instances only run when the spot market prices drop below about $0.11/hour -- which they don't seem very likely to do.

Note:  Running on spot instances is a little scary.  It's VERY easy to typo in the box where you say how much you'll pay per hour.  DOUBLE AND TRIPLE CHECK YOUR BIDS.  From watching the prices historically, it's very clear that some people missed the decimal point and ended up paying more on the spot market than if they just paid the $16/day for a normal g2.2xlarge instance.  (!!!)

You also have to watch the market prices of the things you're mining very carefully.

  -Dave
Thank you for this guidance, I was not aware of the spot instance option. I will research further and be cautious on the bids. I'll also need to learn how to get the mining software to launch automatically as it sounds like if your bid hits the VM will start automatically.(?) Maybe have it send an email as well so you know it's alive and to keep an eye on it.

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #131 on: January 11, 2014, 02:53:02 am »
from 0 to ~560c/m @ AWS EC2 g2.2xlarge:

5.
Profit
(well maybe a bit too optimistic, but i was pretty excited learning all that)
Just curious, is that specific EC2 around $16 a day? And at current diff this would generate 0.2244 PTS?
(http://mrx.im/pts.php?cpm=560) I'm not knocking what you have provided in the way of guidance, I'm checking my math to realize ROI over upgrading some existing equipment (CPU's) or wait for ATI GPU miner as I have stacks of them left over from the early BTC days.

It's cheaper than that on the spot market, sometimes.

http://aws.amazon.com/ec2/spot-instances/

For example, right now, most markets do cost $16/day on spot (because of all the damn miners. grin.)

But Northern California is only $0.2/hour = $4.80 per day.

Which, alas, is below being profitable.

But, um, if you grab my most recent code you might find that the profitability threshold on ec2 just went up. I'm getting over 800 c/m on Amazon, but my instances only run when the spot market prices drop below about $0.11/hour -- which they don't seem very likely to do.

Note:  Running on spot instances is a little scary.  It's VERY easy to typo in the box where you say how much you'll pay per hour.  DOUBLE AND TRIPLE CHECK YOUR BIDS.  From watching the prices historically, it's very clear that some people missed the decimal point and ended up paying more on the spot market than if they just paid the $16/day for a normal g2.2xlarge instance.  (!!!)

You also have to watch the market prices of the things you're mining very carefully.

  -Dave

Offline CryptoN8

  • Full Member
  • ***
  • Posts: 192
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #130 on: January 11, 2014, 02:45:14 am »
from 0 to ~560c/m @ AWS EC2 g2.2xlarge:

5.
Profit
(well maybe a bit too optimistic, but i was pretty excited learning all that)
Just curious, is that specific EC2 around $16 a day? And at current diff this would generate 0.2244 PTS?
(http://mrx.im/pts.php?cpm=560) I'm not knocking what you have provided in the way of guidance, I'm checking my math to realize ROI over upgrading some existing equipment (CPU's) or wait for ATI GPU miner as I have stacks of them left over from the early BTC days.

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #129 on: January 11, 2014, 02:35:36 am »
2014-01-01 update:

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

Offline Isaaaaah

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #128 on: January 11, 2014, 12:10:19 am »
from 0 to ~560c/m @ AWS EC2 g2.2xlarge:

0.
Set up your AWS instance:
In order to create a spot instance you need to get one on demand instance up, set everything up and create an AMI from it.
GPU instances only accept hvm AMIs (scroll down a bit on the Quick Start AMI selection)
This guide was written for Ubuntu 12.04.
Create a key pair if you dont have one already and download it.
When using putty on windows you need puttygen http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html to create a ppk file and select that ppk file under SSH > Auth in the putty menu
User for EC2 instances is ubuntu (on ubuntu instances)
From linux you connect via
Code: [Select]
ssh -i your_key_file ubuntu@ip_adressMake sure you are root (sudo -s).

1.
Install cuda drivers and openCL:
Code: [Select]
apt-get update
apt-get -y upgrade
apt-get -y install gcc
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1204/x86_64/cuda-repo-ubuntu1204_5.5-0_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1204_5.5-0_amd64.deb
apt-get update
apt-get -y install cuda
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64:$LD_LIBRARY_PATH
apt-get -y install opencl-headers python-pip python-dev python-numpy python-mako
wget https://pypi.python.org/packages/source/p/pyopencl/pyopencl-2013.1.tar.gz#md5=c506e4ec5bc56ad85bf005ec40d4783b
tar -vxzf pyopencl-2013.1.tar.gz
cd pyopencl-2013.1
python setup.py install
shutdown -r now
System needs to reboot before we continue.

2.
Install required packages for building and build the cudapts miner (dont forget to be root):
Code: [Select]
apt-get -y install git make g++ build-essential libminiupnpc-dev libboost-all-dev libdb++-dev libgmp-dev libssl-dev yasm
apt-get -y install libboost-chrono1.48-dev libboost1.48-doc libboost-date-time1.48-dev libboost-filesystem1.48-dev libboost-graph-parallel1.48-dev libboost-graph1.48-dev libboost-iostreams1.48-dev libboost-locale1.48-dev libboost-math1.48-dev libboost-mpi1.48-dev libboost-program-options1.48-dev libboost-python1.48-dev libboost-random1.48-dev libboost-regex1.48-dev libboost-serialization1.48-dev libboost-signals1.48-dev libboost-system1.48-dev libboost-test1.48-dev libboost-thread1.48-dev libboost-timer1.48-dev libboost-wave1.48-dev
cd ~
git clone https://github.com/dave-andersen/cudapts
cd cudapts/src/
export PATH=$PATH:/usr/local/cuda/bin
make -f makefile.unix

3.
run the miner:
Code: [Select]
cd ~
export PATH=/usr/local/cuda-5.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-5.5/lib64
cudapts/src/cudapts YOUR_PTS_ADRESS 0

4.
???

5.
Profit
(well maybe a bit too optimistic, but i was pretty excited learning all that)
« Last Edit: January 11, 2014, 12:45:39 am by Isaaaaah »
PZ13fD7vf6ebCVWp1geHTAjtiEHskv7Yo1 See you at MSC

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #127 on: January 10, 2014, 09:31:14 pm »
I have just the original version which compiles and runs too! In gpuhash.cu there was a problem with restrict though, you may fix that

Cool.  Yeah, the windows nvcc doesn't seem to like __restrict__ for some reason.  Odd.

Offline bitminer9000

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #126 on: January 10, 2014, 08:00:49 pm »
changed sm to 13
works on gtx 295 np
gtx295 is dual gpu,  so   2x 335c/m

Thanks!
test run was old amd x2 cpu,
i put 2 gtx 295 on single intel E5620, all instances hashing at 345+
1380c/m total

Offline archit

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #125 on: January 10, 2014, 04:35:41 pm »
I have just the original version which compiles and runs too! In gpuhash.cu there was a problem with restrict though, you may fix that

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #124 on: January 10, 2014, 04:16:09 pm »
dga the Windows version of your code compiled finally and it works

I saw - congrats!  You went by re-basing it on jhprotominer and incorporating the mining core, right?

Any changes to the mining core to make it easier next time?  I'm going to release some patches in a week that give a decent speedup, and I'd like to not cause people a huge build headache.

  -Dave

Offline archit

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #123 on: January 10, 2014, 02:53:27 pm »
dga the Windows version of your code compiled finally and it works

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #122 on: January 10, 2014, 02:48:32 pm »
Thanks! 5000 MMC on its way to you. Keep up the good work.

Wow - thank you!  That's a very nice incentive to keep pounding on this thing. :)

Offline FreeTrade

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #121 on: January 10, 2014, 12:58:44 pm »
Thanks! 5000 MMC on its way to you. Keep up the good work.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher

Offline dga

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #120 on: January 10, 2014, 12:46:45 pm »
dga, thanks for releasing this! I think it's going to be helpful for MemoryCoin users too - do you have an MMC address? I'd like to make a tip.

Hmm.  MMC looks interesting - I'll have to check it out.

Thanks for the tip offer.  Donation addresses:

MMC:  MTZGEoyforE2ikMWcu9QipHimZgX12Dgom
PTS: Pr8cnhz5eDsUegBZD4VZmGDARcKaozWbBc
BTC: 17sb5mcCnnt4xH3eEkVi6kHvhzQRjPRBtS

Offline FreeTrade

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 700
    • View Profile
Re: Donations to open source a GPU Protoshares miner (PTS)
« Reply #119 on: January 10, 2014, 12:39:15 pm »
dga, thanks for releasing this! I think it's going to be helpful for MemoryCoin users too - do you have an MMC address? I'd like to make a tip.
“People should be more sophisticated? How are you gonna get that done?” - Jerry Seinfeld reply to Bill Maher