Bitcoin Forum
June 26, 2024, 12:13:25 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 [4]
61  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 23, 2013, 10:14:07 AM
- Numbers are still sometimes truncated when parsed from strings

Sounds like you need a better library for int. something that handles really really big ints.

Imho there is no better library out there for GPUs. I'm hacking on the mpz library from a cuda-rsa student project, which is in my repo (https://github.com/primedigger/primecoin/blob/master/src/cuda/mpz.h). It uses its own structures for big ints and that's why you can't exactly load gmp mpz_t into the GPU - I'm using hex strings for that. The library had a function for loading numbers from hex strings, but unfortunately that function is a bit buggy. I guess in the long run, it would be wiser to assemble the GPU's big int data structures on the CPU.

62  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 23, 2013, 09:23:39 AM
Recent update with some fixes for the GPU :

- No more crashes on the GPU
- Fermat test seems to run fine
- Numbers are still sometimes truncated when parsed from strings

But we're getting there!

Help me to stay motivated with some XPM: AeB7voX4imYfA7T3V1PJgB3vV5jU526tz1

And happy hacking if you're trying this out.
63  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 21, 2013, 12:01:57 PM
Btw why didnt you use cump library? it seems to be gmp (mpz) compatible

CUMP is mpf not mpz, unfortunately (if it was a miner would already be done)

Exactly! It's floating point only and that doesn't help for big int+modulo math. GPU mining primecoins will create an optimized big int GPU library as a nice side effect.
64  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 20, 2013, 11:20:54 PM

Code compiles with some makefiles modifications but fails near imidiently with memory errors


Ah sorry my bad, I forgot to commit the makefile changes... but they should be up now
65  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 20, 2013, 02:26:04 PM
If someone wants to help, we need test cases for the cuda mpz functions to be sure that the cuda mpz library works (it's not mine). Also debugging this with gdb (the one from nvidia that can step through gpu execution) would be insightful, to see at which code line it crashes.
66  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 20, 2013, 01:52:31 PM
The 1000 is an arbitrary limit I put in so that enough candidates are available, thats when the GPU is used the first time.
67  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 20, 2013, 12:37:07 PM
Github-link: http://github.com/primedigger/primecoin

update: added a stroxl function from http://www.jbox.dk/sanos/

The code still needs a lot of debugging and the mpz cuda library + string functions a lot of testing, if any CUDA developer wants to give it a chance, go for it!

Weather is too good outside to continue this now...
68  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 19, 2013, 03:28:56 PM
Right who knows! I'm only doing this in CUDA because: I have a Nvidia graphics card and I know CUDA fairly well.

It's not even sure that GPU mining primecoins will be significantly faster. And as I said, getting big integer math on GPU right isn't exactly easy to do. If ATI or NVIDIA is faster with this, pure speculation.

Thanks for all the support!!!  I hope to have something functional soon, but progress over the weekend will be slower.

Mikaelh, since my code is a fork of your client... whats the status of your github page?
https://github.com/mikaelh2/primecoin

Or did you move permanently to bitbucket / or sourceforge with this?
69  Alternate cryptocurrencies / Altcoin Discussion / [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 19, 2013, 12:40:42 PM
The amount of greed surrounding a possible GPU primecoin miner seems to be phenomenal.
Too many people seem to fall for "send me bitcoin and get early access". Sorry, but soliciting payment for early access is just dirty.

Let stop that bullshit - I'm going to share my code, even though my miner isn't fully functional right now (but I think I've already taken it quite far).

Github link: http://github.com/primedigger/primecoin

I repeat, THE CODE DOESN'T RUN CORRECTLY CURRENTLY AND CRASHES, this is just for developers who want to join and help and to show that there is a transparent development.

My general plan for porting this to CUDA:

I couldn't get getblocktemplate to work, so I added CUDA directly to the qt-client.  
Let the CPU handle the candidate search, candidates get send to the GPU and the GPU acts as a co-processor that only does "ProbablePrimeChainTest" very fast. This makes it easier to have a proof-of-concept GPU miner soon.

What I did so far :

I started with the latest high performance client (hp4).

- Ported the code path in "ProbablePrimeChainTest" so that it runs with pure mpz_t like functions and minimised the number of functions that are needed. I compiled this successfully against the big integer library in https://github.com/dmatlack/cuda-rsa.

- Changed code in "MineProbablePrimeChain" so that candidates are collected for ProbablePrimeChainTest. I made sure to measure that candidate collection is much faster than testing them in "ProbablePrimeChainTest" and this will put a theoretical limit on the speed up. If I didn't do a mistake while measuring it, the upper limit is somwhere in the 100x-1000x range. So this should be a viable approach.

- Candidates are transfered to the GPU as hex char* strings. The big integer library in cuda-rsa has "mpz_set_str", but unfortunately that doesn't work on the GPU as of now. It might be better to produce the mpz format that the GPU needs directly on the CPU instead of parsing strings. Note: Later on, transfers to the GPU can be made async, so that CPU and GPU mine in tandem.

(I also changed the sieve of Erastothenes to sieve of Atkin - I had that code flying around anyway - , but that has nothing to do with the GPU.)

The hardest part is having a reliable big integer library for CUDA. Thats why there is no working GPU miner yet. The one in https://github.com/dmatlack/cuda-rsa needs more testing and someone could work on this independently from this project. It was the best library I could find for big integer+modulo arithmetic. If you know a better one let me know.

What I like: One way or another we will end up with a highly optimised big integer library for GPUs. That is something big on its own!

 Stop sending your money to someone claiming to give you early access - my guess, the first functional GPU miners won't be very fast anyway (e.g. single digit speedup compared to hp4). An unoptimised big integer library won't outperform GMP by much.
 
P.s. You should call the binary with "-printtoconsole -printmining -testnet" to debug. Also I'm developing this under linux 64bit with standard paths. I only updated the qtcreator project file, so if you have CUDA working under a 64bit linux you should be able to build the project with qtcreator.
70  Other / Beginners & Help / Re: Whitelist Requests (Want out of here?) on: July 19, 2013, 11:09:19 AM
Hi,

I also would like to be whitelisted. I'm working on a GPU/CUDA client for primecoins (XPM). I want to release my code now and want to make a new thread in the right place.  The amount of greed surrounding a possible GPU primecoin miner seems to be phenomenal.
Too many people seem to fall for "send me bitcoin and get early access"... I want to stop that bullshit as fast as possible.
71  Other / Beginners & Help / Re: how do you guys buy your coins? on: July 19, 2013, 10:25:07 AM
mtgox and bitstamp.
72  Other / Beginners & Help / Re: just bought bitcoins on the market at 77.44 USD on: July 19, 2013, 09:31:07 AM
It's hard to know where the bottom is, I'm buying small amounts here and there after bigger crashes. If you have more to invest, buy more if the price is again below 77$.
73  Other / Beginners & Help / Re: Turned 0.443 into 20BTC at satoshibet.com on: July 15, 2013, 01:56:30 PM
Now, you can start turning 20BTC into 0BTC or quit, which would be a wise thing to do.
74  Other / Beginners & Help / Re: when will 3D die? on: July 15, 2013, 01:46:29 PM
it will never die!
75  Other / Beginners & Help / Re: Alt-Coins on: July 15, 2013, 01:27:28 PM
This one seems to be one of the best modified clients for primecoins: https://github.com/mikaelh2/primecoin

I'm getting 2.5k primes on a intel quad core (Core 2 Quad) @ 3GHz, and had sub 1k figures with the official client
Pages: « 1 2 3 [4]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!