mersenneforum.org Do you use the breadth-first mode of GMP-ECM?
 Register FAQ Search Today's Posts Mark Forums Read

 View Poll Results: Do you use the breadth-first mode of GMP-ECM? Yes, frequently 1 3.70% Rarely 6 22.22% (Almost) never 11 40.74% The WHAT? 9 33.33% Voters: 27. You may not vote on this poll

 2011-01-24, 12:47 #1 akruppa     "Nancy" Aug 2002 Alexandria 2,467 Posts Do you use the breadth-first mode of GMP-ECM? Do you use the breadth-first mode of GMP-ECM?
 2011-01-24, 13:12 #2 ATH Einyen     Dec 2003 Denmark 303710 Posts You forgot the poll option "breadth-first mode ???" I had to read up on README to see what it was.
 2011-01-24, 13:33 #3 akruppa     "Nancy" Aug 2002 Alexandria 2,467 Posts If you consider yourself a regular GMP-ECM user and you've never heard of breadth-first mode, please vote! I'm toying with the thought of removing it, mostly because I don't understand what our main() function does, and wonder how many users would miss it.
2011-01-24, 13:45   #4
R.D. Silverman

Nov 2003

22·5·373 Posts

Quote:
 Originally Posted by akruppa If you consider yourself a regular GMP-ECM user and you've never heard of breadth-first mode, please vote! I'm toying with the thought of removing it, mostly because I don't understand what our main() function does, and wonder how many users would miss it.
I've never heard of it, but I can guess what it is. When doing
convolutions for products of (p_i - p_j) as p_i and p_j vary over
(different) arithmetic sequences, one can fix p_i and let p_j vary or
vice-versa.

I am guessing that one is referred to as depth-first, and the other

Is my guess close?

 2011-01-24, 13:46 #5 Karl M Johnson     Mar 2010 3·137 Posts From the tarball's README: Code: NOTE that in -b "breadth-first" mode, GMP-ECM reads all candidate numbers in the input stream and keeps them in memory, so if there are many large numbers to be tested, the memory requirement will increase noticeably.
 2011-01-24, 13:48 #6 akruppa     "Nancy" Aug 2002 Alexandria 1001101000112 Posts Not remotely. Breadth-first mode reads all input numbers into memory, then does one curve on each number in turn, up to the desired number of curves. May have a use if you want any one factor from a set of input numbers, but I don't seen much use beyond that. Most of its functionality could be replicated by a shell script that executes GMP-ECM repeatedly, doing one curve per input number per execution.
2011-01-24, 14:16   #7
R.D. Silverman

Nov 2003

746010 Posts

Quote:
 Originally Posted by akruppa Not remotely. Breadth-first mode reads all input numbers into memory, then does one curve on each number in turn, up to the desired number of curves. May have a use if you want any one factor from a set of input numbers, but I don't seen much use beyond that. Most of its functionality could be replicated by a shell script that executes GMP-ECM repeatedly, doing one curve per input number per execution.
Ah. Thanks for the clarification.

I agree that this feature does not seem all that useful.

 2011-01-24, 15:20 #8 axn     Jun 2003 10010111110002 Posts I've used it for brilliant number search.
 2011-01-24, 15:40 #9 bsquared     "Ben" Feb 2007 3,371 Posts I've never used it, but why remove functionality if it works?
 2011-01-24, 17:06 #10 akruppa     "Nancy" Aug 2002 Alexandria 2,467 Posts The main function is a mess of loops and gotos, I can't get it through my head. Every time I tried I was overcome by the thought "why can't I just bin this?"
 2011-01-24, 17:55 #11 chris2be8     Sep 2009 2,003 Posts I've used it to avoid having both tasks on a dual core machine running stage 1 and stage 2 at the same time. By running 1 task depth first and 1 breadth first I can get them to process the numbers in a different order. But I'm not sure if it gives any real speedup, even when the two tasks are on 1 CPU with hyperthreading. Chris K

 Similar Threads Thread Thread Starter Forum Replies Last Post wildrabbitt Information & Answers 10 2014-12-14 06:50 petrw1 Hardware 14 2009-03-25 13:17 Unregistered Software 12 2004-07-16 01:06 JuanTutors Hardware 6 2004-06-24 10:15 nbv4 Software 5 2002-09-05 06:15

All times are UTC. The time now is 11:33.

Mon Mar 1 11:33:50 UTC 2021 up 88 days, 7:45, 0 users, load averages: 1.07, 1.25, 1.29