Pages:
Author

Topic: [ANN][GAP] Gapcoin - Prime Gap Search - New Math Algo - CPU / GPU - Zero Premine - page 83. (Read 287669 times)

hero member
Activity: 518
Merit: 500
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy

I'm just mining this for fun...lol....

An old AMD Phenom II x6 1055t I'm using does 25%~50% better than my AMD HD7970...lol

Seems like the gpu miner isn't fully optimized yet and still uses a good amount of the cpu also.

Increased frequency in VGA possible is achieved greater speed. Two vga card R9 280X (300 000pps) + 7970 (330 000pps) (frequencies 1150/1500) , and one R9270x - 200 000 pps (frequencies 1170/1400).

Tried 1150/1500 on the HD7970 and not much of a boost in performance, about 276k....

I get ~350k with the AMD Phenom II x6 1055t.

I just started mining this today. Is it better to pool mine or solo mine at the moment? I'm pool mining at the moment.
full member
Activity: 352
Merit: 100
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy

I'm just mining this for fun...lol....

An old AMD Phenom II x6 1055t I'm using does 25%~50% better than my AMD HD7970...lol

Seems like the gpu miner isn't fully optimized yet and still uses a good amount of the cpu also.

Increased frequency in VGA possible is achieved greater speed. Two vga card R9 280X (300 000pps) + 7970 (330 000pps) (frequencies 1150/1500) , and one R9270x - 200 000 pps (frequencies 1170/1400).
hero member
Activity: 518
Merit: 500
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy

I'm just mining this for fun...lol....

An old AMD Phenom II x6 1055t I'm using does 25%~50% better than my AMD HD7970...lol

Seems like the gpu miner isn't fully optimized yet and still uses a good amount of the cpu also.

I think lots of gpu speed issues may be cpu related, look at gpu usage to see if there's a bottleneck. Hopefully someone can improve on the cpu part of the gpu miner, even small improvements would likely bump speeds.

The GPU usage is between 80%~95% fluctuations and the cpu is around 50% usage. I'm mining the AMD cpu on a different rig than the gpu, just to see how they both do. The the gpu is teamed with a Core i5. Hopefully, the gpu miner will be optimized in the near. But for now, cpu mining is better at the moment...
legendary
Activity: 910
Merit: 1000
PHS 50% PoS - Stop mining start minting
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy

I'm just mining this for fun...lol....

An old AMD Phenom II x6 1055t I'm using does 25%~50% better than my AMD HD7970...lol

Seems like the gpu miner isn't fully optimized yet and still uses a good amount of the cpu also.

I think lots of gpu speed issues may be cpu related, look at gpu usage to see if there's a bottleneck. Hopefully someone can improve on the cpu part of the gpu miner, even small improvements would likely bump speeds.
hero member
Activity: 518
Merit: 500
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy

I'm just mining this for fun...lol....

An old AMD Phenom II x6 1055t I'm using does 25%~50% better than my AMD HD7970...lol

Seems like the gpu miner isn't fully optimized yet and still uses a good amount of the cpu also.
Sy
legendary
Activity: 1484
Merit: 1003
Bounty Detective
Seems like the dcct cpu miner performs better versus the gpu miner.

Yep but he said that the method he is using wouldn't really work on GPUs - guess that thought crossed a few minds Cheesy
hero member
Activity: 518
Merit: 500
Seems like the dcct cpu miner performs better versus the gpu miner. I can't get either gpu or cpu miner to use stratum, they both get a handle error. But the longpoll/getwork works fine for both.
hero member
Activity: 605
Merit: 500
Would be nice to see these links in the OP.. maybe you could add some links next to the accomplished bounties

http://primerecords.dk/primegaps/gaps20.htm

http://primerecords.dk/primegaps/gaps20all.htm
sr. member
Activity: 309
Merit: 250
Hi, Guys.
I'm actually an iOS developer, but for experiment decided to create a cuda miner in free time. I rewrite mpz's powmod function for cuda and ran it on my old 9600gt. The first results are 12x times faster then on CPU. On new cards we can get really great result.
The second step is to integrate into the miner. But as my video card on my pc, I have to compile the miner for windows. Which is quite difficult for me, as my usual development environment is Mac with Xcode.

So the question is: does someone have build ready visual studio solution with built libraries for windows? Or just explain how do you compile the miner on windows?

Trying to compile the miner for windows is not something on which I want to spend my time, so if no one responses, I will install ubuntu on my pc.

For windows compilation I use MinGW and MSYS.
This thread has a good explanation about the basic setup: https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479

It works! Thanks!  Grin

Anyone able to compile this for Windows and would share a link please, thanks.
full member
Activity: 177
Merit: 154
@j0nn9, is it possible to realize improvement of dcct for the GPU-miner?

I'm not sure whether it is possible.

I've been trying the last few days to get something running,
but since dcct's improvements are for the sieve, which currently runs on the cpu,
I didn't got a solution which was really faster than the current gpu miner.

The problem is, that Gapcoin's sieve probably can't be ported to the gpu without a huge speed reduction
I already tried only scanning the sieve on the gpu, splitting it in several pieces for each gpu thread,
but that reduced the overall speed about 1000x

it's just so that Memory is a bottleneck on the gpu.

But I'm not yet out of ideas  Wink
newbie
Activity: 35
Merit: 0
Hi, Guys.
I'm actually an iOS developer, but for experiment decided to create a cuda miner in free time. I rewrite mpz's powmod function for cuda and ran it on my old 9600gt. The first results are 12x times faster then on CPU. On new cards we can get really great result.
The second step is to integrate into the miner. But as my video card on my pc, I have to compile the miner for windows. Which is quite difficult for me, as my usual development environment is Mac with Xcode.

So the question is: does someone have build ready visual studio solution with built libraries for windows? Or just explain how do you compile the miner on windows?

Trying to compile the miner for windows is not something on which I want to spend my time, so if no one responses, I will install ubuntu on my pc.

For windows compilation I use MinGW and MSYS.
This thread has a good explanation about the basic setup: https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479

It works! Thanks!  Grin
full member
Activity: 177
Merit: 154
Hi, Guys.
I'm actually an iOS developer, but for experiment decided to create a cuda miner in free time. I rewrite mpz's powmod function for cuda and ran it on my old 9600gt. The first results are 12x times faster then on CPU. On new cards we can get really great result.
The second step is to integrate into the miner. But as my video card on my pc, I have to compile the miner for windows. Which is quite difficult for me, as my usual development environment is Mac with Xcode.

So the question is: does someone have build ready visual studio solution with built libraries for windows? Or just explain how do you compile the miner on windows?

Trying to compile the miner for windows is not something on which I want to spend my time, so if no one responses, I will install ubuntu on my pc.

For windows compilation I use MinGW and MSYS.
This thread has a good explanation about the basic setup: https://bitcointalksearch.org/topic/building-headless-bitcoin-and-bitcoin-qt-on-windows-149479
newbie
Activity: 1
Merit: 0
Hi, Guys.
I'm actually an iOS developer, but for experiment decided to create a cuda miner in free time. I rewrite mpz's powmod function for cuda and ran it on my old 9600gt. The first results are 12x times faster then on CPU. On new cards we can get really great result.
The second step is to integrate into the miner. But as my video card on my pc, I have to compile the miner for windows. Which is quite difficult for me, as my usual development environment is Mac with Xcode.

So the question is: does someone have build ready visual studio solution with built libraries for windows? Or just explain how do you compile the miner on windows?

Trying to compile the miner for windows is not something on which I want to spend my time, so if no one responses, I will install ubuntu on my pc.
newbie
Activity: 1
Merit: 0
The dcct's optimisation uses an idea to skip prime tests for a range of numbers between two primes if it is less than the gap minimum length. This works only for sequential searching.
hero member
Activity: 910
Merit: 1000
@j0nn9, is it possible to realize improvement of dcct for the GPU-miner?
sr. member
Activity: 392
Merit: 250
yay! it's finally raining in California!

{bump}
legendary
Activity: 2646
Merit: 1722
https://youtu.be/DsAVx0u9Cw4 ... Dr. WHO < KLF
Finally got around to updating the Gapcoin CPU Cloud Mining Guide...

Modded CPU-Miner (by dcct, about 10x faster): See: https://bitcointalksearch.org/topic/m.9526611

This post will be linked from the guide to provide instructions for updating, as follows:

~ After logging into your cloud instance:

Code:
sudo killall gapminer

Code:
sudo apt-get update

Code:
wget github.com/gapcoin/GapMiner/releases/download/dcct-mod/linux.zip

Code:
7z x linux.zip

Code:
screen -r

Code:
linux/64/gapminer -o http://mine3.gap.nonce-pool.com -p 4200 -u YOURusername.YOURworker -x YOURpassword --retries -1 -t 1

Gapcoin Cloud Mining Guide at: http://gapcoin.grn.cc

Thanks!
 
full member
Activity: 177
Merit: 154
Being physicist and unfortunately not so into math i watched this today (and the 20min more footage) about prime gaps and kinda liked it:
 
https://www.youtube.com/watch?v=vkMXdShDdtY

Some questions:

Is there also world records for primes that have a gap of 2 ? Can gapcoin find them or because of sieves it may pass primes (I am not sure i understand how sieves work)?

I am kinda excited with primes lately. What should i read to understand how gapcoin finds gaps? Does it need really advanced mathematics?

The algorithm:

The average length of a prime gap with the starting prime p, is log(p),
which means that the average prime gap size increases with lager primes.

Instead of the pure length, Gapcoin uses the merit of a prime gap,
which is the ratio of the gap's size to the average gap size.

Let p be the prime starting a prime gap, then m = gapsize/log(p) will be the merit of this prime gap.
Also a pseudo random number is calculated from p to provide finer difficulty adjustment.

Let rand(p) be a pseudo random function with 0 < rand(p) < 1
Then, for a prime gap starting at prime p with size s,
the difficulty will be s/log(p) + 2/log(p) ∗ rand(p),
where 2/log(p) is the average distance between a gap of size s and s + 2 (the next greater gap) in the proximity of p.

When it actually comes to mining, there are two additional fields added to the Blockheader, named “shift” and “adder”.

We will calculate the prime p as sha256(Blockheader) ∗ 2^shift + adder.
As an additional criterion the adder has to be smaller than 2^shift to avoid that the PoW could be reused.


Mining:

For mining, PoWCore uses a basic prime sieve with some slightly improvements:

The sieving steps:

Calculate the first n primes.
In the actual sieve we skip all even numbers,
because we want to only sieve the odd multiplies of each prime.

So, we create an additional set of primes and multiply each with two.
Make sure the start_index of the sieve is divisible by two.

Now calculate for each prime the first odd number in the sieve,
which is divisible by that prime (called pindex).

For each prime p: mark the pindex as composite,
add 2 ∗ p to pindex and mark it as composite,
 redo till we reach the end of the sieve.

For each remaining prime candidate,
check primality with the Fermat-pseudo-prime-test as it is faster than the Miller-Rabin-test
(Fermat is not as accurate as the Miller-Rabin and maybe some valid sieve results will not be accepted, but this should be very rare)

Now scan the remaining (pseudo) primes for a big prime gap.


Additional notes:

start–index can be hash ∗ 2^shift + [0, 2^shift)

max sieve size depends on start index, and is limited by (hash + 2^shift) - start_index.

shift can theoretically be in range [14, 2^16),
but nodes can choose to only accept shifts till a given amount (e.g. 512 for the main nodes)


dcct's improvements

We do not check every remaining prime candidate with the fermat test.
Instead we look how large the gap has to be to fit the required difficulty (max_length).

Then we determine the first prime in the sieve (called pstart).
Now we scan the prime candidates in the range (pstart, pstart + max_length).
We start at the position (pstart + max_length) and scan every prime candidate in reverse order till we reach pstart.

If we find a prime within the range (pstart, pstart + max_length)
we can skip all other prime candidates within that range and set pstart to that prime.

We redo the above process till we reach the end of the sieve.



So, to sum it up:

Gapcoin is researching into the opposite problem than the one of your video above,
but the max prime gap problem and the twin prime conjecture are closely related,
so, maybe Gapcoin's prime gaps could help somehow proving it.
full member
Activity: 352
Merit: 100
Being physicist and unfortunately not so into math i watched this today (and the 20min more footage) about prime gaps and kinda liked it:
 
https://www.youtube.com/watch?v=vkMXdShDdtY

Some questions:

Is there also world records for primes that have a gap of 2 ? Can gapcoin find them or because of sieves it may pass primes (I am not sure i understand how sieves work)?

I am kinda excited with primes lately. What should i read to understand how gapcoin finds gaps? Does it need really advanced mathematics?

gapcoin very interesting coin!

Like! Smiley
legendary
Activity: 1428
Merit: 1001
getmonero.org
Being physicist and unfortunately not so into math i watched this today (and the 20min more footage) about prime gaps and kinda liked it:
 
https://www.youtube.com/watch?v=vkMXdShDdtY

Some questions:

Is there also world records for primes that have a gap of 2 ? Can gapcoin find them or because of sieves it may pass primes (I am not sure i understand how sieves work)?

I am kinda excited with primes lately. What should i read to understand how gapcoin finds gaps? Does it need really advanced mathematics?
Pages:
Jump to: