![]() |
![]() |
#507 | |
"Mark"
Apr 2003
Between here and the
22·7·223 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#508 |
"Mark"
Apr 2003
Between here and the
22×7×223 Posts |
![]()
I have released 2.1.5. Here are the changes:
Code:
framework: Added MpArith.h (non-vectorized) and changed class names in MpArithVector.h. Overloaded HashTable constructor as needed for srsieve2. srsieve2, srsieve2cl: version 1.4 Lots of refactoring to support special sieving logic for c=1 sequences. Implemented sr1sieve logic using Montgomery mulmod logic (CPU only). Change array of sequences to a linked list to avoid compiler warnings. Add support for pmin= line in input file (as generated by srsieve/srfile). Right now the c=1 logic only works for a single sequence. If you have multiple sequences it will use the generic logic. Support for multiple sequences will come in the future, but that isn't next on my list. The c=1 logic is about 15% slower than sr1sieve based upon the limited testing I have done. Most of that is due to having zero hand-tuned ASM in that logic. sr1sieve has a ton of ASM and I am rather loathe to pull it into srsieve2. On the plus side I intend to focus next on fixing bugs (if any are reported) and implementing the OpenCL logic for a single c=1 sequence. It should be doable, but I don't know how fast it will be or if I will find other limits that prevent it from performing well. I think that the issue reported by Plutie is fixed, but I have not tested it. Last fiddled with by rogue on 2021-01-26 at 20:31 |
![]() |
![]() |
![]() |
#509 |
"Dylan"
Mar 2017
3×11×17 Posts |
![]()
Compiling the latest version of mtsieve (r92) fails at CisOneSequenceHelper.cpp:
Code:
g++ -Isieve -m64 -Wall -O3 -std=c++11 -c -o sierpinski_riesel/CisOneSequenceHelper_cpu.o sierpinski_riesel/CisOneSequenceHelper.cpp sierpinski_riesel/CisOneSequenceHelper.cpp:13:10: fatal error: HashTable.h: No such file or directory 13 | #include "HashTable.h" | ^~~~~~~~~~~~~ compilation terminated. make: *** [makefile:131: sierpinski_riesel/CisOneSequenceHelper_cpu.o] Error 1 Code:
#include "../core/HashTable.h" |
![]() |
![]() |
![]() |
#510 | |
"Mark"
Apr 2003
Between here and the
141448 Posts |
![]() Quote:
BTW, if anyone has ideas for optimizations for the new c=1 logic, I would appreciate if you posted them in the "mtsieve enhancements" thread. Last fiddled with by rogue on 2021-01-27 at 00:09 |
|
![]() |
![]() |
![]() |
#511 | |
Dec 2011
After milion nines:)
5×281 Posts |
![]() Quote:
Last version crash, version 1.3 works without problems |
|
![]() |
![]() |
![]() |
#512 |
"Mark"
Apr 2003
Between here and the
22×7×223 Posts |
![]() |
![]() |
![]() |
![]() |
#513 | |
Dec 2011
After milion nines:)
5·281 Posts |
![]() This is part of input file Quote:
|
|
![]() |
![]() |
![]() |
#514 |
"Mark"
Apr 2003
Between here and the
22×7×223 Posts |
![]()
Found the problem. It will be fixed in the next release.
|
![]() |
![]() |
![]() |
#515 |
Dec 2011
After milion nines:)
5·281 Posts |
![]()
Great news, thanks!
|
![]() |
![]() |
![]() |
#516 |
"Mark"
Apr 2003
Between here and the
22·7·223 Posts |
![]()
I posted 1.4.1 of srsieve2 at sourceforge in its own 7z file.
Upon some further testing, it is about 30% slower than sr1sieve (with x86 asm) and 10% slower than sr1sieve (with no x86 asm). I fully expect that srsieve2cl with c=1 support in the GPU will be much faster than sr1sieve even on modest GPUs, so I'm not too concerned about the poorer performance at this time. As much as I would love to stop supporting sr1sieve, I don't think that is going to happen anytime soon. Last fiddled with by rogue on 2021-01-29 at 03:36 |
![]() |
![]() |
![]() |
#517 | |
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
2×2,909 Posts |
![]() Quote:
Also I get a seg fault after running "./srsieve2 -P 1e9 -n 1 -N 100000 -s "19920911*2^n+1"" This is using r95 of the code on Sourceforge. |
|
![]() |
![]() |