mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2020-07-10, 15:21   #12
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

3×11×17 Posts
Default

Quote:
Originally Posted by Happy5214 View Post
The new version compiled, but it didn't link:
Code:
gcc  -o llr64 lprime.o lmenu.o ../gwnum/gwnum.ld ../gwnum/gwnum.a ./libgmp.a ./libhwloc.a  ../gwnum/gwnum.ld -lm  -lpthread -lstdc++
...
/usr/bin/ld: ./libgmp.a(bdiv_q.o): relocation R_X86_64_32S against symbol `__gmp_binvert_limb_table' can not be used when making a PIE object; recompile with -fPIE
/usr/bin/ld: final link failed: nonrepresentable section on output
collect2: error: ld returned 1 exit status
make: *** [Makefile:26: llr64] Error 1
I think you have better to do "make allclean" and then, "make" in order to recompile the gwnum C files on your sytem, but I am not sure it will be sufficient...
Jean Penné is offline   Reply With Quote
Old 2020-07-10, 17:30   #13
Uncwilly
6809 > 6502
 
Uncwilly's Avatar
 
"""""""""""""""""""
Aug 2003
101×103 Posts

221E16 Posts
Default

There is no need to quote the entire post that you are responding to.
Uncwilly is offline   Reply With Quote
Old 2020-07-11, 05:50   #14
Jean Penné
 
Jean Penné's Avatar
 
May 2004
FRANCE

3×11×17 Posts
Default

Quote:
Originally Posted by Uncwilly View Post
There is no need to quote the entire post that you are responding to.
Ok, but I was a bit in a hurry, being now abroad for two weeks in Britany...

Regards,
Jean
Jean Penné is offline   Reply With Quote
Old 2020-07-11, 09:15   #15
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

32×43 Posts
Default

Quote:
Originally Posted by Jean Penné View Post
I think you have better to do "make allclean" and then, "make" in order to recompile the gwnum C files on your sytem, but I am not sure it will be sufficient...
That worked, though I had to re-copy libhwloc.a from the zip because make allclean deleted it. I also used -lgmp instead of the provided GMP since I already have it installed.
Happy5214 is offline   Reply With Quote
Old 2020-07-17, 23:57   #16
Citrix
 
Citrix's Avatar
 
Jun 2003

30478 Posts
Default

Could someone post a 64 bit windows console binary. Thanks.
Citrix is offline   Reply With Quote
Old 2020-08-28, 19:41   #17
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

54416 Posts
Default

Quote:
Originally Posted by Citrix View Post
Could someone post a 64 bit windows console binary. Thanks.
http://jpenne.free.fr/index2.html
pepi37 is offline   Reply With Quote
Old 2020-08-29, 08:18   #18
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

131448 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Still only 32-bit for windows.
henryzz is offline   Reply With Quote
Old 2020-10-12, 15:09   #19
Happy5214
 
Happy5214's Avatar
 
"Alexander"
Nov 2008
The Alamo City

32·43 Posts
Default

Out of curiosity, what would be a major enough change to bump the version number to 3.9.0, or even 4.0.0? There have been a lot of releases in the 3.8.x series, and not all of them are necessarily backwards compatible (e.g. the change in this version to Fermat PRP residues by default for Riesel prime candidates), which is not usually a good thing for only changing the last part of a three-part version number.
Happy5214 is offline   Reply With Quote
Old 2020-10-12, 15:32   #20
diep
 
diep's Avatar
 
Sep 2006
The Netherlands

10101001102 Posts
Default

Seems scale better the 3.8.24b2 but it's a lot slower on my machine here.

I tried under linux 64 bits at dual socket Xeon L5420 machine at 4 threads the new version 3.8.24b2

diep@thegathering:/home/69$ cat test2/lresults.txt
69*2^7000369-1 is not prime. RES64: 886E914BC82C8141. Time : 39825.834 sec.
69*2^7000867-1 is not prime. RES64: 1F3BCAF66C5B7933. Time : 38285.808 sec.
69*2^7001303-1 is not prime. RES64: 94D4AD4E9742E379. Time : 38139.096 sec.
69*2^7001737-1 is not prime. RES64: BE059B0E4A0D9D8E. Time : 38098.335 sec.

Meanwhile running at the other 4 cores an old version 3.8.21
69*2^7020207-1 is not prime. LLR Res64: 597F737890E1B7D6 Time : 30347.892 sec.
69*2^7020581-1 is not prime. LLR Res64: 6D7158CD69CE50C9 Time : 29160.003 sec.
69*2^7021093-1 is not prime. LLR Res64: 669D4D0DF15BA53F Time : 29021.396 sec.
69*2^7021665-1 is not prime. LLR Res64: 08F2596FBD4399E7 Time : 28909.286 sec.
69*2^7022049-1 is not prime. LLR Res64: 04AD3E151D54E10B Time : 29338.964 sec.

The LLR.ini it wrote:diep@thegathering:/home/69/test2$ cat llr.ini
WorkDone=0
Work=0
PgenInputFile=../splitted/7m8m_first5k_at
PgenOutputFile=../res1
PgenLine=5
HeaderLine=0
Pid=0
ThreadsPerTest=4
OldCpuSpeed=2500
NewCpuSpeedCount=0
NewCpuSpeed=0
PRPGerbiczCompareIntervalAdj= 1
OldInputFile=../splitted/7m8m_first5k_at
diep is offline   Reply With Quote
Old 2020-10-12, 17:35   #21
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

D7616 Posts
Default

I concur: testing a million digit number on an i7:

v3.8.24: 0.749 ms/it
v3.8.21: 0.688 ms/it

Last fiddled with by paulunderwood on 2020-10-12 at 17:36
paulunderwood is offline   Reply With Quote
Old 2020-10-18, 14:09   #22
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

D7616 Posts
Arrow Speed up for N=2^n-c

Fermat's Little theorem states b^(N-1) == 1 mod N for prime N (and gcd(b,N)==1).

For N=2^n-c this means for b=3 that 3^(2^n-c-1) == 1 (mod 2^n-c). This can be rewritten as 3^(2^n) == 3^(c+1) (mod 2^n-c). The left hand side is just squarings; The right hand side takes ~log(c) iterations. At the moment LLR does ~n multiplications of 3 times an n bit number which adds up to a 3-5% overhead.

Can a similar argument hold for k*2^n-c? Yes! (3^k)^(2^n) == 3^(c+1) (mod k*2^n-c).

Last fiddled with by paulunderwood on 2020-10-18 at 15:16
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
LLR Version 3.8.22 released Jean Penné Software 51 2019-04-10 06:04
LLR Version 3.8.19 released Jean Penné Software 11 2017-02-23 08:52
LLR Version 3.8.16 released Jean Penné Software 38 2015-12-10 07:31
LLR Version 3.8.15 released Jean Penné Software 28 2015-08-04 04:51
llr 3.8.2 released as dev-version opyrt Prime Sierpinski Project 11 2010-11-18 18:24

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

Mon Oct 26 11:05:11 UTC 2020 up 46 days, 8:16, 0 users, load averages: 1.91, 2.10, 2.00

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