mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2020-08-23, 20:47   #1
Ensigm
 
Aug 2020

2·3·19 Posts
Question How to make GMP-ECM skip stage 1 when feeding the prime95 results

I am basically following the method in this post, but it seems that GMP-ECM still runs stage 1 for a long time, which is already done by prime95, before doing stage 2 which it is good at. Does anyone know where the problem could be?


An example of the output:
Code:
GMP-ECM 7.0.4 [configured with GMP 6.2.0, --enable-asm-redc, --enable-openmp] [ECM]
Resume warning, skipping line with no '=' after: [Sun Aug 23 21:
Resuming ECM residue saved with Prime95 
Input number is 0x249C4CFAABA959C8705B51C84281F03253A8524BE39CFD8FDAA914BBF71E457C8C9F3417ABCF9C23E7F708B91D373F46A5EC530FB55C95FF69C98E03678FCAD94860EC429B1FBEB76854487C4BB6C655EDD9B94B38021E11A3BBDEC6F4EA30CA54DF94CD321F61 (248 digits)
Using B1=44000000, B2=4400000000, polynomial Dickson(6), sigma=0:2856607019773923
Step 1 took 170265ms
Step 2 took 3675ms
Also, how do I report the number of curves done using this hybrid method, when no factor has been found?

Last fiddled with by Ensigm on 2020-08-23 at 20:50
Ensigm is offline   Reply With Quote
Old 2020-08-24, 06:02   #2
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

3·1,579 Posts
Default

Try setting B1 of 1, and let B2 be chosen by GMP-ECM. It's pretty pointless to use GMP-ECM for stage 2 while restricting B2 to 100* B1.
VBCurtis is offline   Reply With Quote
Old 2020-08-24, 09:20   #3
Ensigm
 
Aug 2020

2·3·19 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Try setting B1 of 1, and let B2 be chosen by GMP-ECM. It's pretty pointless to use GMP-ECM for stage 2 while restricting B2 to 100* B1.

How to set B1=1 when resuming from the Stage 1 save file? I tried
Quote:
ecm -resume ecm_input.txt 1 > ecm_output.txt
but it just set B2=12. And I don't think stage 1 is skipped even if I let gmp-ecm automatically determine B2.
Ensigm is offline   Reply With Quote
Old 2020-08-24, 09:31   #4
Ensigm
 
Aug 2020

2·3·19 Posts
Default

It seems that my version of gmp-ecm can make use of the savefile produced by itself, but not that produced by prime95. When it reads the prime95 savefile, it is able to recognize N and SIGMA, but seems to ignore the fact that stage 1 was already done.

The file produced by prime95 has 3 fields: N, QX, and SIGMA;
The file produced by gmp-ecm has: METHOD=ECM, PARAM=0, SIGMA, B1, N, X, CHECKSUM, PROGRAM, Y=0x0, X0=0x0, Y0=0x0, WHO, and TIME.

Last fiddled with by Ensigm on 2020-08-24 at 09:39
Ensigm is offline   Reply With Quote
Old 2020-08-24, 11:00   #5
axn
 
axn's Avatar
 
Jun 2003

10011001101012 Posts
Default

Code:
 ecm -resume ecm_input.txt 44e6-44e6 > ecm_output.txt
Ask gmp-ecm to do stage 1 from 44e6 to 44e6 (or whatever the B1 limit was for P95 stage1 run), and it will correctly figure out the B2 and do it.
axn is offline   Reply With Quote
Old 2020-08-24, 13:35   #6
Ensigm
 
Aug 2020

7216 Posts
Default

Quote:
Originally Posted by axn View Post
Code:
 ecm -resume ecm_input.txt 44e6-44e6 > ecm_output.txt
Ask gmp-ecm to do stage 1 from 44e6 to 44e6 (or whatever the B1 limit was for P95 stage1 run), and it will correctly figure out the B2 and do it.

Thank you, this works.
Ensigm is offline   Reply With Quote
Old 2020-08-24, 13:38   #7
Ensigm
 
Aug 2020

2·3·19 Posts
Default How to report the number of curves done by GMP-ECM

Now the second question: how do I report number of curves done using this method, if no factor has been found?
Ensigm is offline   Reply With Quote
Old 2020-08-24, 14:23   #8
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

1CF016 Posts
Default

Quote:
Originally Posted by Ensigm View Post
Now the second question: how do I report number of curves done using this method, if no factor has been found?
Email me with the user id for CPU credit, exponent, curve counts and bounds
Prime95 is online now   Reply With Quote
Old 2020-08-24, 16:11   #9
Ensigm
 
Aug 2020

2×3×19 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Email me with the user id for CPU credit, exponent, curve counts and bounds

Thank you, but if there's not an automatic way then I'd rather not bother and waste the time of both of us. I don't have that much computing power to be worth doing it manually. Unless if I submit it like once half a year.

Last fiddled with by Ensigm on 2020-08-24 at 16:14
Ensigm is offline   Reply With Quote
Old 2020-08-24, 17:32   #10
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

24×463 Posts
Default

Yes, the few that do this kind of work, run 1000 curves or more and then email me.
Prime95 is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
feeding back results from Prime95 martinwilke1980 Operation Billion Digits 3 2017-11-17 07:34
GMP-ECM & Prime95 Stage 1 Files Gordon GMP-ECM 3 2016-01-08 12:44
I've forgotten how to make Prime95 pay Dubslow Software 16 2015-10-09 22:13
How to use prime95 for stage 1 & GMP-ECM for stage 2 Prime95 Lone Mersenne Hunters 111 2015-06-13 03:18
Stage 1 with mprime/prime95, stage 2 with GMP-ECM D. B. Staple Factoring 2 2007-12-14 00:21

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

Sun Apr 18 20:58:18 UTC 2021 up 10 days, 15:39, 1 user, load averages: 1.47, 1.72, 1.85

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.