mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   GMP-ECM (https://www.mersenneforum.org/forumdisplay.php?f=55)
-   -   Links to Precompiled GMP-ECM versions (https://www.mersenneforum.org/showthread.php?t=4087)

lorgix 2011-05-18 19:32

...Desktop\ecm63mpir230core2-64\ecm.exe -c 1000 1000000 <file.txt

It just says the file cannot be found.

I hardly ever use cmd...

Any help would be very much appreciated.

Karl M Johnson 2011-05-18 19:41

1.Create file called factor.bat in ecm63mpir230core2-64 folder, which is on your desktop.
2. Open it with notepad and paste the following in it:
[CODE]ecm.exe -c 25 2000000 800000000 <factorme.txt
pause[/CODE] and then save it.
3. Create a file called factorme.txt in the same folder, and paste numbers, which you want to factor, a number per line, and save it.
4. Launch the batch file to try to factor the number(s) with those parameters. Of course, you can always modify them as you wish.

smh 2011-05-18 19:52

This way you will loose the ouput if the cmd window is closed!!

You'd better use something like [CODE]ecm.exe -c 25 2000000 800000000 -inp number.txt > logfile.txt[/CODE]

lorgix 2011-05-18 19:54

As it turns out I don't know how to run a batch file either. But that would be good to learn too.

I'm probably missing something that is assumed to be obvious.

Karl M Johnson 2011-05-18 20:14

Select it and press enter:smile:

But [B]smh[/B] suggests a neat method - though I personally use something like
[code]ecm.exe -c 25 2000000 800000000 <factorme.txt >> log.txt
pause[/code]
This way, the new information is just appended, instead of replaced(when > is used).

However, this batch file can only be launched once, to launch N batches, where N is the number of cores you have, you'd need something more sophisticated(or easy?).

lorgix 2011-05-20 07:01

That just opens it in notepad again.

Maybe there's a better thread for me?

Karl M Johnson 2011-05-20 08:47

1 Attachment(s)
I think you have the real file extension hidden, so the factor.bat is actually a factor.bat.txt, which wont work.

I've made that batch file for you - it reads composites from factorme.txt, which must be in the same folder as ecm.exe, and prints anything found in log.txt. Now that you have the batch file, you can tweak B1 and B2 values using Notepad:smile:

Walter Nissen 2011-05-31 16:58

I've factored dozens of numbers between 100 and 200 digits using over
10000 curves of
32bit Intel 6.3 (SVN 1566 with MPIR 2.3.0) 386 KB ecm63_svn1566_win32_intel.zip 03/20/2011
and earlier versions .
I'm not using anything fancy like -base2 or -B2scale .
I just invoke ecm from a cmd box with a B1 , and let B2 default .
I find that step 1 ( which I take to be the same as stage 1 ) takes
roughly about 3 times as long as step 2 , yet step 2 produces
roughly about 3 times as many factors as step 1 .
The -v option says that ( using a larger B1 will require fewer curves
and also ) using a -B2scale of 2 or 3 will require fewer curves .
But will the # of factors per week increase ?
The machine is a Pentium 4 3.33 GHz with MMX and SSE1,2,3 .

wblipp 2011-06-02 05:10

[QUOTE=Walter Nissen;262723]The -v option says that ( using a larger B1 will require fewer curves and also ) using a -B2scale of 2 or 3 will require fewer curves . But will the # of factors per week increase ?[/QUOTE]

Doesn't -v also give some "time to run the curves" values after the curve finishes?

Walter Nissen 2011-06-03 02:40

[QUOTE=wblipp;262827]Doesn't -v also give some "time to run the curves" values after the curve finishes?[/QUOTE]

Excellent suggestion . Indeed , it does .
I'm collecting some estimates .

Thank you .

lorgix 2011-06-03 09:33

That reminds me.

Rule of thumb says 'spend as much time in stg2 as in stg1'.

But if I minimize the expected time to find a factor of a given size by adjusting the B2/B1-ratio, the result is far from that.

Did I misinterpret?


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.