![]() |
![]() |
#1 |
Mar 2007
Austria
2×151 Posts |
![]()
Is it possible to run the qs/nfs sieve process multithreaded with the current version of msieve?
when i run a qs job with -t 4, it uses only one of my 4 cores for sieving. Regards, nugget |
![]() |
![]() |
![]() |
#2 |
Tribal Bullet
Oct 2004
32×5×79 Posts |
![]()
Afraid not; msieve only uses multiple threads for the linear algebra, and then only if the matrix is larger than anything the QS part can produce. I've always assumed that if you wanted more than one sieving process that you'd just run the msieve binary more than once (with relations going to a different data file each time).
|
![]() |
![]() |
![]() |
#3 |
Mar 2007
Austria
2·151 Posts |
![]()
Thanks for the fast reply
--nugget |
![]() |
![]() |
![]() |
#4 | |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
24·13·29 Posts |
![]() Quote:
are there any disadvantages to it or is it hard to implement |
|
![]() |
![]() |
![]() |
#5 | |
Tribal Bullet
Oct 2004
32·5·79 Posts |
![]() Quote:
As for why sieving isn't multithreaded, that's because sieving parallelizes trivially but the machinery for writing multithreaded programs may not be trivial. If you want several threads to sieve, you have to go through all the data structures and figure out which ones can be shared, which ones need to be copied and how the threads will interact with each other. If they don't interact with each other, whoever spawns them is itself a thread so there is still some thread interactions to deal with. For very large problems that need huge factor bases and large auxiliary data, it might be beneficial to split the sieving up, but in all cases it's easier for the user to write a script that runs "msieve -l <unique_datfile> <other_options> &" in a loop. Not to say that it's impossible to do, just that it's a low priority for me, behind bug fixes and NFS postprocessing improvements. If you do NFS sieving using GGNFS or the Franke tools, and you have multiple machines, then you have to do the parallel processing manually anyway. |
|
![]() |
![]() |
![]() |
#6 | |
Just call me Henry
"David"
Sep 2007
Liverpool (GMT/BST)
24·13·29 Posts |
![]() Quote:
i understand ur reasons for not doing it |
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multithreaded PFGW | IBethune | Software | 5 | 2018-03-16 17:52 |
Which Work Types are Multithreaded | tului | Software | 6 | 2015-11-28 21:59 |
Feature request: multithreaded polsel | Andi47 | Msieve | 1 | 2010-02-20 01:16 |
Stage 1 with mprime/prime95, stage 2 with GMP-ECM | D. B. Staple | Factoring | 2 | 2007-12-14 00:21 |
Stage 1 and stage 2 tests missing | Matthias C. Noc | PrimeNet | 5 | 2004-08-25 15:42 |