mersenneforum.org  

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

Reply
 
Thread Tools
Old 2022-12-12, 21:06   #837
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,237 Posts
Default

Thanks.
rogue is offline   Reply With Quote
Old 2022-12-13, 13:35   #838
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

22×5×72 Posts
Default

Can you make it stop automatically once it prints out the q's when passing the -Q flag? Not having to worry about killing the sieve will make writing a script to orchestrate automated testing of q's easier.
Happy5214 is offline   Reply With Quote
Old 2022-12-13, 13:43   #839
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,237 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
Can you make it stop automatically once it prints out the q's when passing the -Q flag? Not having to worry about killing the sieve will make writing a script to orchestrate automated testing of q's easier.
Try using -A and passing an empty factor file with -I. I think that would work.
rogue is offline   Reply With Quote
Old 2022-12-13, 14:51   #840
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

11110101002 Posts
Default

Quote:
Originally Posted by rogue View Post
Try using -A and passing an empty factor file with -I. I think that would work.
It does not. The following invocation:

Code:
../../../bin/srsieve2cl -A -I /dev/null -i b2_n.boinc -Q
produces this:

Code:
srsieve2cl v1.6.6, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Read 0 factors from /dev/null which removed 0 terms.
Reading from /dev/null is an immediate EOF, and I also tested with an empty file in the same directory.
Happy5214 is offline   Reply With Quote
Old 2022-12-13, 14:59   #841
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

723710 Posts
Default

Create an empty file in the directory. Use that with -I.
rogue is offline   Reply With Quote
Old 2022-12-13, 16:10   #842
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

22×5×72 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
It does not. The following invocation:

Code:
../../../bin/srsieve2cl -A -I /dev/null -i b2_n.boinc -Q
produces this:

Code:
srsieve2cl v1.6.6, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Read 0 factors from /dev/null which removed 0 terms.
Reading from /dev/null is an immediate EOF, and I also tested with an empty file in the same directory.
Quote:
Originally Posted by rogue View Post
Create an empty file in the directory. Use that with -I.
Please re-read my post. This was the aforementioned second run with the file in the same directory:

Code:
$ ../../../bin/srsieve2cl -A -I blank_file -i b2_n.boinc -Q
srsieve2cl v1.6.6, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Read 0 factors from blank_file which removed 0 terms.

Last fiddled with by Happy5214 on 2022-12-13 at 16:12
Happy5214 is offline   Reply With Quote
Old 2022-12-13, 17:21   #843
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,237 Posts
Default

So the use of -A and -I doesn't work.

How about this?

srieve2cl -ifile.abcd -p1000000 -P1000100 -ofile.temp -Q

You can throw out file.temp after running this.

Last fiddled with by rogue on 2022-12-13 at 17:22
rogue is offline   Reply With Quote
Old 2022-12-13, 18:21   #844
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

22×5×72 Posts
Default

Quote:
Originally Posted by rogue View Post
So the use of -A and -I doesn't work.

How about this?

srieve2cl -ifile.abcd -p1000000 -P1000100 -ofile.temp -Q

You can throw out file.temp after running this.
The file is sieved to 1T already, but experimentation shows that the -P doesn't really matter much:

Code:
$ ../../../bin/srsieve2cl -i b2_n.boinc -P 5 -o /dev/null -Q  
srsieve2cl v1.6.6, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Must use generic sieving logic because -l was not specified for mutiple sequences
Sieving with generic logic for p >= 1000000000000
q =    2 with       5 subseq yields bs =  1116, gs =   224, work =     2239
a bunch more q's
q =    1 with       5 subseq yields bs =  1582, gs =   316, work =     3164
Split 5 base 2 sequences into 18 base 2^72 sequences.
Fatal Error:  pmin must be less than pmax
Again, note the use of /dev/null to toss the output (and the bolded typo).

I can work with this now. Another question I had is about the interplay between -q and -g. Is the best q (by speed, not score) going to be the fastest regardless of the value chosen for -g, allowing me to check for q, fix it, and check the -g values; or do I have to check all (reasonable) q/-g combinations within that 20% q score threshold, sort of like a 2×2 matrix?
Happy5214 is offline   Reply With Quote
Old 2022-12-13, 18:54   #845
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

7,237 Posts
Default

Some settings of -q will allow you to increase -g others will require you to decrease -g as -q can impact how much memory is needed by each kernel.

Last fiddled with by rogue on 2022-12-13 at 18:55
rogue is offline   Reply With Quote
Old 2022-12-13, 23:06   #846
ryanp
 
ryanp's Avatar
 
Jun 2012
Boulder, CO

23×3×19 Posts
Default

Another bug in srsieve2?

Code:
$ ./srsieve2 -P 4e14 -o out.txt -W 32 -s "11*2^n+1" -n 15e6 -N 25e6
srsieve2 v1.6.6, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic for p >= 3
Sieve started: 3 < p < 4e14 with 10000001 terms (15000000 < n < 25000000, k*2^n+1) (expecting 9673251 factors)
Sieving with single sequence c=1 logic for p >= 257
BASE_MULTIPLE = 30, POWER_RESIDUE_LCM = 720, LIMIT_BASE = 720
Fatal Error:  Expected 15 subsequences but 233 were created
ryanp is online now   Reply With Quote
Old 2022-12-14, 01:08   #847
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009
Not U. + S.A.

24×173 Posts
Default

I awakened very early this morning to find the latest srsieve2cl has caused a reboot. Not sure why. It may be in the system logs. I haven't looked yet.
storm5510 is offline   Reply With Quote
Reply

Thread Tools


All times are UTC. The time now is 11:49.


Thu Jun 8 11:49:08 UTC 2023 up 294 days, 9:17, 0 users, load averages: 1.09, 0.98, 0.95

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.

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