![]() |
![]() |
#584 | |
"Mark"
Apr 2003
Between here and the
19×347 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#585 | |
Jun 2012
Boulder, CO
373 Posts |
![]() Quote:
With "-G 2" or "-G 4" added in as well, i can get up to about 9.5 to 9.8M p/sec, but no higher. |
|
![]() |
![]() |
![]() |
#586 |
"Robert Gerbicz"
Oct 2005
Hungary
1,567 Posts |
![]()
Just for curiosity that is is how many k/n pairs, so what is the #k * (nmax-nmin) ?
|
![]() |
![]() |
![]() |
#587 |
Jun 2003
3·232 Posts |
![]()
The "Sieve of Eratosthenes" code becomes a bottle neck around 10-15 Mp/sec.
Last fiddled with by Citrix on 2021-10-26 at 04:46 |
![]() |
![]() |
![]() |
#588 |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
25×11×17 Posts |
![]()
Have you tried multiple instances of mtsieve?
|
![]() |
![]() |
![]() |
#589 |
"Mark"
Apr 2003
Between here and the
11001110000012 Posts |
![]() |
![]() |
![]() |
![]() |
#590 | |
Jun 2003
3·232 Posts |
![]() Quote:
You can get 60MP/sec for 4 cores. |
|
![]() |
![]() |
![]() |
#591 | |
"Alexander"
Nov 2008
The Alamo City
25·52 Posts |
![]()
Would it be possible for mtsieve to return with a non-zero exit code if it was terminated manually (i.e. with SIGINT)? I have several shell scripts for the older srsieve family of programs that have that behavior, and it's useful to know whether the range completed (particularly when it comes to determining whether or not to update a sieve progress control file, which I currently have to revert manually to the old value if I manually kill an mtsieve-family sieve program).
--------- Quote:
Last fiddled with by Happy5214 on 2021-11-02 at 00:44 Reason: Attach reply to previous post |
|
![]() |
![]() |
![]() |
#592 | |
"Mark"
Apr 2003
Between here and the
19×347 Posts |
![]() Quote:
The challenge is that the framework was designed around slower sieves, ones where each chunk of work takes much more time to process than getting the "chunk of work". This applies to most sieves. It doesn't work as well for faster sieves or computers with many/many cores where one wants a worker per core. A "chunk of work" means a fixed number of primes, not a fixed range of primes. With the former, there is a mutex around the code getting the primes so that no two workers work on the same primes and so that each worker has the optimal number of primes for its looping logic. I could change this to a "fixed range of primes". This is slightly less efficient for the worker threads, but significantly reduces the scope of the mutex. |
|
![]() |
![]() |
![]() |
#593 | |
Jun 2003
30638 Posts |
![]() Quote:
Maybe this would be helpful:- https://github.com/curtisseizert/CUDASieve |
|
![]() |
![]() |
![]() |
#594 |
Feb 2019
5·19 Posts |
![]()
> gfndsievecl.exe -n22001 -N25000 -k2000000 -K3000000 -o"out1.txt"
I tried running above input with the newest mtsieve version 2.2.2.7 and the program just exits after 5 minutes with no output / error in log file written. |
![]() |
![]() |