mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2011-10-27, 02:35   #1
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default Quick TF Question

For a given bit level, how many factors does mfaktc test? How many are sieved out, (SievesPrimes=5000) and then how many are actually tested on the GPU?
Dubslow is offline   Reply With Quote
Old 2011-10-27, 04:04   #2
Christenson
 
Christenson's Avatar
 
Dec 2010
Monticello

5×359 Posts
Default

For a given mersenne exponent p, all factors will be primes of the form 2*k*p+1, for some k. You can calculate how many candidates that would be, given p and the bit levels.

The second thing you can do is to use the prime density function to estimate how many of those 2*k*p+1 are actually prime. SievePrimes indicates that the CPU ensured that the first SievePrimes primes do not factor the candidates passed to your GPU for checking to see if 2^p-1 mod 2*k*p+1 is in fact zero.

To a first order, the number of primes between 2^m and 2^m+1 is the integral from 2^m to 2^m+1 of 1/ln(x). That is, using a trapezoidal approximation, 2^m * [1/ln(2^m) + 1/ln(2^m+1)]/2.

Multiply this by the number of candidates/2^m to get the approximate number of factor candidates sent to the GPU.

If you want the exact number, mfaktc reports how many candidates it sends to the GPU for each class. You can do the division to see for yourself the large fraction that got sieved out.
Christenson is offline   Reply With Quote
Old 2011-10-27, 04:49   #3
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

Quote:
Originally Posted by Christenson View Post
For a given mersenne exponent p, all factors will be primes of the form 2*k*p+1, for some k. You can calculate how many candidates that would be, given p and the bit levels.

The second thing you can do is to use the prime density function to estimate how many of those 2*k*p+1 are actually prime. SievePrimes indicates that the CPU ensured that the first SievePrimes primes do not factor the candidates passed to your GPU for checking to see if 2^p-1 mod 2*k*p+1 is in fact zero.

To a first order, the number of primes between 2^m and 2^m+1 is the integral from 2^m to 2^m+1 of 1/ln(x). That is, using a trapezoidal approximation, 2^m * [1/ln(2^m) + 1/ln(2^m+1)]/2.

Multiply this by the number of candidates/2^m to get the approximate number of factor candidates sent to the GPU.

If you want the exact number, mfaktc reports how many candidates it sends to the GPU for each class. You can do the division to see for yourself the large fraction that got sieved out.
Where does it report that?
Edit: Candidates, right? That's per class?

Last fiddled with by Dubslow on 2011-10-27 at 04:57
Dubslow is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
A quick question Pegos Information & Answers 6 2016-08-11 14:39
Quick question about gmp-ecm usage Dubslow GMP-ECM 37 2016-07-27 07:37
Quick Question about assignments Dubslow PrimeNet 291 2011-11-17 11:50
Quick AffinityScramble question Smorg Hardware 0 2009-11-17 20:38
Quick p-1 question Unregistered Software 8 2006-10-13 23:35

All times are UTC. The time now is 15:09.


Fri Jul 7 15:09:23 UTC 2023 up 323 days, 12:37, 0 users, load averages: 1.00, 1.12, 1.14

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔