mersenneforum.org  

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

Reply
 
Thread Tools
Old 2015-08-19, 05:16   #188
mdettweiler
A Sunny Moo
 
mdettweiler's Avatar
 
Aug 2007
USA (GMT-5)

3·2,083 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.
FWIW...I encountered a similar issue when compiling PRPnet on the noprimeleftbehind.net server (which has a very old gcc). It seems the C standard formatting macros are included by default by some compilers, but not (apparently) some versions of gcc.

The header is, in fact, being included already, but the desired macros are "turned off" when __STDC_FORMAT_MACROS is not defined.

The fix is to add "-D__STDC_FORMAT_MACROS" to CPPFLAGS in the Makefile. This sets the compiler flag that turns on the format macros. In my case, for compiling PRPnet, CPPFLAGS ended up looking like this:
Code:
Before:
CPPFLAGS=-c -g -m64 -Wall
After:
CPPFLAGS=-c -g -m64 -D__STDC_FORMAT_MACROS -Wall
The actual line might be different for sr*sieve (I haven't ever tried compiling them myself so I wouldn't know), but a similar change should do the trick.

A while back when I asked Lennart about this, he said that this modification is always necessary when building with gcc, so it may not just be limited to the really old version I'm using. Since pepi37 was able to fix his issue by upgrading to a newer gcc, perhaps the behavior has since been changed; though it seems versions with the older behavior are still quite prevalent.

If it doesn't interfere with other (non-gcc) compilers, it might be helpful to include the -D__STDC_FORMAT_MACROS flag in the official source code (both for the sr*sieve projects, and for PRPnet, which also has this issue).

Last fiddled with by mdettweiler on 2015-08-19 at 05:18
mdettweiler is offline   Reply With Quote
Old 2015-08-19, 11:01   #189
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

11110001102 Posts
Default

Quote:
Originally Posted by lalera View Post
4670 at 3.4 GHz
KEP is offline   Reply With Quote
Old 2015-08-19, 21:45   #190
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

28×19 Posts
Default

Quote:
Originally Posted by KEP View Post
4670 at 3.4 GHz
Now, if you'd just learn to spell "haswell", we'd all be in agreement.
VBCurtis is offline   Reply With Quote
Old 2015-08-20, 11:52   #191
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

2·3·7·23 Posts
Default

Quote:
Originally Posted by VBCurtis View Post
Now, if you'd just learn to spell "haswell", we'd all be in agreement.
Okay it is a Haswell I5-4670 @ 3.4GHz

Last fiddled with by KEP on 2015-08-20 at 11:55
KEP is offline   Reply With Quote
Old 2015-08-22, 10:41   #192
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

2×3×7×23 Posts
Default

If anyone would like to start up some base 3 work, please use the attached srbsieve.ini file.

Remember to change following:

mink=
maxk=

and set c= accordingly to the side you are searching (1 for sierpinski side and -1 for the riesel side)

I do recommend, for base 3 that you sieve with NewPGen* to these n:

From n=1 to n=28 if you sieve and test a range of 1G
From n=1 to n=30 if you sieve and test a range of 2G
From n=1 to n=32 if you sieve and test a range of 4G

* REMEMBER TO SIEVE EACH n, from p=1 until NewPGen TERMINATES BY ITSELF else you will have composites in your primelist.

If you sieve to only n=28, remove following lines from the srbsieve.ini file:

npgfile=29,29_.log
npgfile=30,30_.log
npgfile=31,31_.log
npgfile=32,32_.log

If you sieve to only n=30, remove following lines from the srbsieve.ini file:

npgfile=31,31_.log
npgfile=32,32_.log

If you sieve to n=32, after having changed what you are noticed to change in the beginning of this post, leave everything else untouched.

Now if we could get 16 cores with the equivalent force of an I5-4670 @ 3.4GHz running base 3, we should be able to have the entire base 3 tested to n=25K before the end of this year, as long as people use the optimized ini file, attached to this post.

Anyone care to join the effort and help getting base 3 completely started? PuzzlePeter would you?
Attached Files
File Type: ini srbsieve.ini (1.1 KB, 129 views)
KEP is offline   Reply With Quote
Old 2015-08-22, 15:42   #193
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

22×23×31 Posts
Default

I may as well jump in here.
I'm trying S3 from 1G to 1.1G

Got my newpgen files to n=23

Have latest pfgw 3.7.10
Have srsieve
Have srbsieve dated 8/15/15

SRBsieve started and removed from all 23 files
I then got the message

Started recovery at Phase 0 with 4247788 terms
ERROR m 1e10: argument out of range

My ini file looks like:

base=3
mink=1000000001
maxk=1100000000
c=1
npgfile=1,n1.log
npgfile=2,n2.log
npgfile=3,n3.log
npgfile=4,n4.log
npgfile=5,n5.log
npgfile=6,n6.log
npgfile=7,n7.log
npgfile=8,n8.log
npgfile=9,n9.log
npgfile=10,n10.log
npgfile=11,n11.log
npgfile=12,n12.log
npgfile=13,n13.log
npgfile=14,n14.log
npgfile=15,n15.log
npgfile=16,n16.log
npgfile=17,n17.log
npgfile=18,n18.log
npgfile=19,n19.log
npgfile=20,n20.log
npgfile=21,n21.log
npgfile=22,n22.log
npgfile=23,n23.log
phase=100,33000,70000
phase=335,33000,140000
phase=674,33000,315000
phase=898,33000,552500
phase=1120,33000,425000
phase=1792,33000,977500
phase=2240,33000,595000
phase=2636,33000,1080000
phase=3512,33000,2790000
phase=4364,33000,4410000
phase=5205,33000,4950000
phase=6948,33000,10620000
phase=8624,33000,18000000
phase=10288,33000,31410000
phase=13703,20000,91800000
phase=17027,15000,154800000
phase=20310,15000,190224368
phase=25000,10000,360000000

???

Last fiddled with by MyDogBuster on 2015-08-22 at 15:42
MyDogBuster is offline   Reply With Quote
Old 2015-08-22, 16:32   #194
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

22·5·89 Posts
Default

Random question, but shouldn't
Code:
kBitMap = (uint8_t *) malloc((size_t) 1 + (maxK - minK + 1 / 8));
be
Code:
kBitMap = (uint8_t *) malloc((size_t) 1 + ((maxK - minK + 1) / 8));
It hasn't caused any issues so far that I've seen, so maybe it doesn't matter, but I just wanted to make sure.
wombatman is offline   Reply With Quote
Old 2015-08-22, 16:36   #195
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

11110001102 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
I may as well jump in here.
I'm trying S3 from 1G to 1.1G

Got my newpgen files to n=23

Have latest pfgw 3.7.10
Have srsieve
Have srbsieve dated 8/15/15

SRBsieve started and removed from all 23 files
I then got the message

Started recovery at Phase 0 with 4247788 terms
ERROR m 1e10: argument out of range

My ini file looks like:

base=3
mink=1000000001
maxk=1100000000
c=1
npgfile=1,n1.log
npgfile=2,n2.log
npgfile=3,n3.log
npgfile=4,n4.log
npgfile=5,n5.log
npgfile=6,n6.log
npgfile=7,n7.log
npgfile=8,n8.log
npgfile=9,n9.log
npgfile=10,n10.log
npgfile=11,n11.log
npgfile=12,n12.log
npgfile=13,n13.log
npgfile=14,n14.log
npgfile=15,n15.log
npgfile=16,n16.log
npgfile=17,n17.log
npgfile=18,n18.log
npgfile=19,n19.log
npgfile=20,n20.log
npgfile=21,n21.log
npgfile=22,n22.log
npgfile=23,n23.log
phase=100,33000,70000
phase=335,33000,140000
phase=674,33000,315000
phase=898,33000,552500
phase=1120,33000,425000
phase=1792,33000,977500
phase=2240,33000,595000
phase=2636,33000,1080000
phase=3512,33000,2790000
phase=4364,33000,4410000
phase=5205,33000,4950000
phase=6948,33000,10620000
phase=8624,33000,18000000
phase=10288,33000,31410000
phase=13703,20000,91800000
phase=17027,15000,154800000
phase=20310,15000,190224368
phase=25000,10000,360000000

???
I'm using PFGW 3.7.9
srbsieve dated 15 august 2015 (latest version)

and this is how my ini looks:

base=3
mink=1000000001
maxk=1100000000
c=1
npgfile=1,1_.log
npgfile=2,2_.log
npgfile=3,3_.log
npgfile=4,4_.log
npgfile=5,5_.log
npgfile=6,6_.log
npgfile=7,7_.log
npgfile=8,8_.log
npgfile=9,9_.log
npgfile=10,10_.log
npgfile=11,11_.log
npgfile=12,12_.log
npgfile=13,13_.log
npgfile=14,14_.log
npgfile=15,15_.log
npgfile=16,16_.log
npgfile=17,17_.log
npgfile=18,18_.log
npgfile=19,19_.log
npgfile=20,20_.log
npgfile=21,21_.log
npgfile=22,22_.log
npgfile=23,23_.log
phase=100,33000,70000
phase=335,33000,140000
phase=674,33000,315000
phase=898,33000,552500
phase=1120,33000,425000
phase=1792,33000,977500
phase=2240,33000,595000
phase=2636,33000,1080000
phase=3512,33000,2790000
phase=4364,33000,4410000
phase=5205,33000,4950000
phase=6948,33000,10620000
phase=8624,33000,18000000
phase=10288,33000,31410000
phase=13703,20000,91800000
phase=17027,15000,154800000
phase=20310,15000,190224368
phase=25000,10000,360000000

I doesn't get the message that you get MyDogBuster. However you also has more candidates in your recovery count, than should excist after n=23 is removed. Did you stop srbsieve?

After having removed from n=1 to n=23, I have 3998517 candidates remaining and srbsieve starts processing those without problems.

Could you try and run the range with my .ini settings and see if it does make a difference?

Could you try and run it in a new folder where srbsieve and pfgw aswell srsieve has full rights and see if that makes a difference?
KEP is offline   Reply With Quote
Old 2015-08-22, 16:58   #196
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

B2416 Posts
Default

Quote:
After having removed from n=1 to n=23, I have 3998517 candidates remaining and srbsieve starts processing those without problems.

Could you try and run the range with my .ini settings and see if it does make a difference?
After having removed from n=1 to n=23, I have 3998517 candidates remaining and srbsieve starts processing those without problems.

Could you try and run the range with my .ini settings and see if it does make a difference?

Could you try and run it in a new folder where srbsieve and pfgw aswell srsieve has full rights and see if that makes a difference?
I too had 3998517 candidates remaining. (read the wrong number)

Ran with your ini and got the same error

All programs have full rights.

I'm not familiar with pfgw. Does it need an ini file?

Last fiddled with by MyDogBuster on 2015-08-22 at 16:59
MyDogBuster is offline   Reply With Quote
Old 2015-08-22, 17:09   #197
KEP
Quasi Admin Thing
 
KEP's Avatar
 
May 2005

3C616 Posts
Default

Quote:
Originally Posted by MyDogBuster View Post
I'm not familiar with pfgw. Does it need an ini file?
This is weird. I'm all out of ideas. PFGW64 (I recon that you use 64 bit) should not need an ini file (created by you) to run, srbsieve should handle all the settings, according to your srbsieve.ini file.

I just completed the same test, using PFGW 3.7.10 and still no errors. What puzzles me is that srbsieve seems to write a checkpoint file before fininshing removing n=21, n=22 and n=23 from the NewPGen files.

Maybe it is a good idea to post your srbsieve.ckpt file, it may mean something to Rogue
KEP is offline   Reply With Quote
Old 2015-08-22, 17:16   #198
MyDogBuster
 
MyDogBuster's Avatar
 
May 2008
Wilmington, DE

22×23×31 Posts
Default

Quote:
Maybe it is a good idea to post your srbsieve.ckpt file, it may mean something to Rogue
chpt file looks like this

phase=1
completedStep=3
completedMaxK=1001653986
completedKCount=33000
inProgressKCount=33000
MyDogBuster is offline   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:39 UTC 2021 up 4 days, 4:19, 0 users, load averages: 2.09, 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.