mersenneforum.org Feature Request - Display count for -c
 Register FAQ Search Today's Posts Mark Forums Read

 2008-12-12, 01:02 #1 Jeff Gilchrist     Jun 2003 Ottawa, Canada 3×17×23 Posts Feature Request - Display count for -c I'm not sure if I'm missing something but is there any way to get gmp-ecm to display the count # if you are using -c? It would be nice if you use using say -c 500 for it to display #1/500 or something so users can see how far along the software is. Also, I found a problem with the Visual Studio make file. Is Brian Gladman still maintaining that (on his website he has the project files but they are an older version of GMP-ECM, while now it seems to be included in the source). Who should I contact to report that?
2008-12-12, 02:30   #2
joral

Mar 2008

5·11 Posts

Quote:
 Originally Posted by Jeff Gilchrist I'm not sure if I'm missing something but is there any way to get gmp-ecm to display the count # if you are using -c? It would be nice if you use using say -c 500 for it to display #1/500 or something so users can see how far along the software is.
What version are you using? On mine, gmp-ecm 6.2, I see something like

Run 2 out of 50:
Using B1=25000, B2=5031192, polynomial x^1, sigma=3023112407
Step 1 took 1000ms
Step 2 took 592ms

 2008-12-12, 07:16 #3 henryzz Just call me Henry     "David" Sep 2007 Liverpool (GMT/BST) 32·5·7·19 Posts are you outputing to file
2008-12-12, 08:05   #4
10metreh

Nov 2008

2×33×43 Posts

Quote:
 Originally Posted by Jeff Gilchrist I'm not sure if I'm missing something but is there any way to get gmp-ecm to display the count # if you are using -c? It would be nice if you use using say -c 500 for it to display #1/500 or something so users can see how far along the software is. Also, I found a problem with the Visual Studio make file. Is Brian Gladman still maintaining that (on his website he has the project files but they are an older version of GMP-ECM, while now it seems to be included in the source). Who should I contact to report that?
I agree, that would be nice. Joral, he means have it displayed in the command prompt, not the output.

2008-12-12, 10:52   #5
Jeff Gilchrist

Jun 2003

3×17×23 Posts

Quote:
 Originally Posted by joral What version are you using? On mine, gmp-ecm 6.2, I see something like Run 2 out of 50: Using B1=25000, B2=5031192, polynomial x^1, sigma=3023112407 Step 1 took 1000ms Step 2 took 592ms

I'm not seeing that, and I'm not outputting to file. My output looks like yours without the first line.

 2008-12-12, 11:47 #6 akruppa     "Nancy" Aug 2002 Alexandria 2,467 Posts Jeff, what command line are you using? I get e.g. Code: echo "2^16384+1" | ./ecm -c 2 1000 GMP-ECM 6.2.1 [powered by GMP 4.2.2] [ECM] Input number is 2^16384+1 (4933 digits) Using B1=1000, B2=51606, polynomial x^1, sigma=4225200769 Step 1 took 898ms Step 2 took 410ms Run 2 out of 2: Using B1=1000, B2=51606, polynomial x^1, sigma=3753078020 Step 1 took 899ms Step 2 took 413ms Note that there is no "Run ... out of ...:" on the first curve of a number, but there should be on all following curves. Alex
2008-12-12, 11:52   #7
Andi47

Oct 2004
Austria

2×17×73 Posts

Quote:
 Originally Posted by Jeff Gilchrist I'm using: GMP-ECM 6.2.1 [powered by GMP 4.2.4] I'm not seeing that, and I'm not outputting to file. My output looks like yours without the first line.
You should also output the results to a file. Otherwise you might regret it when ECM finds a lucky factor and the system crashes (e.g. due to a power outage) before you copy the factor to a file. You can use a command line like

echo "2^16384+1" | ./ecm -c 2 1000 >>F14.out

which would copy the output to a file named "F14.out". (and using >> instead of > appends to the file instead of overwriting it.)

2008-12-12, 23:03   #8
Jeff Gilchrist

Jun 2003

3·17·23 Posts

Quote:
 Originally Posted by akruppa Jeff, what command line are you using? I get e.g.
Ah, I think I just found a bug. I was using:
./ecm -c 2 -inp ecm.in 1000

where ecm.in contained: 2^16384+1. When I do that, it does not display "Run X out of Y:"

If I use the echo method like you suggested:
echo "2^16384+1" | ./ecm -c 2 1000

It does display the Run X out of Y:

So for some reason when using "-inp file" or also "< file" it does not display the Run #.

Jeff.

Last fiddled with by Jeff Gilchrist on 2008-12-12 at 23:03

 2008-12-12, 23:59 #9 akruppa     "Nancy" Aug 2002 Alexandria 2,467 Posts That's pretty strange. I'll see if I can find out what causes that behaviour. Alex
 2008-12-13, 11:55 #10 henryzz Just call me Henry     "David" Sep 2007 Liverpool (GMT/BST) 135418 Posts this isnt the famous need a new line at the end of the file or it only does one curve bug is it
2008-12-13, 11:59   #11
Jeff Gilchrist

Jun 2003

49516 Posts

Quote:
 Originally Posted by henryzz this isnt the famous need a new line at the end of the file or it only does one curve bug is it
It runs multiple curves for me, it just doesn't report the curve count for some reason.

 Similar Threads Thread Thread Starter Forum Replies Last Post tcharron Software 3 2018-10-03 20:08 JuanTutors Software 22 2013-03-11 19:23 JuanTutors Software 7 2008-10-30 00:19 Uncwilly Software 0 2008-03-06 21:07 JuanTutors Software 2 2005-07-04 22:02

All times are UTC. The time now is 15:21.

Wed May 25 15:21:13 UTC 2022 up 41 days, 13:22, 0 users, load averages: 1.70, 1.47, 1.32

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.

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