mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2021-12-27, 01:27   #1
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3·97 Posts
Default 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
ThomRuley is offline   Reply With Quote
Old 2021-12-27, 02:31   #2
swellman
 
swellman's Avatar
 
Jun 2012

13·269 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
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.
swellman is offline   Reply With Quote
Old 2021-12-27, 14:46   #3
ThomRuley
 
ThomRuley's Avatar
 
May 2003

4438 Posts
Default

Thanks, the speed on these curves is amazing.
ThomRuley is offline   Reply With Quote
Old 2021-12-27, 15:18   #4
swellman
 
swellman's Avatar
 
Jun 2012

13·269 Posts
Default

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.
swellman is offline   Reply With Quote
Old 2021-12-27, 15:27   #5
ThomRuley
 
ThomRuley's Avatar
 
May 2003

1001000112 Posts
Default

Quote:
Originally Posted by swellman View Post
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.
ThomRuley is offline   Reply With Quote
Old 2021-12-27, 16:03   #6
swellman
 
swellman's Avatar
 
Jun 2012

13·269 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
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.
swellman is offline   Reply With Quote
Old 2021-12-27, 16:04   #7
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3·97 Posts
Default

How much of a speed improvement would it be to move from yafu to gmp-ecm?
ThomRuley is offline   Reply With Quote
Old 2021-12-27, 16:11   #8
swellman
 
swellman's Avatar
 
Jun 2012

13·269 Posts
Default

Not much change in speed but you can stop/resume work, use batch input files with more ease, etc
swellman is offline   Reply With Quote
Old 2021-12-27, 19:20   #9
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

2×7×13×29 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
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.
VBCurtis is offline   Reply With Quote
Old 2021-12-28, 00:50   #10
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3×19×79 Posts
Default

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.
EdH is offline   Reply With Quote
Old 2021-12-28, 02:30   #11
ThomRuley
 
ThomRuley's Avatar
 
May 2003

3×97 Posts
Default

Quote:
Originally Posted by EdH View Post
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
ThomRuley is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
yafu ignoring yafu.ini chris2be8 YAFU 9 2022-02-17 17:52
Yafu batch running ThomRuley YAFU 15 2021-08-31 16:44
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
Running other programs while running Prime95. Neimanator PrimeNet 14 2013-08-10 20:15
Running YAFU 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

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

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