mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   mtsieve (https://www.mersenneforum.org/showthread.php?t=23042)

rebirther 2020-01-12 18:07

[QUOTE=rogue;534968](going off of memory here) I think this is the -fB option. Can you verify that it exists in the latest released version and if it does, if that is what you are looking for?[/QUOTE]


yes -fB and no its not working

rogue 2020-01-13 01:20

[QUOTE=rebirther;534969]yes -fB and no its not working[/QUOTE]

What do you mean by "not working"? Please be more specific.

Happy5214 2020-01-13 07:47

[QUOTE=rogue;535000]What do you mean by "not working"? Please be more specific.[/QUOTE]

If it's the same issue as before, I posted a fix at [URL]https://www.mersenneforum.org/showpost.php?p=524883&postcount=195[/URL]. It wasn't in SVN last time I checked.

rogue 2020-01-13 13:51

[QUOTE=Happy5214;535016]If it's the same issue as before, I posted a fix at [URL]https://www.mersenneforum.org/showpost.php?p=524883&postcount=195[/URL]. It wasn't in SVN last time I checked.[/QUOTE]

I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.

rogue 2020-01-13 21:23

[QUOTE=rogue;535029]I might have committed the source, but not posted a new build. I'll take a look as soon as I have a chance.[/QUOTE]

I have uploaded 1.9.6 to sourceforge. 1.9.5 is still available as I didn't have enough time to test the change in 1.9.6.
[LIST][*]Refactored logic for "single worker" and "rebuild" logic so they work more nicely together.[*]Fixed calculation of p/sec which is wrong after workers are recreated.[*]Reset factor stats whenever workers are created as the rate is inflated for lower p as far more terms are removed.[*]Fix issue with multiple threads which can cause program to hang.[*]Add support for ABC format to srsieve2.[/LIST]
srsieve now supports ABNP options for the file format. If they don't work as desired, please let me know. Option B is the one that generates a newpgen like header for BOINC. I think that ABC is the PRP format that you are looking for, but as I stated above, I haven't had time to test. I had made these changes months ago.

rebirther 2020-01-14 16:33

Thx rogue, still not working:


output:

[CODE]n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause[/CODE]
after trying to sieve the file it will abort all the time without an error.

rogue 2020-01-14 17:19

[QUOTE=rebirther;535110]Thx rogue, still not working:


output:

[CODE]n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause[/CODE]
after trying to sieve the file it will abort all the time without an error.[/QUOTE]

Hmm. Please PM me your pl_remain.txt file.

Happy5214 2020-01-15 14:52

I'm getting a segfault with srsieve2 from SVN:

[CODE]$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)[/CODE]

Generally, I have consistently been having issues with n ranges starting with 1.

rogue 2020-01-15 15:23

[QUOTE=Happy5214;535152]I'm getting a segfault with srsieve2 from SVN:

[CODE]$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)[/CODE]

Generally, I have consistently been having issues with n ranges starting with 1.[/QUOTE]

Both mtsieve 1.9.5 and 1.9.6 or just 1.9.6?

rogue 2020-01-15 19:22

[QUOTE=rebirther;535110]Thx rogue, still not working:

output:

[CODE]n:\sierp-base267>srsieve2 -n2501 -N10000 -P1e9 -spl_remain.txt -fB
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and vari
able k and n
Sieving with generic logic

n:\sierp-base267>pause[/CODE]
after trying to sieve the file it will abort all the time without an error.[/QUOTE]

Stupid error on my part. It will be fixed and posted later today.

rogue 2020-01-15 19:29

[QUOTE=Happy5214;535152]I'm getting a segfault with srsieve2 from SVN:

[CODE]$ ./srsieve2 -W 3 -n 1 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Segmentation fault (core dumped)[/CODE]

Generally, I have consistently been having issues with n ranges starting with 1.[/QUOTE]

The segfault is the same issue. I'm not certain why one just terminates without a segfault and the other does. For this range I now see this:

[code]
srsieve2 -W 3 -n 100 -N 1500000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 1499901 terms (100 < n < 1500000, k*2^n+c) (expecting 1449733 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^120 sequences.
Fatal Error: 963643*2^14263-1 mod 269 = 142
[/code]

I don't know what is causing that yet. Fortunately you can break it up into smaller ranges:

[code]
srsieve2 -W 3 -n 1 -N 200 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 200 terms (1 < n < 200, k*2^n+c) (expecting 193 factors)
Sequence 963643*2^n-1 removed as all terms have a factor
Fatal Error: All sequences have been removed

srsieve2 -W 3 -n 200 -N 5000 -P 1e9 -o t17_b2.prp -f B -s "963643*2^n-1"
srsieve2 v1.2, a program to find factors of k*b^n+c numbers for fixed b and variable k and n
Sieving with generic logic
Sieve started: 2 < p < 1e9 with 4801 terms (200 < n < 5000, k*2^n+c) (expecting 4640 factors)
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.
Sieving with generic logic
Split 1 base 2 sequence into 1 base 2^24 sequences.

CTRL-C accepted. Please wait for threads to complete.
Sieve interrupted at p=694848779.
Processor time: 21.72 sec. (0.39 sieving) (2.82 cores)
8 terms written to t17_b2.prp
Primes tested: 33000000. Factors found: 0. Remaining terms: 8. Time: 7.69 seconds.
[/code]

and eventually test the entire range. That is just a workaround. I still need to find the root cause of this issue and fix it.


All times are UTC. The time now is 22:33.

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