mersenneforum.org  

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

Reply
 
Thread Tools
Old 2013-10-28, 12:29   #111
unconnected
 
unconnected's Avatar
 
May 2009
Russia, Moscow

22×33×23 Posts
Default

sr1sieve 1.4.5 and sr2sieve 1.9.3 are both compiled and work well.
I've "patched" srsieve sources, it is now able to compile but crashes with "Floating point exception" error.
unconnected is offline   Reply With Quote
Old 2013-10-28, 12:32   #112
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

134728 Posts
Default

Quote:
Originally Posted by unconnected View Post
Some problems with compilation v. 1.0.7. I've tried gcc 4.1.2 and 4.4.7

Code:
files.c: In function ‘add_seq_knc’:
files.c:373: error: called object ‘filter_k’ is not a function
files.c: In function ‘read_input_file’:
files.c:711: error: ‘null’ undeclared (first use in this function)
files.c:711: error: (Each undeclared identifier is reported only once
files.c:711: error: for each function it appears in.)
make: *** [files.o] Error 1
filter_k is declared on line 47. Try "NULL" instead of "null".
rogue is offline   Reply With Quote
Old 2013-10-28, 17:20   #113
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×3×991 Posts
Default

Quote:
Originally Posted by unconnected View Post
sr1sieve 1.4.5 and sr2sieve 1.9.3 are both compiled and work well.
I've "patched" srsieve sources, it is now able to compile but crashes with "Floating point exception" error.
I think I have some changes I made on my Mac to address some issues, but never ported them back to Windows. I'll take a look tonight.
rogue is offline   Reply With Quote
Old 2013-10-28, 21:45   #114
pepi37
 
pepi37's Avatar
 
Dec 2011
After milion nines:)

134810 Posts
Default

Can you in sr1sieve set -f option by default - so you dont have add it in command line ( like in sr2sieve)?
pepi37 is offline   Reply With Quote
Old 2013-10-29, 00:47   #115
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

10111001110102 Posts
Default

Quote:
Originally Posted by pepi37 View Post
Can you in sr1sieve set -f option by default - so you dont have add it in command line ( like in sr2sieve)?
Not everyone wants and output file of factors from sr1sieve. I assume that most just use the -o option to write a file with the factors removed.
rogue is offline   Reply With Quote
Old 2013-11-13, 08:59   #116
ValerieVonck
 
ValerieVonck's Avatar
 
Mar 2004
Belgium

33×31 Posts
Default

Rogue,

when compiling on Mac Os X 10.9 I get the following error:

Code:
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$ make
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o srsieve.o srsieve.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o arithmetic32.o arithmetic32.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o arithmetic64.o arithmetic64.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o bitmap.o bitmap.c
In file included from bitmap.c:18:
In file included from ./memset_fast32.h:21:
./asm-x86-64-gcc.h:394:41: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
         "=m" (*(struct { uint_fast32_t dummy[count]; } *)dst)
                                        ^
1 error generated.
make: *** [bitmap.o] Error 1
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$
Can you please help me?
Thank you

Last fiddled with by ValerieVonck on 2013-11-13 at 09:00
ValerieVonck is offline   Reply With Quote
Old 2013-11-13, 13:28   #117
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·3·991 Posts
Default

Quote:
Originally Posted by CedricVonck View Post
Rogue,

when compiling on Mac Os X 10.9 I get the following error:

Code:
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$ make
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o srsieve.o srsieve.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o arithmetic32.o arithmetic32.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o arithmetic64.o arithmetic64.c
gcc -O2 -fomit-frame-pointer -ffast-math -march=k8 -m64  -Wall -DHAVE_CMOV  -DUSE_ASM -DNDEBUG  -c -o bitmap.o bitmap.c
In file included from bitmap.c:18:
In file included from ./memset_fast32.h:21:
./asm-x86-64-gcc.h:394:41: error: fields must have a constant size: 'variable length array in structure' extension will never be supported
         "=m" (*(struct { uint_fast32_t dummy[count]; } *)dst)
                                        ^
1 error generated.
make: *** [bitmap.o] Error 1
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
imac-van-cedric-vonck:srsieve_1.0.7 cedricvonck$
Can you please help me?
Thank you
I ran into the same problem. I just changed the routine to use memset, but ran into another problem. The application crashes. I suspect a compiler bug in the latest Xcode.
rogue is offline   Reply With Quote
Old 2014-01-12, 20:23   #118
f1pokerspeed
 
Jun 2012

2×53 Posts
Default

Has the stop on removal rate feature been added to sr1sieve? I have tried using -R and -r, and neither argument is handled by the program...
f1pokerspeed is offline   Reply With Quote
Old 2014-01-12, 22:42   #119
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2·3·991 Posts
Default

Quote:
Originally Posted by f1pokerspeed View Post
Has the stop on removal rate feature been added to sr1sieve? I have tried using -R and -r, and neither argument is handled by the program...
No. -r is used when sieving for RieselSieve and I don't even know if they use it for that project. -R was never added to sr1sieve.
rogue is offline   Reply With Quote
Old 2014-07-12, 17:52   #120
Antonio
 
Antonio's Avatar
 
"Antonio Key"
Sep 2011
UK

32·59 Posts
Default srsieve 1.0.7 bug

While demonstrating srsieve to a friend we happened to try 2^n-1 for n=1 to 1M with the following results in the output file:

Code:
pmin=16481841017
2^n-1
1
3
7
13
17
19
31
61
89
.
.
.
etc
It would appear to have incorrectly factored out n=2 and n=5. while this, of it's self, is not a real worry I was wondering if it was a problem in the code which may be propagated into the 'normal' search areas.

(Note. Geoffrey Reynolds' srsieve ver. 0.6.17 doesn't have this problem)
Antonio is offline   Reply With Quote
Old 2014-07-12, 18:04   #121
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

2×3×991 Posts
Default

It seems to be something that was introduced in 1.0.7. 1.0.6 has the correct output. I'll look into it.
rogue is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving twins with srsieve henryzz Twin Prime Search 0 2014-03-18 12:44
Intel announces multi-core enhancements for Haswell chips ixfd64 Hardware 8 2012-02-10 20:32
LLRnet enhancements kar_bon No Prime Left Behind 10 2008-03-28 11:21
TODO list and suggestions/comments/enhancements Greenbank Octoproth Search 2 2006-12-03 17:28
Suggestions for future enhancements Reboot It Software 16 2003-10-17 01:31

All times are UTC. The time now is 21:55.

Fri Oct 23 21:55:44 UTC 2020 up 43 days, 19:06, 0 users, load averages: 1.72, 1.69, 1.76

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.