Search the web
Sign In
New User? Sign Up
openpfgw · Co-ordination of the OpenPFGW project
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 2040 - 2069 of 2069   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#2069 From: Mark Rodenkirch <mgrogue@...>
Date: Mon Nov 23, 2009 2:22 pm
Subject: Re: Re: a^b+c much slower than a^b-c
mgrogue
Offline Offline
Send Email Send Email
 
Oops, you are correct, it affects +c, not -1 forms.

On Nov 23, 2009, at 8:11 AM, djbroadhurst wrote:

> It only affects b^n-c forms.

On the contrary, it cripples b^n+c,
making it 3 times slower than b^n-c.

In neither case did I find any error;
just a big penalty in speed for b^n+c:

> 10^44441+299367 is 3-PRP! (154.6733s+0.0117s)
> 10^44441-285359 is 3-PRP! (58.8960s+0.0119s)

David (after 2500 tests on each form,
between 10k and 100k digits, using
Henri's database)


#2068 From: "djbroadhurst" <d.broadhurst@...>
Date: Mon Nov 23, 2009 2:11 pm
Subject: Re: a^b+c much slower than a^b-c
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,

> It only affects b^n-c forms.

On the contrary, it cripples b^n+c,
making it 3 times slower than b^n-c.

In neither case did I find any error;
just a big penalty in speed for b^n+c:

> 10^44441+299367 is 3-PRP! (154.6733s+0.0117s)
> 10^44441-285359 is 3-PRP! (58.8960s+0.0119s)

David (after 2500 tests on each form,
between 10k and 100k digits, using
Henri's database)

#2067 From: Mark Rodenkirch <mgrogue@...>
Date: Mon Nov 23, 2009 1:59 pm
Subject: Re: a^b+c much slower than a^b-c
mgrogue
Offline Offline
Send Email Send Email
 

On Nov 23, 2009, at 6:31 AM, Mark Rodenkirch wrote:

Why does a^b+c not use special modular reduction?

$ pfgw -V -N -q"10^10000+137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor') 
[GWNUM 25.13]
Generic modular reduction using generic reduction 
FFT length 3072 on A 33221-bit number
10^10000+137 is composite: RES64: [07495556E07307B0] 
(5.7515s+0.0006s)

$ pfgw -V -N -q"10^10000-137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor') 
[GWNUM 25.13]
Special modular reduction using 
FFT length 2560 on 10^10000-137
10^10000-137 is composite: RES64: [DB780CB512A58792] 
(1.6931s+0.000

I don't know.  I'll investigate when I have some time.

I found the problem.  It only affects b^n-c forms.  I won't release a patched version yet in case you (or someone else) discovers other problems.  This is the only known issue in the current release.

--Mark

#2066 From: Mark Rodenkirch <mgrogue@...>
Date: Mon Nov 23, 2009 12:31 pm
Subject: Re: a^b+c much slower than a^b-c
mgrogue
Offline Offline
Send Email Send Email
 
On Nov 23, 2009, at 5:57 AM, djbroadhurst wrote:

Why does a^b+c not use special modular reduction?

$ pfgw -V -N -q"10^10000+137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor') 
[GWNUM 25.13]
Generic modular reduction using generic reduction 
FFT length 3072 on A 33221-bit number
10^10000+137 is composite: RES64: [07495556E07307B0] 
(5.7515s+0.0006s)

$ pfgw -V -N -q"10^10000-137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor') 
[GWNUM 25.13]
Special modular reduction using 
FFT length 2560 on 10^10000-137
10^10000-137 is composite: RES64: [DB780CB512A58792] 
(1.6931s+0.000

I don't know.  I'll investigate when I have some time.

#2065 From: "djbroadhurst" <d.broadhurst@...>
Date: Mon Nov 23, 2009 11:57 am
Subject: a^b+c much slower than a^b-c
djbroadhurst
Offline Offline
Send Email Send Email
 
Why does a^b+c not use special modular reduction?

$ pfgw -V -N -q"10^10000+137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor')
[GWNUM 25.13]
Generic modular reduction using generic reduction
FFT length 3072 on A 33221-bit number
10^10000+137 is composite: RES64: [07495556E07307B0]
(5.7515s+0.0006s)

$ pfgw -V -N -q"10^10000-137"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor')
[GWNUM 25.13]
Special modular reduction using
FFT length 2560 on 10^10000-137
10^10000-137 is composite: RES64: [DB780CB512A58792]
(1.6931s+0.0006s)

David

#2064 From: Mark Rodenkirch <mgrogue@...>
Date: Sun Oct 25, 2009 1:42 pm
Subject: Re: PFGW for AMD
mgrogue
Offline Offline
Send Email Send Email
 
PFGW is CPU agnostic.  It uses the gwnum library.  gwnum detects the CPU and automatically uses the optimal code for it.

--Mark

On Oct 25, 2009, at 7:57 AM, Di Maria Giovanni wrote:

Hi
Can somebody compile pfgw for AMD processor?
Thank you.
Giovanni


#2063 From: "Di Maria Giovanni" <calimero22@...>
Date: Sun Oct 25, 2009 12:57 pm
Subject: PFGW for AMD
calimero22
Offline Offline
Send Email Send Email
 
Hi
Can somebody compile pfgw for AMD processor?
Thank you.
Giovanni

#2062 From: Mark Rodenkirch <mgrogue@...>
Date: Sat Oct 17, 2009 4:51 pm
Subject: Re: Re: PFGW 3.2.3 has been released
mgrogue
Offline Offline
Send Email Send Email
 

On Oct 17, 2009, at 9:25 AM, djbroadhurst wrote:

--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> I am not aware of any other bugs with PFGW at this time.
> If you find any, please let me know.

This test breaks GWNUM 25.13:

$ pfgw -t -q"Phi(3,8^6353)/73"

PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor')
[GWNUM 25.13]
Detected in MAXERR>0.45 (round off check) in
Exponentiator::Iterate
Iteration: 38280/39691 ERROR: ROUND OFF 0.5>0.45

The -a1 switch shows that we are dealing with a PRP:

$ pfgw -t -a1 -q"Phi(3,8^6353)/73"
Phi(3,8^6353)/73 is PRP! (20.6874s+0.0040s)

David

That's OK from my perspective, as long as PFGW suggests that you use the -a1 or -a2 switch.  It would be much worse if the result of the test were given as composite, unknown, or PRP after a roundoff or sumout error occurs.

--Mark


#2061 From: "djbroadhurst" <d.broadhurst@...>
Date: Sat Oct 17, 2009 2:25 pm
Subject: Re: PFGW 3.2.3 has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> I am not aware of any other bugs with PFGW at this time.
> If you find any, please let me know.

This test breaks GWNUM 25.13:

  $ pfgw -t -q"Phi(3,8^6353)/73"

  PFGW Version 20090928.x86_Dev (Beta 'caveat utilitor')
  [GWNUM 25.13]
  Detected in MAXERR>0.45 (round off check) in
  Exponentiator::Iterate
  Iteration: 38280/39691 ERROR: ROUND OFF 0.5>0.45

The -a1 switch shows that we are dealing with a PRP:

  $ pfgw -t -a1 -q"Phi(3,8^6353)/73"
  Phi(3,8^6353)/73 is PRP! (20.6874s+0.0040s)

David

#2060 From: Mark Rodenkirch <mgrogue@...>
Date: Tue Oct 13, 2009 9:46 pm
Subject: PFGW 3.2.3 for Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
As promised, the linux version of 3.2.3 can be found here:


--Mark

#2059 From: Mark Rodenkirch <mgrogue@...>
Date: Sat Oct 10, 2009 3:51 pm
Subject: PFGW 3.2.3 has been released
mgrogue
Offline Offline
Send Email Send Email
 
I have release PFGW 3.2.3. Here is a list of changes:

- Fix an issue with -t when using an input file, PFGW would not reuse bases, thus re-ordering the file would yiled different results. PFGW would use different bases for each test as it not reuse the same base for different numbers. - Check for sumout errors during primality tests. - Modified output to pfgw_err.log to match the output shown in GUI. - Fixed the GUI to show reason that a test has failed. - Multiply MAXDIFF by 1000 to help avoid SUMOUT errors when for generic forms or when -a1 or -a2 is used. - Updated to gwnum 25.13 library. - Attempt to fix issue that prevents WinPFGW from showing result of the test when in quick mode. You can d/l Windows and MacIntel buildsfrom the following links. http://openpfgw.svn.sourceforge.net/viewvc/openpfgw/pfgw_win_3.2.3_20091010.zip?view=log http://openpfgw.svn.sourceforge.net/viewvc/openpfgw/pfgw_mac_3.2.3_20091010.zip?view=log

I will let you know when a linux build is available.

I am not aware of any other bugs with PFGW at this time. If you find any, please let me know.

Please d/l with Safari or Firefox since IE seems to have problems with these files.

--Mark

#2058 From: Mark Rodenkirch <mgrogue@...>
Date: Sat Oct 10, 2009 2:34 pm
Subject: Re: 3.2.2 error with -a1, but not with default or -a2
mgrogue
Offline Offline
Send Email Send Email
 
I have verified that the SUMOUT issues are addressed in 3.2.3.

On Oct 9, 2009, at 9:03 PM, Mark Rodenkirch wrote:

3.2.3 is around the corner.  I will test these with that version.


--Mark

On Oct 9, 2009, at 9:36 AM, darren_bedwell wrote:

This seems like a bug, not a feature. Something about this number makes WinPFGW 3.2.2 err when the -a1 option is used. 

-qR(3021,160809)*10+1 -f -a1

Error occuring in PFGW at xx Oct xx xx:16:30 2009
Expr = R(3021,160809)*10+1
Failed at bit 23585 of 60213
Msg = Detected in gw_test_mismatched_sums() in prp_using_gwnum
Iteration: 23585/60213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),

and 

Generic modular reduction using generic reduction FFT length 7K on A 60214-bit number
R(3021,160809)*10+1 ERROR DURING PROCESSING! (17.8084s+12.2846s)

But with other '-a' values...

-qR(3021,160809)*10+1 -f 
-qR(3021,160809)*10+1 -f -a2

The results: 

Generic modular reduction using generic reduction FFT length 6K on A 60214-bit number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (49.3246s+16.8789s)
Generic modular reduction using generic reduction FFT length 8K on A 60214-bit number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (63.4253s+16.3123s)

-a-1 and -a-2 also work correctly. 

(and with -f1000, it finds a factor)

R(3021,160809)*10+1 has factors: 13742371



#2057 From: Mark Rodenkirch <mgrogue@...>
Date: Sat Oct 10, 2009 2:03 am
Subject: Re: 3.2.2 error with -a1, but not with default or -a2
mgrogue
Offline Offline
Send Email Send Email
 
3.2.3 is around the corner.  I will test these with that version.

--Mark

On Oct 9, 2009, at 9:36 AM, darren_bedwell wrote:

This seems like a bug, not a feature. Something about this number makes WinPFGW 3.2.2 err when the -a1 option is used. 

-qR(3021,160809)*10+1 -f -a1

Error occuring in PFGW at xx Oct xx xx:16:30 2009
Expr = R(3021,160809)*10+1
Failed at bit 23585 of 60213
Msg = Detected in gw_test_mismatched_sums() in prp_using_gwnum
Iteration: 23585/60213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),

and 

Generic modular reduction using generic reduction FFT length 7K on A 60214-bit number
R(3021,160809)*10+1 ERROR DURING PROCESSING! (17.8084s+12.2846s)

But with other '-a' values...

-qR(3021,160809)*10+1 -f 
-qR(3021,160809)*10+1 -f -a2

The results: 

Generic modular reduction using generic reduction FFT length 6K on A 60214-bit number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (49.3246s+16.8789s)
Generic modular reduction using generic reduction FFT length 8K on A 60214-bit number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (63.4253s+16.3123s)

-a-1 and -a-2 also work correctly. 

(and with -f1000, it finds a factor)

R(3021,160809)*10+1 has factors: 13742371


#2056 From: "darren_bedwell" <darren.bedwell@...>
Date: Fri Oct 9, 2009 2:36 pm
Subject: 3.2.2 error with -a1, but not with default or -a2
darren_bedwell
Offline Offline
Send Email Send Email
 
This seems like a bug, not a feature. Something about this number makes WinPFGW
3.2.2 err when the -a1 option is used.

-qR(3021,160809)*10+1 -f -a1

Error occuring in PFGW at xx Oct xx xx:16:30 2009
Expr = R(3021,160809)*10+1
Failed at bit 23585 of 60213
Msg = Detected in gw_test_mismatched_sums() in prp_using_gwnum
Iteration: 23585/60213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),

and

Generic modular reduction using generic reduction FFT length 7K on A 60214-bit
number
R(3021,160809)*10+1 ERROR DURING PROCESSING! (17.8084s+12.2846s)


But with other '-a' values...

-qR(3021,160809)*10+1 -f
-qR(3021,160809)*10+1 -f -a2

The results:

Generic modular reduction using generic reduction FFT length 6K on A 60214-bit
number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (49.3246s+16.8789s)
Generic modular reduction using generic reduction FFT length 8K on A 60214-bit
number
R(3021,160809)*10+1 is composite: RES64: [A78C20E4DD2F3BAF] (63.4253s+16.3123s)

-a-1 and -a-2 also work correctly.

(and with -f1000, it finds a factor)

R(3021,160809)*10+1 has factors: 13742371

#2055 From: "darren_bedwell" <darren.bedwell@...>
Date: Fri Oct 9, 2009 12:45 am
Subject: Re: PFGW 3.2.2 For Linux has been released
darren_bedwell
Offline Offline
Send Email Send Email
 
I found an interesting dark corner. For all of these numbers, PFGW 3.2.2 gives
an error (unless -a1 is used, in which case they come back as composite).  Same
result with WinPFGW and the Linux version:

R(2773,150105)*10+1
R(2774,188088)*10+1
R(2777,150105)*10+1
R(2780,152825)*10+1
R(2784,152825)*10+1
R(2787,188088)*10+1
R(2787,161019)*10+1
R(2788,188088)*10+1
R(2789,188088)*10+1
R(2793,195056)*10+1
R(2798,186198)*10+1
R(2798,150105)*10+1
R(2798,195056)*10+1
R(2800,188088)*10+1
R(2805,120102)*10+1
R(2806,120102)*10+1
R(2806,169869)*10+1

Example:
-----------------------------------------------------------------------
Error occuring in PFGW at Thu Oct  8 19:48:20 2009
Expr = R(2780,152825)*10+1
Failed at bit 177 of 55410
Msg = Detected in gw_test_mismatched_sums() in prp_using_gwnum
Iteration: 177/55410 ERROR: SUM(INPUTS) != SUM(OUTPUTS),

#2054 From: <mgrogue@...>
Date: Wed Oct 7, 2009 3:20 pm
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
---- djbroadhurst <d.broadhurst@...> wrote:
>
> Phil correctly post-dicted my entirely deliberate intent :-)
>
> > I've upgraded the gwnum code to detect many of these cases
> > and choose a better modulus.
>
> Thank ye kindly, Sir!
>
> > I await the next wave of bug reports :)
>
> I shall do my best to oblige, when a new linux build appears.
>
> David (trying to be diligent)

I hope to make a Windows build available this weekend.  Once I do, I'll let
Steven know and he can build you a linux executable.

--Mark

#2053 From: "djbroadhurst" <d.broadhurst@...>
Date: Wed Oct 7, 2009 1:48 am
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
George Woltman <woltman@...> wrote:

> On Mon, Sep 28, 2009 at 12:32 PM,
> djbroadhurst <d.broadhurst@...> wrote:
>
> > Here, are two more ways of breaking gwnum:
> > $ pfgw -t -q"Phi(35737,2)"
> > $ pfgw -t -q"Phi(34585,2)"
>
> As Phil correctly speculated, these errors
> were due to non-random bit patterns that
> the FFTs hate.

Phil correctly post-dicted my entirely deliberate intent :-)

> I've upgraded the gwnum code to detect many of these cases
> and choose a better modulus.

Thank ye kindly, Sir!

> I await the next wave of bug reports :)

I shall do my best to oblige, when a new linux build appears.

David (trying to be diligent)

#2052 From: George Woltman <woltman@...>
Date: Tue Oct 6, 2009 9:56 pm
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
woltman9999
Offline Offline
Send Email Send Email
 
On Mon, Sep 28, 2009 at 12:32 PM, djbroadhurst <d.broadhurst@...> wrote:
> Here, are two more ways of breaking gwnum:
> $ pfgw -t -q"Phi(35737,2)"
> $pfgw -t -q"Phi(34585,2)"

As Phil correctly speculated, these errors were due to non-random bit
patterns that
the FFTs hate.

I've upgraded the gwnum code to detect many of these cases and choose
a better modulus.  Specifically, gwnum multiplies the input number by
odd numbers less than 1000.  If the multiplied number, treated as an array
of 32-bit values, consists of 25% or more zero or minus one then gwnum
operates modulo this multiplied number.  This seems to reduce the round off
error.

I've tested the modified code on all the examples.  Only Phi(35737,2) case
still fails - gwnum does not find a suitable multiplier.

The unrelated error with -a2 is fixed.  Simply an over-aggressive ASSERT.

The 25.13 source code has been uploaded.  I await the next wave of bug
reports :)

#2051 From: <mgrogue@...>
Date: Mon Oct 5, 2009 4:18 pm
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
---- George Woltman <woltman@...> wrote:
> Hi Mark,
>
> On Tue, Sep 29, 2009 at 9:26 AM,  <mgrogue@...> wrote:
> >
> > pfgw -a1 -t -q"Phi(82730,2)"
> >
> > Primality testing Phi(82730,2) [N-1, Brillhart-Lehmer-Selfridge]
> > Running N-1 test using base 2
> > N-1: Phi(82730,2) 1/34213 mro=0
> > Iteration: 29/34213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),
>
> As Phil speculated, we are dealing with a number that has a nasty
> bit pattern that magnifies FFT rounding errors.  There seems to be
> three problems:
>
> 1) Can I make -a0 work properly?  Maybe.  I'll work on that today.
> 2)  Why did we get the -a2 ASSERT?  I've not investigated yet, though it
> is probably harmless.
> 3)  The -a1 sum(inputs) != sum(outputs) above.
>
> Even when using a -aN switch, the number still has a nasty bit pattern
> which increases roundoff errors.  While we don't get near the fatal
> 0.5 roundoff, we do get larger than expected roundoffs in the
> sum(inputs) != sum(outputs) sanity check.
>
> My recommendation for the -aN cases is that pfgw should increase
> gwdata->MAXDIFF.   The theory being the user may have selected
> the -aN option because he is testing a pathological number.  To me,
> this makes better sense than our two other options:  a)  A separate
> command line argument to increase MAXDIFF (too confusing to the
> end user) or b) gwnum tries to detect these nasty bit patterns and
> automatically increase MAXDIFF (I might miss some cases).
>
> If you agree, I recommend adding this line of code wherever -aN is used:
>         gwdata->MAXDIFF *= 1000.0;
> I tested the case above with multiplying by 10.0 and it worked OK.
>
> Comments?

I have added that after calling gwset_square_carefully_count(). Here is the new
output using -a1 and -tc:

Primality testing Phi(82730,2) [N-1/N+1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 2
Running N-1 test using base 3
Running N-1 test using base 7
Running N+1 test using discriminant 23, base 1+sqrt(23)
Phi(82730,2) is Fermat and Lucas PRP! (50.6017s+0.0299s)

--Mark

#2050 From: George Woltman <woltman@...>
Date: Mon Oct 5, 2009 2:41 pm
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
woltman9999
Offline Offline
Send Email Send Email
 
Hi Mark,

On Tue, Sep 29, 2009 at 9:26 AM,  <mgrogue@...> wrote:
>
> pfgw -a1 -t -q"Phi(82730,2)"
>
> Primality testing Phi(82730,2) [N-1, Brillhart-Lehmer-Selfridge]
> Running N-1 test using base 2
> N-1: Phi(82730,2) 1/34213 mro=0
> Iteration: 29/34213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),

As Phil speculated, we are dealing with a number that has a nasty
bit pattern that magnifies FFT rounding errors.  There seems to be
three problems:

1) Can I make -a0 work properly?  Maybe.  I'll work on that today.
2)  Why did we get the -a2 ASSERT?  I've not investigated yet, though it
is probably harmless.
3)  The -a1 sum(inputs) != sum(outputs) above.

Even when using a -aN switch, the number still has a nasty bit pattern
which increases roundoff errors.  While we don't get near the fatal
0.5 roundoff, we do get larger than expected roundoffs in the
sum(inputs) != sum(outputs) sanity check.

My recommendation for the -aN cases is that pfgw should increase
gwdata->MAXDIFF.   The theory being the user may have selected
the -aN option because he is testing a pathological number.  To me,
this makes better sense than our two other options:  a)  A separate
command line argument to increase MAXDIFF (too confusing to the
end user) or b) gwnum tries to detect these nasty bit patterns and
automatically increase MAXDIFF (I might miss some cases).

If you agree, I recommend adding this line of code wherever -aN is used:
         gwdata->MAXDIFF *= 1000.0;
I tested the case above with multiplying by 10.0 and it worked OK.

Comments?

Regards,
George

#2049 From: <mgrogue@...>
Date: Tue Sep 29, 2009 9:33 pm
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
---- djbroadhurst <d.broadhurst@...> wrote:
> --- In openpfgw@yahoogroups.com,
> Mark Rodenkirch <mgrogue@...> wrote:
>
> > I don't understand why you are pushing for a new build
> I should like to have a version free of all order dependence
>
> > when you know that it will still have issues.
> Then the remaining issues would be free of order dependence.
> But you are the boss, Mark. So it's quite in order to say no.

Just to be clear that we aren't talking Apples and Dells, there are two separate
order dependence issues.  The first is the random number generator used in
gwnum.  The second is the bug you identified this week with primality testing. 
The first was fixed in 3.2.2, the second is fixed in 3.2.3, but I am awaiting
assistance from George so that the other issues identified in 3.2.2 (which
appear to be in gwnum) will be included in the official 3.2.3 release.

If there will be a significant delay from George (and I doubt that there will
be), then I could release a 3.2.3 this week and release a 3.2.4 after the other
issues are resolved.

I apologize for this delay as it affects your testing, but I think that we can
agree that you would like to test a version with no known bugs.

--Mark

#2048 From: "djbroadhurst" <d.broadhurst@...>
Date: Tue Sep 29, 2009 6:44 pm
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> I don't understand why you are pushing for a new build
I should like to have a version free of all order dependence

> when you know that it will still have issues.
Then the remaining issues would be free of order dependence.
But you are the boss, Mark. So it's quite in order to say no.

David

#2047 From: <mgrogue@...>
Date: Tue Sep 29, 2009 1:26 pm
Subject: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
I have modified PFGW to do the following when a roundoff/sumout/mismatched sums
error occurs during a primality test:

pfgw -t -q"Phi(82730,2)"

Primality testing Phi(82730,2) [N-1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 2
N-1: Phi(82730,2) 5000/34213 mro=0
Iteration: 6821/34213 ERROR: ROUND OFF 0.5>0.45
   (Test aborted, try again using the -a1 switch)
Phi(82730,2) is unknown (2.8938s+0.0050s)


pfgw -a1 -t -q"Phi(82730,2)"

Primality testing Phi(82730,2) [N-1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 2
N-1: Phi(82730,2) 1/34213 mro=0
Iteration: 29/34213 ERROR: SUM(INPUTS) != SUM(OUTPUTS),
   (Test aborted, try again using the -a2 (or possibly -a0) switch)
Phi(82730,2) is unknown (1.9855s+0.0067s)


Oddly enough -a2 fails with an error in gwnum (see below).   George, could you
investigate?  The changes I have made to this point have been committed.

pfgw -a2 -t -q"Phi(82730,2)"

Primality testing Phi(82730,2) [N-1, Brillhart-Lehmer-Selfridge]
Running N-1 test using base 2
Assertion failed: * addr (gwdata, s, gwdata->FFTLEN/2-1) > -2.0 && * addr
(gwdata, s, gwdata->FFTLEN/2-1) <= 0.0, file gwnum.c, line 6787


-a, -a1, and -a2 work for Phi(12365,2).

I also fixed a separate error where PFGW would return PRP instead of "unknown"
under some conditions where one of these errors would occur.  I will not release
a new build of PFGW (for any platform) until George and I have a resolution on
this -a2 issue.

--Mark

#2046 From: Mark Rodenkirch <mgrogue@...>
Date: Tue Sep 29, 2009 11:32 am
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 

On Sep 28, 2009, at 10:12 PM, djbroadhurst wrote:

--- In openpfgw@yahoogroups.com, 
Mark Rodenkirch <mgrogue@...> wrote:

> George's new random number logic is in PFGW 3.2.2.

A fortiori, this recent Windoze build:
http://openpfgw.svn.sourceforge.net/viewvc/openpfgw/pfgw_win_3.2.3_20090928.zip
should be now free of *all* order-dependence, not so?
If so, it would be both a kindness and courtesy to provide 
an equally order-independent linux build of version 3.2.3.

I will remove this today.  I have not announced it officially and as long as this other issue exists in PFGW or as long as I don't improve the message when a roundoff error occurs, I will not release a new build.  I don't understand why you are pushing for a new build when you know that it will still have issues.

--Mark

#2045 From: "djbroadhurst" <d.broadhurst@...>
Date: Tue Sep 29, 2009 3:12 am
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> George's new random number logic is in PFGW 3.2.2.

A fortiori, this recent Windoze build:
http://openpfgw.svn.sourceforge.net/viewvc/openpfgw/pfgw_win_3.2.3_20090928.zip
should be now free of *all* order-dependence, not so?
If so, it would be both a kindness and courtesy to provide
an equally order-independent linux build of version 3.2.3.

David

#2044 From: Mark Rodenkirch <mgrogue@...>
Date: Tue Sep 29, 2009 2:13 am
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 

On Sep 28, 2009, at 7:29 PM, djbroadhurst wrote:

Note that the wise PrimeMogul uses the -a1 switch.

However, if Mark merely makes -a1 mandatory for -tc,
then George's "carefully" will be let of the hook,
whereas it would be much better, in my opinion,
if George were to reconsider "carefully" in the
light of my diligent findings.

Practice maketh perfect...

David

I will not make -a1 mandatory.  The better option is to have PFGW tell users to use the -a switch for primality tests that fail due to rounding and sumout errors.  It does this currently for PRP tests.  Unfortunately, primality tests just fail and don't give the user any information as to how to get around the problem.  Knowing George, he will address any issues in gwnum as soon as he can reproduce them.  You have provided enough small examples for him to test his code with.

George's new random number logic is in PFGW 3.2.2.

--Mark

#2043 From: "djbroadhurst" <d.broadhurst@...>
Date: Tue Sep 29, 2009 12:48 am
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> It is possible that the build you have was built with
> the current version of that file, but I need to investigate.

That is of no account, since mt19937.c would be vitiated by
the indubitable order dependence on bases in the version of
August 18. Conversely, a new linux patch of the base problem
would be vitiated by an absence of mt19937.c.

The situation is clear: until there is a version with *both*
mt19937.c and reproducible bases, beta-testing is *very*
difficult. Until there is *linux* version with both, it is
very difficult for *me* to help George.

Yrs for aye

David

#2042 From: Mark Rodenkirch <mgrogue@...>
Date: Tue Sep 29, 2009 12:28 am
Subject: Re: Re: PFGW 3.2.2 For Linux has been released
mgrogue
Offline Offline
Send Email Send Email
 
On Sep 28, 2009, at 7:02 PM, djbroadhurst wrote:

--- In openpfgw@yahoogroups.com, 
Mark Rodenkirch <mgrogue@...> wrote:

> Steven can grab at any time and produce a build if he wants

That would be helpful, please, if (and only if) 
it is compiled with George's mt19937.c file.

Then we will be left with a clearly reproducible 
brokenness of gwnum and George can ignore all the 
rest of this complicated history, when he gets his
laptop back.

It seems a good idea to mend what you can,
the better to let others break what we do
yet understand.

It is possible that that the build you have was built with the current version of that file, but I need to investigate.

--Mark

#2041 From: "djbroadhurst" <d.broadhurst@...>
Date: Tue Sep 29, 2009 12:29 am
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> IIRC, primality tests ignore the -a switch.

Not so.

The switch -a1 will avoid the errors that I have
reported. Videlicet:

$ pfgw -tc -a1 -q"Phi(13,2^2749)/8191"

> Phi(13,2^2749)/8191 is Fermat and Lucas PRP!

Yet without -a1, version 3.2.2 fails:

$ pfgw -tc -q"Phi(13,2^2749)/8191"

> Expr = Phi(13,2^2749)/8191
> Failed at bit 3 of 32974

Note that the wise PrimeMogul uses the -a1 switch.

However, if Mark merely makes -a1 mandatory for -tc,
then George's "carefully" will be let of the hook,
whereas it would be much better, in my opinion,
if George were to reconsider "carefully" in the
light of my diligent findings.

Practice maketh perfect...

David

#2040 From: "djbroadhurst" <d.broadhurst@...>
Date: Tue Sep 29, 2009 12:02 am
Subject: Re: PFGW 3.2.2 For Linux has been released
djbroadhurst
Offline Offline
Send Email Send Email
 
--- In openpfgw@yahoogroups.com,
Mark Rodenkirch <mgrogue@...> wrote:

> Steven can grab at any time and produce a build if he wants

That would be helpful, please, if (and only if)
it is compiled with George's mt19937.c file.

Then we will be left with a clearly reproducible
brokenness of gwnum and George can ignore all the
rest of this complicated history, when he gets his
laptop back.

It seems a good idea to mend what you can,
the better to let others break what we do
yet understand.

David

Messages 2040 - 2069 of 2069   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help