mersenneforum.org > YAFU Running ECM on YAFU
 Register FAQ Search Today's Posts Mark Forums Read

 2021-12-27, 01:27 #1 ThomRuley     May 2003 3·97 Posts Running ECM on YAFU I just started using YAFU to run ECM on large composites for the OPN search. I really like the speed but I did have one question. While looking through the available flags the readme file said I could set the B1 and B2 values as desired. I tried to set the B1 to 50K after stopping a factorization in YAFU, and then tried to restart at the 50K B1 bound using yafu "factor(number)" -B1ecm 50000 The program started from the very beginning of the factorization, repeating all the earlier steps. Is there a way to get YAFU to start at say, ECM with a B1 of 50K? Thanks
2021-12-27, 02:31   #2
swellman

Jun 2012

13·269 Posts

Quote:
 Originally Posted by ThomRuley I just started using YAFU to run ECM on large composites for the OPN search. I really like the speed but I did have one question. While looking through the available flags the readme file said I could set the B1 and B2 values as desired. I tried to set the B1 to 50K after stopping a factorization in YAFU, and then tried to restart at the 50K B1 bound using yafu "factor(number)" -B1ecm 50000 The program started from the very beginning of the factorization, repeating all the earlier steps. Is there a way to get YAFU to start at say, ECM with a B1 of 50K? Thanks
Try

Code:
yafu “ecm(number, # of curves)” -v -B1ecm 50000
Also note that you can perform ECM multithreaded with yafu - open yafu.ini, change the value of “threads=“ to however many threads you want to run in parallel, save and close yafu.ini. Then use the above invocation line.

 2021-12-27, 14:46 #3 ThomRuley     May 2003 4438 Posts Thanks, the speed on these curves is amazing.
 2021-12-27, 15:18 #4 swellman     Jun 2012 13·269 Posts If you want to makes things more seamless, try WraithX’s python scrpit for GMP-ECM. You can find the latest release in post 109 of this thread: https://www.mersenneforum.org/showth...=15508&page=10 You need to install Python 2 and 3 on your system before running it - Google for the download/setup of both python versions.
2021-12-27, 15:27   #5
ThomRuley

May 2003

1001000112 Posts

Quote:
 Originally Posted by swellman If you want to makes things more seamless, try WraithX’s python scrpit for GMP-ECM. You can find the latest release in post 109 of this thread: https://www.mersenneforum.org/showth...=15508&page=10 You need to install Python 2 and 3 on your system before running it - Google for the download/setup of both python versions.
Do I need the GMP-ECM files first? I've been having a heck of a time trying to find a working copy of those files.

2021-12-27, 16:03   #6
swellman

Jun 2012

13·269 Posts

Quote:
 Originally Posted by ThomRuley Do I need the GMP-ECM files first? I've been having a heck of a time trying to find a working copy of those files.
If you can run ECM on Yafu then you must already have ecm.exe on your system - look in the yafu.ini file to see where Yafu grabs the executable file when you call the ECM() function.

You can copy and move the standalone ecm.exe to wherever you set up the python script for GMP-ECM. It’s a small self-contained file in Windows.

 2021-12-27, 16:04 #7 ThomRuley     May 2003 3·97 Posts How much of a speed improvement would it be to move from yafu to gmp-ecm?
 2021-12-27, 16:11 #8 swellman     Jun 2012 13·269 Posts Not much change in speed but you can stop/resume work, use batch input files with more ease, etc
2021-12-27, 19:20   #9
VBCurtis

"Curtis"
Feb 2005
Riverside, CA

2×7×13×29 Posts

Quote:
 Originally Posted by ThomRuley How much of a speed improvement would it be to move from yafu to gmp-ecm?
Yafu is using GMP-ECM, so none.
Yafu is just a convenient wrapper to call the ecm.exe program, which is GMP-ECM.

 2021-12-28, 00:50 #10 EdH     "Ed Hall" Dec 2009 Adirondack Mtns 3×19×79 Posts YAFU 1 had a built-in version of ECM that was used if GMP-ECM wasn't found. Does YAFU 2 have the same? If so, the package GMP-ECM may not actually be being called. YAFU 1 used to tell you if it didn't find the GMP-ECM version. Is any such message being displayed? And, if YAFU 2 doesn't have the built-in ECM anymore, I'd like to know that, as well.
2021-12-28, 02:30   #11
ThomRuley

May 2003

3×97 Posts

Quote:
 Originally Posted by EdH YAFU 1 had a built-in version of ECM that was used if GMP-ECM wasn't found. Does YAFU 2 have the same? If so, the package GMP-ECM may not actually be being called. YAFU 1 used to tell you if it didn't find the GMP-ECM version. Is any such message being displayed? And, if YAFU 2 doesn't have the built-in ECM anymore, I'd like to know that, as well.
It appears that Yafu 2 also has its own built-in version of ecm. While yafu has been running ecm curves (quite nicely I might add), I did a search of my entire hard drive for a separate ecm executable file. Nothing came up on the search. Also, the paths I found in yafu.ini led to nowhere and did not seem to affect the ECM.

Last fiddled with by ThomRuley on 2021-12-28 at 02:31

 Similar Threads Thread Thread Starter Forum Replies Last Post chris2be8 YAFU 9 2022-02-17 17:52 ThomRuley YAFU 15 2021-08-31 16:44 EdH YAFU 8 2018-03-14 17:22 Neimanator PrimeNet 14 2013-08-10 20:15 lorgix YAFU 9 2012-03-28 03:37

All times are UTC. The time now is 06:23.

Thu May 19 06:23:21 UTC 2022 up 35 days, 4:24, 0 users, load averages: 1.10, 1.36, 1.33