mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2023-03-29, 17:00   #1090
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

302710 Posts
Default

I use p/sec as a relative speed indicator. On my aging i7 hardware, it will run between 500K and 650K with 7 threads. I have tried 8, but the Windows GUI gets sluggish at times. It is fine at 7. Of course, this throughput depends on how large the series is. There are 36 k's in the series I am running now for CRUS. A smaller series means a little faster. It would be nice if srsieve2 could run faster, but it would need to maintain the stability it has now. This is where the "not broken, don't fix" idea comes from.
storm5510 is offline   Reply With Quote
Old 2023-04-03, 01:01   #1091
Citrix
 
Citrix's Avatar
 
Jun 2003

163110 Posts
Default

For version 2_4.0 I am getting

Code:
twinsieve.exe -k2 -K1000000 -n1000000 -r -b2 -p3 -P10e14
twinsieve v1.3, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 3 < p < 1e15 with 499999 terms (2 < k < 1000000, k*2^1000000) (expecting 484095 factors)
  p=0, 0.000 p/sec, no factors found
Am I doing something wrong?
Thanks
Citrix is offline   Reply With Quote
Old 2023-04-03, 08:57   #1092
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

622510 Posts
Default

Quote:
Originally Posted by Citrix View Post
For version 2_4.0 I am getting

Code:
twinsieve.exe -k2 -K1000000 -n1000000 -r -b2 -p3 -P10e14
twinsieve v1.3, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 3 < p < 1e15 with 499999 terms (2 < k < 1000000, k*2^1000000) (expecting 484095 factors)
  p=0, 0.000 p/sec, no factors found
Am I doing something wrong?
Thanks
You are using an old buggy version. Hopefully an update should solve your issue.
henryzz is offline   Reply With Quote
Old 2023-04-03, 12:05   #1093
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

164678 Posts
Default

Quote:
Originally Posted by Citrix View Post
For version 2_4.0 I am getting

Code:
twinsieve.exe -k2 -K1000000 -n1000000 -r -b2 -p3 -P10e14
twinsieve v1.3, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 3 < p < 1e15 with 499999 terms (2 < k < 1000000, k*2^1000000) (expecting 484095 factors)
  p=0, 0.000 p/sec, no factors found
Am I doing something wrong?
Thanks
This was fixed in twinsieve 1.4. The current version is 1.6.
rogue is offline   Reply With Quote
Old 2023-04-03, 13:34   #1094
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

33×277 Posts
Default

Quote:
Originally Posted by Citrix View Post
Here is the simplest pseudocode
1. Get n from command line and classes to be tested (generally +1 or -1 or both); (if n is 2 all primes need to be tested and we do not need to filter as all primes are odd; 2 is the default value)
2. The location where il_PrimeList is initialized with primes we can insert the following lines of code to filter the primes.
(p is current prime)

Code:
while (prime<max)
{
if (n>2 && (p%n==+1 || p%n==-1)) {Enter this prime in the array}
else {skip this prime and go to next prime from iterator}
}
3. p%n can be calculated faster for certain n values (ex. n=2^x)- though this might not provide any significant speed up. I will let you decide.
Is "n" the only value to be specified on the command line? I cannot change where the il_PrimeList is populated. I would have to eliminate in TestMegaPrimeChunk(). For the GPU the kernel itself would need to ignore.
rogue is offline   Reply With Quote
Old 2023-04-04, 02:05   #1095
Citrix
 
Citrix's Avatar
 
Jun 2003

7×233 Posts
Default

Quote:
Originally Posted by rogue View Post
This was fixed in twinsieve 1.4. The current version is 1.6.
Code:
twinsieve.exe -W16 -k2 -K1000000 -n1000000 -r -b2 -p3 -P10e14 -fA -t1 -r
twinsieve v1.6, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 3 < p < 1e15 with 2 terms (3 < k < 999999, k*2^1000000) (expecting 2 factors)
Increasing worksize to 80000 since each chunk is tested in less than a second
Increasing worksize to 10000000 since each chunk is tested in less than a second
Increasing worksize to 50000000 since each chunk is tested in less than a second
Decreasing worksize to 25000000 since each chunk needs more than 5 seconds to test
  p=82453759727, 57.39M p/sec, 1 factors found at 180 sec per factor (last 1 min), 0.0% done. ETC 2023-04-12 17:16

CTRL-C accepted.  Threads will stop after sieving to 158741299859
Sieve interrupted at p=160495427809.
CPU time: 410.95 sec. (21.41 sieving) (4.20 cores)
Fatal Error:  Something is wrong.  Counted terms (0) != expected terms (1)
How does this need to be fixed?
Citrix is offline   Reply With Quote
Old 2023-04-04, 02:13   #1096
Citrix
 
Citrix's Avatar
 
Jun 2003

163110 Posts
Default

Quote:
Originally Posted by rogue View Post
Is "n" the only value to be specified on the command line? I cannot change where the il_PrimeList is populated. I would have to eliminate in TestMegaPrimeChunk(). For the GPU the kernel itself would need to ignore.
The value of N and possible classes need to be specified in the command line. If possible can we allow multiple arbitrary number of classes ex. -f{N,a,b,c,d...}. So we allow p%N=a or b or c or d

You can eliminate in TestMegaPrimeChunk() or wherever you think it would be appropriate.
Citrix is offline   Reply With Quote
Old 2023-04-04, 12:36   #1097
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

33×277 Posts
Default

Quote:
Originally Posted by Citrix View Post
Code:
twinsieve.exe -W16 -k2 -K1000000 -n1000000 -r -b2 -p3 -P10e14 -fA -t1 -r
twinsieve v1.6, a program to find factors of k*b^n+1/-1 numbers for fixed b and n and variable k
Sieve started: 3 < p < 1e15 with 2 terms (3 < k < 999999, k*2^1000000) (expecting 2 factors)
Increasing worksize to 80000 since each chunk is tested in less than a second
Increasing worksize to 10000000 since each chunk is tested in less than a second
Increasing worksize to 50000000 since each chunk is tested in less than a second
Decreasing worksize to 25000000 since each chunk needs more than 5 seconds to test
  p=82453759727, 57.39M p/sec, 1 factors found at 180 sec per factor (last 1 min), 0.0% done. ETC 2023-04-12 17:16

CTRL-C accepted.  Threads will stop after sieving to 158741299859
Sieve interrupted at p=160495427809.
CPU time: 410.95 sec. (21.41 sieving) (4.20 cores)
Fatal Error:  Something is wrong.  Counted terms (0) != expected terms (1)
How does this need to be fixed?
For base 2, even k are already removed, so you don't need -r. I broke this in 1.6. I will fix the code. I think I should remove -r and do that automatically. Thoughts?
rogue is offline   Reply With Quote
Old 2023-04-04, 15:57   #1098
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

302710 Posts
Default

srsieve2 uses values of n and fbncsieve uses values of k.

I don't believe this is a 1-to-1 relationship. So, what is the conversion value for n to k?
storm5510 is offline   Reply With Quote
Old 2023-04-04, 17:16   #1099
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

164678 Posts
Default

Quote:
Originally Posted by storm5510 View Post
srsieve2 uses values of n and fbncsieve uses values of k.

I don't believe this is a 1-to-1 relationship. So, what is the conversion value for n to k?
i don't understand the question.
rogue is offline   Reply With Quote
Old 2023-04-04, 18:18   #1100
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Oceanus Procellarum

3·1,009 Posts
Default

Quote:
Originally Posted by rogue View Post
i don't understand the question.
You don't understand the question. OK. I will make it simpler.

Is k=1e6 the same as n=1e6?
storm5510 is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 20:21.


Thu Sep 28 20:21:03 UTC 2023 up 15 days, 18:03, 0 users, load averages: 1.09, 1.31, 1.37

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.

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