mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-03-30, 22:45   #89
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Can someone explain better what is this options for?

-B --baby METHOD Use METHOD for baby step mulmods.
-G --giant METHOD Use METHOD for giant step mulmods.
--ladder METHOD Use METHOD for ladder mulmods.

Is any of those methods faster or slower ( and in what cases)?
Depending on various things like number of ks, range of n, number of candidates, etc the different methods can be faster or slower. By default it checks all of them to see which is fastest for that file on startup.
henryzz is offline   Reply With Quote
Old 2013-03-30, 23:21   #90
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

That is great news, so always fastest method is selected :)
pepi37 is online now   Reply With Quote
Old 2013-03-31, 02:35   #91
kar_bon
 
kar_bon's Avatar
 
Mar 2006
Germany

2·1,531 Posts
Default

Quote:
Originally Posted by f1pokerspeed View Post
I wish there was a way that I could automatically run the sieve with a batch file that does all of the ranges for you.
You could try this:

To do:
- srsieve.exe is in the directory
- you have the rights to copy files and create dirs in here

Make a batch file named "run.bat" with this:
Code:
set /a num=1
set /a range_start=%2
set /a increment=%3
set /a range_end=%range_start%+increment

:next
md sieve%num%
copy input.txt sieve%num%
copy srsieve.exe sieve%num%
echo srsieve -f -q -G -n 1 -N 50000 -p %range_start% -P %range_end% input.txt >sieve%num%/run.bat

set /a num=%num%+1
set /a range_start=%range_start%+increment
set /a range_end=%range_end%+increment

if %num% LEQ %1 goto next

start "Sieving 1..." /Dsieve1 run.bat
start "Sieving 2..." /Dsieve2 run.bat
There's also an input-file with the values you want to sieve named "input.txt" like this
Code:
11*2^n-1
Call "run.bat" with 3 parameters:
1. number of cores/sieves you want to start at once
2. start-value of sieve (p-value in srsieve)
3. increment of the sieve-value

For example

run 2 1 1000000

will create 2 folders named "sieve1" and "sieve2", copy srsieve.exe and the input file in there and start each sieve.

After finished there're in each folder the "srfactors.txt" files with the found factors
Delete them with srfile.exe from one of the resulted "t17_b2.prp" (in this example).
Another batch would help here, too.

Some changes needed for sr(x)sieve.exe.
kar_bon is offline   Reply With Quote
Old 2013-03-31, 18:26   #92
f1pokerspeed
 
Jun 2012

6A16 Posts
Default

Thanks for the batch file kar_bon - I'll see if I can get it to work for sr(x)sieve and test it out.
f1pokerspeed is offline   Reply With Quote
Old 2013-03-31, 23:37   #93
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

32438 Posts
Default

I have small problem with removing factors.
I collect and put all factors in one file, and there is 941 factor.
But it is only removed 920?
Also when I add another 133 ( from another computer) it is only removed 114
I double-checked and no one sieve range was overlap, so it must be some other explanation.
Thanks for any idea...
pepi37 is online now   Reply With Quote
Old 2013-04-01, 00:39   #94
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

There is always the possibility of multiple factors being found for the same candidate.
henryzz is offline   Reply With Quote
Old 2013-04-01, 01:27   #95
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

Yes , it looks like you are right!
I found duplicates in factors...

Last fiddled with by pepi37 on 2013-04-01 at 01:42
pepi37 is online now   Reply With Quote
Old 2013-04-03, 19:16   #96
f1pokerspeed
 
Jun 2012

2×53 Posts
Default

ERROR: 4216856631*2^n-1: Square-free part 4216856631 of k too large.

I get this error when using sr2sieve. Is there any way of getting around this? It's frustrating because that is the smallest K in a batch of 90 that I have to sieve now - making me use sr1sieve, which is tough to manipulate for speed - it only sieves 1 K at a time...

Any suggestions?
f1pokerspeed is offline   Reply With Quote
Old 2013-04-03, 21:08   #97
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

Quote:
Originally Posted by f1pokerspeed View Post
ERROR: 4216856631*2^n-1: Square-free part 4216856631 of k too large.

I get this error when using sr2sieve. Is there any way of getting around this? It's frustrating because that is the smallest K in a batch of 90 that I have to sieve now - making me use sr1sieve, which is tough to manipulate for speed - it only sieves 1 K at a time...
Use -x.
rogue is online now   Reply With Quote
Old 2013-04-03, 22:28   #98
f1pokerspeed
 
Jun 2012

2·53 Posts
Default

N:\sr2sieve>sr2sieve -i sr_2.abcd -p 1e6 -P 1e9 -x
sr2sieve 1.8.11 -- A sieve for multiple sequences k*b^n+/-1 or b^n+/-k.
Read 752555 terms for 89 sequences from ABCD format file `sr_2.abcd'.
Split 89 base 2 sequences into 178 base 2^2 subsequences.
ERROR: 4216856631*2^n-1: Square-free part 4216856631 of k too large.

Still does not work... ideas?
f1pokerspeed is offline   Reply With Quote
Old 2013-04-03, 23:23   #99
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

Quote:
Originally Posted by f1pokerspeed View Post
N:\sr2sieve>sr2sieve -i sr_2.abcd -p 1e6 -P 1e9 -x
sr2sieve 1.8.11 -- A sieve for multiple sequences k*b^n+/-1 or b^n+/-k.
Read 752555 terms for 89 sequences from ABCD format file `sr_2.abcd'.
Split 89 base 2 sequences into 178 base 2^2 subsequences.
ERROR: 4216856631*2^n-1: Square-free part 4216856631 of k too large.

Still does not work... ideas?
My bad. That is enabled by default and cannot be disabled. Unfortunately it is not easy to fix the code to handle k larger than 31 bits and such a change could significantly impact performance.
rogue is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving twins with srsieve henryzz Twin Prime Search 0 2014-03-18 12:44
Intel announces multi-core enhancements for Haswell chips ixfd64 Hardware 8 2012-02-10 20:32
LLRnet enhancements kar_bon No Prime Left Behind 10 2008-03-28 11:21
TODO list and suggestions/comments/enhancements Greenbank Octoproth Search 2 2006-12-03 17:28
Suggestions for future enhancements Reboot It Software 16 2003-10-17 01:31

All times are UTC. The time now is 14:10.


Fri Jul 7 14:10:20 UTC 2023 up 323 days, 11:38, 0 users, load averages: 1.40, 1.35, 1.24

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.

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