mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Conjectures 'R Us

Reply
 
Thread Tools
Old 2015-08-18, 16:35   #177
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23·181 Posts
Default

Quote:
Originally Posted by rogue View Post
I cannot compile for linux as I do not have a linux machine. I have already explained earlier in this thread how to compile for linux. All you should need is the GNU Compiler Chain (gcc).
gcc *.cpp -lstdc++ -O2 -m64 -o srbsieve
main.cpp: In function ‘void getInputs()’:
main.cpp:160:40: error: expected ‘)’ before ‘SCNu64’
main.cpp: In function ‘void removeTrivial()’:
main.cpp:273:34: error: expected ‘)’ before ‘PRId64’
main.cpp: In function ‘void removeGFN()’:
main.cpp:330:27: error: expected ‘)’ before ‘PRId64’
main.cpp: In function ‘void removeMOB()’:
main.cpp:423:30: error: expected ‘)’ before ‘PRId64’
main.cpp: In function ‘void processNewpgenFile(uint32_t)’:
main.cpp:481:27: error: expected ‘)’ before ‘PRId64’
main.cpp: In function ‘void doPhase(int)’:
main.cpp:519:31: error: expected ‘)’ before ‘PRId64’
main.cpp: In function ‘void call_srsieve(uint32_t, uint32_t, uint64_t)’:
main.cpp:555:46: error: expected ‘)’ before ‘PRIu64’
main.cpp: In function ‘void prp_test_ABC_file()’:
main.cpp:601:32: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
main.cpp: In function ‘void output_remain(char*)’:
main.cpp:710:29: error: expected ‘)’ before ‘PRId64’

I have compiled srsieve ,srsieve1 and srsieve2 for Linux without any problem on same machine: so it looks like I have whatever I need

This is your last code before adding recovery...

Last fiddled with by pepi37 on 2015-08-18 at 16:36
pepi37 is online now   Reply With Quote
Old 2015-08-18, 17:28   #178
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

2×3×7×23 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
That won't be ideal for bases like R3 that lose a bunch of k's to primes, as those sieve files have most of their tests run well below the midpoint of the exponent range. But, it still prevents cases like my first couple tries at using srbsieve, where I ended up having it sieve for longer than it took the resulting file to PFGW completely. If one wanted to allow tinkering, one could make the 10% a setting in the .ini, so users can adjust the relative time spent in sieve; this allows stuff like R3 to run at 7%, or even lower, to compensate for the high frequency of primed k's.
No that won't be ideal. I think that you should wait a few days and see how much faster my srbsieve.ini file is. I have 18 phases and sieve to approximately 2% of the candidates remaining (This was found to be optimal, by using srsieve and sieve the given n-range for each phase, so the value wich I use is accurate to the removal rate on R3). I'm not sure, how much faster it is to run with 18 phases, but if it is as fast as it looks like, then I will be able to do about 100G (maybe more)for base 3 per year on my Hasswell (QuadCore). Also I should add, that my sievedepth, wich for phase 1 (33000 k's) is only p=70000 (n=33 to n=100).

@Rogue: Since I'm sieving to n=32 using NewPGen and might sieve to n=33 for the next tests for R3, could you please have the limit at nothing lower than 33 NewPGen files, for base 3?
KEP is offline   Reply With Quote
Old 2015-08-18, 17:37   #179
lalera
 
lalera's Avatar
 
Jul 2003

13·47 Posts
Default

Quote:
Originally Posted by KEP View Post
No that won't be ideal. I think that you should wait a few days and see how much faster my srbsieve.ini file is. I have 18 phases and sieve to approximately 2% of the candidates remaining (This was found to be optimal, by using srsieve and sieve the given n-range for each phase, so the value wich I use is accurate to the removal rate on R3). I'm not sure, how much faster it is to run with 18 phases, but if it is as fast as it looks like, then I will be able to do about 100G (maybe more)for base 3 per year on my Hasswell (QuadCore). Also I should add, that my sievedepth, wich for phase 1 (33000 k's) is only p=70000 (n=33 to n=100).

@Rogue: Since I'm sieving to n=32 using NewPGen and might sieve to n=33 for the next tests for R3, could you please have the limit at nothing lower than 33 NewPGen files, for base 3?
haswell - https://en.wikipedia.org/wiki/Haswel...rchitecture%29
lalera is offline   Reply With Quote
Old 2015-08-18, 17:45   #180
lalera
 
lalera's Avatar
 
Jul 2003

11438 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
If the target time were found on the same machine with the same load, it would not matter how many tasks were running, as the result would still be "sieve until PFGW is faster on an avg candidate."
... looks like ... "speech theory" ...
lalera is offline   Reply With Quote
Old 2015-08-18, 18:18   #181
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

18D016 Posts
Default

Quote:
Originally Posted by pepi37 View Post
main.cpp:710:29: error: expected ‘)’ before ‘PRId64’

I have compiled srsieve ,srsieve1 and srsieve2 for Linux without any problem on same machine: so it looks like I have whatever I need
You will need to find the header that has a #define for that then modify the code to include it in main.cpp. I suggest searching /usr/include for that string.
rogue is offline   Reply With Quote
Old 2015-08-18, 18:19   #182
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

24×397 Posts
Default

Quote:
Originally Posted by KEP View Post
@Rogue: Since I'm sieving to n=32 using NewPGen and might sieve to n=33 for the next tests for R3, could you please have the limit at nothing lower than 33 NewPGen files, for base 3?
I see no reason for force that requirement.
rogue is offline   Reply With Quote
Old 2015-08-18, 20:09   #183
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

2×3×7×23 Posts
Default

Quote:
Originally Posted by rogue View Post
I see no reason for force that requirement.
Great, thank you
KEP is offline   Reply With Quote
Old 2015-08-18, 22:05   #184
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23·181 Posts
Default

Quote:
Originally Posted by rogue View Post
You will need to find the header that has a #define for that then modify the code to include it in main.cpp. I suggest searching /usr/include for that string.
Got it!
Thanks!
Only got one error, but with build binaries:
Now I run test what same data from Windows for reference!
pepi37 is online now   Reply With Quote
Old 2015-08-18, 22:19   #185
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

635210 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Got it!
Thanks!
Only got one error, but with build binaries:
Now I run test what same data from Windows for reference!
Which header did you need to include?
rogue is offline   Reply With Quote
Old 2015-08-18, 22:40   #186
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23·181 Posts
Default

Quote:
Originally Posted by rogue View Post
Which header did you need to include?
None.
It looks like my gcc was "old" it was 4.7
I now install 4.9 and it compile whit that one error.
I found that yours decalration are same as in MiniGW inttypes.hr , and those I get in Linux are little different
( file is herehttp://www.dropbox.com/s/s4yj44kho6g...nttypes.h?dl=0 )

So if I follow correctly
Code:
#  define __PRI64_PREFIX    "l"
#  define __PRIPTR_PREFIX   "l"
....
# define PRId64     __PRI64_PREFIX "d"
will be equivalent of

# define PRId64 "ld" ?

I am correct?

Last fiddled with by pepi37 on 2015-08-18 at 23:40 Reason: add more info
pepi37 is online now   Reply With Quote
Old 2015-08-19, 00:29   #187
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

23×181 Posts
Default

It attachment is cross- reference between Windows, Linux on I5-3570K and on Linux on Haswell.
All three has 7328 primes, remains are same, as GFN and MOB and trivial.
But I seen just one "error" on print screen on all three "windows" ( look at copy-scrren.txt)

It says
Code:
 Completed phase 5: 159 remaining ( on Linux and Windows),
but both Linux have 158 remain.
I dont know what was status of Windows at that time, since it is now on 8.8K .
In "win" directory are Pgen files, and settings for first set of S810 in srbsieve.ini ( I divide work on four cores)

UPDATE
I look at task on four cores on Windows
On first core it shows one prime more ( show 119, have 118) , on other show correct number
So it looks like "missing prime is 1*810^n+1" since I start from 2 in srbsieve.ini
810^1+1 is prime! (3 decimal digits, Trial divisions) Time : 0.002 ms.

And since cross reference was from first set, I think all is OK.
Attached Files
File Type: 7z srbsiebe.7z (16.9 KB, 64 views)

Last fiddled with by pepi37 on 2015-08-19 at 00:38 Reason: Add more info
pepi37 is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Prime Riesel and Sierpinski k robert44444uk Open Projects 587 2016-11-13 15:26
Sierpinski/ Riesel bases 6 to 18 robert44444uk Conjectures 'R Us 139 2007-12-17 05:17
Sierpinski/Riesel Base 10 rogue Conjectures 'R Us 11 2007-12-17 05:08
Sierpinski / Riesel - Base 23 michaf Conjectures 'R Us 2 2007-12-17 05:04
Sierpinski / Riesel - Base 22 michaf Conjectures 'R Us 49 2007-12-17 05:03

All times are UTC. The time now is 09:50.


Tue Jul 27 09:50:25 UTC 2021 up 4 days, 4:19, 0 users, load averages: 2.11, 2.11, 1.99

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.