mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Lone Mersenne Hunters

Reply
 
Thread Tools
Old 2015-03-04, 01:33   #23
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default

Quote:
Originally Posted by bloodIce View Post
GMP-ECM could be a program of choice for small exponents. However, is it possible to report the ECM-curves to GIMPS?
Ask James Heinrich if he added a way to do this with the manual results form. If this becomes commonplace, James and I ought to be able to come up with some way to turn in results via the manual results page.

I can do it manually if you send me an email. I need your primenet userid, #curves run, exponent and bounds. Obviously, I don't want to do this very often, so send me a large number of curves -- not a few at a time.


As a bonus to people that use GMP-ECM for stage 2, the server calculates CPU credit by assuming prime95 performed the huge stage 2 bound.
Prime95 is offline   Reply With Quote
Old 2015-03-04, 08:55   #24
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

158210 Posts
Default

Quote:
Originally Posted by Prime95 View Post

I can do it manually if you send me an email.
I will probably do some more work with GMP-ECM,to get confortable with the program.
Will send you a reasonable number of curves, but tell me: will you accept the results "on trust" (much like we report no factor lines from mfaktc/o to the server), which means I would be writing a short message containing UID, exponent, B1, B2, number of curves, or you expect to receive some data actually produced by the program? In the latter case, which one?
lycorn is offline   Reply With Quote
Old 2015-03-04, 10:43   #25
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

32×131 Posts
Default

Maybe as an interim solution, trusted users could submit their GMP-ECM results in a mfaktc/CudaLucas style fashion?
Some suggestions:
Code:
Mxxxxx completed 1000 ECM curves, B1=11000000, B2=30114149530 [stage2 GMP-ECM 6.4.4 MPIR 2.6.0 win64]
Mxxxxx completed 1000 ECM curves, B1=11000000, B2=30114149530, D(12) [GMP-ECM_7.0_SVN2256_win64]
Mxxxxx completed 1000 ECM curves, B1=11000000, B2=30114149530 [step1 Prime95 28.5 step2 GMP-ECM 6.4.4]
This is of course sensitive to fraud, but so is Mfakto and CudaLucas. The next thing to do would be to add a parameter to GMP-ECM ("-gimps" for instance) that would print this line to screen/file.
VictordeHolland is offline   Reply With Quote
Old 2015-03-04, 14:31   #26
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17×487 Posts
Default

Quote:
Originally Posted by lycorn View Post
I will probably do some more work with GMP-ECM,to get confortable with the program.
Will send you a reasonable number of curves, but tell me: will you accept the results "on trust" (much like we report no factor lines from mfaktc/o to the server), which means I would be writing a short message containing UID, exponent, B1, B2, number of curves, or you expect to receive some data actually produced by the program? In the latter case, which one?
Yes, I accept results "on trust".
Prime95 is offline   Reply With Quote
Old 2015-03-04, 14:39   #27
R.D. Silverman
 
R.D. Silverman's Avatar
 
"Bob Silverman"
Nov 2003
North of Boston

5×17×89 Posts
Default

Quote:
Originally Posted by lycorn View Post
No. I´m using Prime95 for both stages.
Is there any GMP-ECM version for windows? And if yes, can you point me to the binaries?
I´m assuming GMP-ECM brings some advantage over Prime95 for stage 2, otherwise you wouldn´t have posed the question.
If you would bother to READ how step1/step 2 actually work, you might understand
what is involved.

Detailed explanations about how convolution based implementations of Step 2
have been written. Peter Montgomery's thesis is a superb source. An earlier
source would be my joint Math. Comp. paper with Peter on an FFT extension
to P-1.

Issues such as resource (i.e. memory) requirements are discussed, as are complexity
comparisons with earlier (non-convolution) implementations.
R.D. Silverman is offline   Reply With Quote
Old 2015-03-06, 23:27   #28
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

2×7×113 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Are you using GMP-ECM for stage 2?? Can you shed any light on what size exponents benefit from GMP-ECM stage 2?
I have done a couple of tests to compare Prime95 alone to Prime95 + GMP-ECM for different exponent sizes.
Find attached an Excel spreadsheet with a summary of the results.
I used for each exponent the B1 value currently prescribed in the Primenet Reports -> Detailed Reports -> ECM Progress page.
In the rightmost column there is, for each exponent, the expected time (in days) to find a factor using the combo Prime95 + GMP-ECM, and the percentage shown below is relative to using Prime95 alone.
For exponents larger than 40 K there is no point in using both programs, This is valid for the current level of the search (in terms of factor size), but in practical terms that is what really counts.
Attached Files
File Type: 7z Prime95_vs_GMP-ECM.7z (12.1 KB, 385 views)

Last fiddled with by lycorn on 2015-03-06 at 23:29
lycorn is offline   Reply With Quote
Old 2015-03-07, 02:52   #29
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3·5·41 Posts
Default

Quote:
Originally Posted by lycorn View Post
I have done a couple of tests to compare Prime95 alone to Prime95 + GMP-ECM for different exponent sizes.
Find attached an Excel spreadsheet with a summary of the results.
I used for each exponent the B1 value currently prescribed in the Primenet Reports -> Detailed Reports -> ECM Progress page.
In the rightmost column there is, for each exponent, the expected time (in days) to find a factor using the combo Prime95 + GMP-ECM, and the percentage shown below is relative to using Prime95 alone.
For exponents larger than 40 K there is no point in using both programs, This is valid for the current level of the search (in terms of factor size), but in practical terms that is what really counts.
You must optimize B2/B1 at each level. Like in the case of M40253, B2 should be something like a third of what you used. As it is now you are spending far too much time in stage2.
And to be fair you should increase B2 when using Prime95. Otherwise the comparison becomes unfair. You must test both with optimal parameters.
lorgix is offline   Reply With Quote
Old 2015-03-07, 12:05   #30
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

30568 Posts
Default

I don´t think this is a matter of "fairness". As Stage 2 performed with GMP-ECM is faster than with Prime95 and Stage 1 is faster with Prime95, I was trying to find, for the currents needs of the search, where to use Prime95 alone or a combination of the two in order to get tests done faster. I am in no way claiming that one program is "better" than the other. As for the values of B2 used, they are the defaults provided by the program, so I assume they are optimized. If I reduce the values, the number of curves would certainly be higher, and the smaller number of curves is, as far as I understood it, the main point in running GMP-ECM for Stage 2, nstead of Prime95.
There is one caveat, though: performing Stage 1 with P95 and Stage 2 with GMP-ECM is very cumbersome if you want to run, say, 100 or 200 curves on a single exponent. The switches -resume and -c are incompatible, which means the curves have to be run one by one, the relevant residue from P95 S1 manually fed to GMP-ECM, and the programs restarted. Unless I am missing some fundamental issue here, this overhead undermines to a large extent the advantage of running the combination of P95 and GMP-ECM.

Last fiddled with by lycorn on 2015-03-07 at 12:11
lycorn is offline   Reply With Quote
Old 2015-03-07, 14:41   #31
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by lycorn View Post
There is one caveat, though: performing Stage 1 with P95 and Stage 2 with GMP-ECM is very cumbersome if you want to run, say, 100 or 200 curves on a single exponent. The switches -resume and -c are incompatible, which means the curves have to be run one by one, the relevant residue from P95 S1 manually fed to GMP-ECM, and the programs restarted. Unless I am missing some fundamental issue here, this overhead undermines to a large extent the advantage of running the combination of P95 and GMP-ECM.
It is the easiest thing in the world to run a batch of curves like this.

Quote:
Originally Posted by undoc.txt
Alexander Kruppa wrote some code that allows the output of ECM stage 1 to
be passed to Paul Zimmermann's more efficient GMP-ECM stage 2. This program
is usually faster in stage 1. You can activate this feature by entering
GmpEcmHook=1
in prime.txt. Then select ECM bound #2 between 1 and bound #1. Results.txt
will contain data that can be fed to GMP-ECM for stage 2.
Run however many curves you want in Prime95 with the above setting. It'll run only the stage1 and save the residues for all the curves.

Then:
Quote:
Originally Posted by gmpecmhelp
-resume file resume residues from file, reads from stdin if file is "-"
The resume option works on a file full of residues (plus the original number and sigma). It'll go thru them one by one.

Last fiddled with by axn on 2015-03-07 at 14:43
axn is offline   Reply With Quote
Old 2015-03-07, 14:56   #32
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

61510 Posts
Default

Quote:
Originally Posted by lycorn View Post
I don´t think this is a matter of "fairness". As Stage 2 performed with GMP-ECM is faster than with Prime95 and Stage 1 is faster with Prime95, I was trying to find, for the currents needs of the search, where to use Prime95 alone or a combination of the two in order to get tests done faster. I am in no way claiming that one program is "better" than the other. As for the values of B2 used, they are the defaults provided by the program, so I assume they are optimized. If I reduce the values, the number of curves would certainly be higher, and the smaller number of curves is, as far as I understood it, the main point in running GMP-ECM for Stage 2, nstead of Prime95.
There is one caveat, though: performing Stage 1 with P95 and Stage 2 with GMP-ECM is very cumbersome if you want to run, say, 100 or 200 curves on a single exponent. The switches -resume and -c are incompatible, which means the curves have to be run one by one, the relevant residue from P95 S1 manually fed to GMP-ECM, and the programs restarted. Unless I am missing some fundamental issue here, this overhead undermines to a large extent the advantage of running the combination of P95 and GMP-ECM.
I meant that you should run each with optimized parameters for the most interesting comparison. And no, they are not optimized.
Read post #16 in this thread for how to optimize it. The theoretical background is in RDSs paper.

So, to be fair, you should use each program the best way possible. That is what I meant. For the other part; see what axn wrote in #31.
lorgix is offline   Reply With Quote
Old 2015-03-07, 16:26   #33
lycorn
 
lycorn's Avatar
 
"GIMFS"
Sep 2002
Oeiras, Portugal

2×7×113 Posts
Default

Thanks very much you both for your answers.

Quote:
Originally Posted by axn View Post
Then:
The resume option works on a file full of residues (plus the original number and sigma). It'll go thru them one by one.
The fundamental thing I was missing was that GMP-ECM goes through the file packed with P95 residues without having to specify the number of curves...

@lorgix: As for the optimization, I´ll have a look at it, but yes, I got your point.
lycorn is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GMP-ECM & Prime95 Stage 1 Files Gordon GMP-ECM 3 2016-01-08 12:44
Stage 1 with mprime/prime95, stage 2 with GMP-ECM D. B. Staple Factoring 2 2007-12-14 00:21
Need help to run stage 1 and stage 2 separately jasong GMP-ECM 9 2007-10-25 22:32
P4 Prescott - 31 Stage Pipeline ? Bad news for Prime95? Angular Hardware 18 2004-11-15 07:04
Stage 1 and stage 2 tests missing Matthias C. Noc PrimeNet 5 2004-08-25 15:42

All times are UTC. The time now is 13:19.


Fri Jul 7 13:19:38 UTC 2023 up 323 days, 10:48, 0 users, load averages: 1.35, 1.30, 1.19

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.

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