mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing > GpuOwl

Reply
 
Thread Tools
Old 2020-10-02, 15:12   #34
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

340710 Posts
Default

P-1 and ECM are very different.

P-1 with given bounds will always find the factor(s) that meet the criteria of being within those bounds.
ECM bounds constrain the size of the factor found, but do not determine if a particular factor is found or not on that run.

P-1 with larger bounds is a continuation of P-1 with smaller bounds. If you have the savefile from a previous P-1 run and wish to extend the bounds, Prime95 will just need to run the portion between the old bound and the new bound.
James Heinrich is online now   Reply With Quote
Old 2020-10-02, 15:37   #35
Ensigm
 
Aug 2020

11410 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
P-1 with larger bounds is a continuation of P-1 with smaller bounds. If you have the savefile from a previous P-1 run and wish to extend the bounds, Prime95 will just need to run the portion between the old bound and the new bound.

My naive question: when utilizing the save file, is it only possible to extend Stage 2, or is it possible to extend Stage 1 and Stage 2 at the same time?
Ensigm is offline   Reply With Quote
Old 2020-10-02, 15:52   #36
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

3,407 Posts
Default

Quote:
Originally Posted by Ensigm View Post
My naive question: when utilizing the save file, is it only possible to extend Stage 2, or is it possible to extend Stage 1 and Stage 2 at the same time?
Stage 1 can be extended, stage 2 will need to be restarted if B1 has been extended.
James Heinrich is online now   Reply With Quote
Old 2020-10-02, 17:15   #37
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

32·7·31 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
P-1 and ECM are very different.

P-1 with given bounds will always find the factor(s) that meet the criteria of being within those bounds.

ECM bounds constrain the size of the factor found, but do not determine if a particular factor is found or not on that run.

I am not sure I follow the part in bold above. Consider the following:

Quote:
M83621 has a factor: 350415918423517661715474499722683369441 (ECM curve 1, B1=1000000, B2=100000000)
I found this a while back. Clearly, the factor is way outside the bounds. It is pretty obvious bounds in ECM do not work the same as they do in P-1. So, how do they work?
storm5510 is offline   Reply With Quote
Old 2020-10-02, 17:18   #38
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

2·3·281 Posts
Default

Quote:
Originally Posted by storm5510 View Post
...
It is pretty obvious bounds in ECM do not work the same as they do in P-1. So, how do they work?
Wikipedia is your friend
S485122 is offline   Reply With Quote
Old 2020-10-02, 17:21   #39
James Heinrich
 
James Heinrich's Avatar
 
"James Heinrich"
May 2004
ex-Northern Ontario

3,407 Posts
Default

Quote:
Originally Posted by storm5510 View Post
bounds in ECM do not work the same as they do in P-1. So, how do they work?
It is beyond my mathability to explain (or understand). Wiki if you want to try.
In a crude analogy, it's something akin to picking a random card from a specific deck of cards (bounds) -- if you're lucky it might be the Ace of Spades (you find a factor) but you can pull 50 other cards (ECM curves run) from the same deck and not find a factor.
James Heinrich is online now   Reply With Quote
Old 2020-10-02, 17:32   #40
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

31×173 Posts
Default

Quote:
Originally Posted by storm5510 View Post
I am not sure I follow the part in bold above. Consider the following:

I found this a while back. Clearly, the factor is way outside the bounds. It is pretty obvious bounds in ECM do not work the same as they do in P-1. So, how do they work?
It is quite routine in P-1 to find factors that are much larger than B1, B2, or B1 x B2 x 2p. Take a look at the test candidates, factors, and bounds here. B1 needs to cover most of the factors of k in f=2kp+1, and B2 the largest factor of k. See https://www.mersenne.ca/exponent/502000027 for its k's factors and its minimum bounds as an example.

Last fiddled with by kriesel on 2020-10-02 at 17:36
kriesel is offline   Reply With Quote
Old 2020-10-02, 17:45   #41
kriesel
 
kriesel's Avatar
 
"TF79LL86GIMPS96gpu17"
Mar 2017
US midwest

31×173 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
If you have the savefile from a previous P-1 run and wish to extend the bounds, Prime95 will just need to run the portion between the old bound and the new bound.
All well and good, if you have the prime95 stage 1 save file and the prime95 ram and horsepower. But if someone else did the first P-1, generally there's no access to the save files. And they would be no good in gpuowl anyway, both because of file incompatibility, between applications, and because gpuowl does not support P-1 run extension. (Same applies to CUDAPm1, but this is a gpuowl subforum thread.)

Last fiddled with by kriesel on 2020-10-02 at 17:46
kriesel is offline   Reply With Quote
Old 2020-10-02, 17:47   #42
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

32·7·31 Posts
Default

Quote:
Originally Posted by James Heinrich View Post
It is beyond my mathability to explain (or understand). Wiki if you want to try.
In a crude analogy, it's something akin to picking a random card from a specific deck of cards (bounds) -- if you're lucky it might be the Ace of Spades (you find a factor) but you can pull 50 other cards (ECM curves run) from the same deck and not find a factor.
I looked at the link. It only took about a half-second to sail way over my head. I do not have that skill.

The deck of cards analogy is based on random chance. I believe what I am unable to grasp is how a small bound produces such a large factor. There must be some other mathematical function going on.
storm5510 is offline   Reply With Quote
Old 2020-10-02, 22:24   #43
Aramis Wyler
 
Aramis Wyler's Avatar
 
"Bill Staffen"
Jan 2013
Pittsburgh, PA, USA

23·53 Posts
Default

Lord knows that I am not a mathematician - I grew up with everyone telling me how good at math I was, and how impressed they were, and then I went to college and met people who are actually good at math. As a computer science major, I was introduced to the bare minimum of mathematical theory that I could take and still complete the degree, so you can take all of the following with a grain of salt. It is somewhat more accurate than the deck of cards analogy.

https://upload.wikimedia.org/wikiped..._animation.gif

Here we have a view of the plane of the ecliptic, from the perspective of the solar orbit around the galactic core. The little moving dot is Haley's comet. The planets and Haley's comet are all orbiting the sun on elliptic curves, and are at any given point closer to or farther away from the sun. The numbers for the ECM are not bounds the way bookends are bounds - they describe the shape of the curve from nearly round like the planetary orbits to very sharp like Haley's comet orbit here. They also describe what I'm going to call the comet's perihelion, or the location when it is at it's closest point to the sun. So what you have here are a couple of small numbers (and your target number) from which can be derived the GCD (the perihelion) and the shape of the curve (narrow or broad).

The numbers they are testing are points on the elliptic curve. They might be small if they are points on the curve near the perihelion there, or very large if they are at the aphelion point. The bigger the curve you have the more likely your orbit is to intersect a factor, but it is only so likely, which is why the deck of card analogy, for practical purposes, is sufficient most of the time. Even a tiny difference in the number can affect the shape of the curve and send your little comet to different parts of the mathematical space where it might intersect a factor.

Last fiddled with by Aramis Wyler on 2020-10-02 at 22:38
Aramis Wyler is offline   Reply With Quote
Old 2020-10-03, 00:04   #44
storm5510
Random Account
 
storm5510's Avatar
 
Aug 2009

36418 Posts
Default

Quote:
Originally Posted by Aramis Wyler View Post
Lord knows that I am not a mathematician - I grew up with everyone telling me how good at math I was, and how impressed they were, and then I went to college and met people who are actually good at math. As a computer science major, I was introduced to the bare minimum of mathematical theory that I could take and still complete the degree, so you can take all of the following with a grain of salt. It is somewhat more accurate than the deck of cards analogy.

https://upload.wikimedia.org/wikiped..._animation.gif

Here we have a view of the plane of the ecliptic, from the perspective of the solar orbit around the galactic core. The little moving dot is Haley's comet. The planets and Haley's comet are all orbiting the sun on elliptic curves, and are at any given point closer to or farther away from the sun. The numbers for the ECM are not bounds the way bookends are bounds - they describe the shape of the curve from nearly round like the planetary orbits to very sharp like Haley's comet orbit here. They also describe what I'm going to call the comet's perihelion, or the location when it is at it's closest point to the sun. So what you have here are a couple of small numbers (and your target number) from which can be derived the GCD (the perihelion) and the shape of the curve (narrow or broad).

The numbers they are testing are points on the elliptic curve. They might be small if they are points on the curve near the perihelion there, or very large if they are at the aphelion point. The bigger the curve you have the more likely your orbit is to intersect a factor, but it is only so likely, which is why the deck of card analogy, for practical purposes, is sufficient most of the time. Even a tiny difference in the number can affect the shape of the curve and send your little comet to different parts of the mathematical space where it might intersect a factor.
This is very good. If I had not been a NASA nut when I was a kid, a lot of this I would not understand. If I follow this correctly, the bounds determine the shape of the curve, length and width. Matching B1 and B2 would produce a circle. An increase of B2 relative to B1 would produce an ellipse. There is an ECM standard, if I remember correctly. B2 = B1 * 100. This would make a very tight ellipse. A guess: The sigma value used, like a random number generator, picks points on the curve to test. Small bounds, and the ellipse may reach Venus. Larger ones would reach out past Pluto and still maintain the shape.

There is theory and the application of the theory. The latter, I think of as the mechanics. How something is actually done in practice as opposed to the idea of how it should be done. This, I can grasp. Theory, very little. The Wiki page, to me, makes it appear like a person going from Washington, D.C. to Baltimore, via Tokyo.
storm5510 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Poisson Distribution pepi37 Miscellaneous Math 6 2018-08-28 02:10
What Bounds to choose, and what are Bounds 144 Information & Answers 5 2017-03-15 13:36
Poisson processes prescription, please? Fusion_power Information & Answers 5 2007-08-15 14:20
Help me pick a math course. jasong Math 9 2005-03-11 21:04
Pick a stone, or two, .... or three Wacky Puzzles 5 2003-06-24 16:11

All times are UTC. The time now is 02:43.


Sat Jul 17 02:43:18 UTC 2021 up 50 days, 30 mins, 1 user, load averages: 1.02, 1.38, 1.42

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