![]() |
![]() |
#1 |
"Ed Hall"
Dec 2009
Adirondack Mtns
2×2,251 Posts |
![]()
The section about the Square Root phase in README.nfs describes running parallel instances for separate dependencies on separate machines. Is there a reason they can't be done as several threads on a single machine? Can they be run within the same directory, or are there intermediate files that collide?
|
![]() |
![]() |
![]() |
#2 |
Apr 2010
22×3×19 Posts |
![]()
You can do something like
Code:
for i in $(seq 1 16); do msieve -v -nc3 "dep_first=$i dep_last=$i" & done wait This works for me. |
![]() |
![]() |
![]() |
#3 | |
Apr 2020
10101110012 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
#4 |
Jun 2012
349710 Posts |
![]()
I remember both Greg and Ryan have run sqrt in parallel sometime in the past but with Greg saying it’s harder than it looks (or something to that effect).
Personally I’m willing to wait it out. If it takes two weeks to get through LA, what’s another 6 hours? It is still an intriguing idea. I just finished a job yesterday in which LA took 8 days but sqrt took another 20 hours. Which was a little annoying. |
![]() |
![]() |
![]() |
#5 | |||
"Ed Hall"
Dec 2009
Adirondack Mtns
10001100101102 Posts |
![]() Quote:
Quote:
Quote:
Thanks for all the help. Now I just need to implement it. . . |
|||
![]() |
![]() |
![]() |
#6 |
Tribal Bullet
Oct 2004
5×709 Posts |
![]()
If memory serves, the Factoring As A Service project added patches to the 2015-era Msieve source which allowed the square root to run in parallel, because they were working on huge AWS nodes and the rest of their pipeline finished up so quickly.
|
![]() |
![]() |
![]() |
#7 |
"Ed Hall"
Dec 2009
Adirondack Mtns
2×2,251 Posts |
![]()
Thanks everyone!
A localized version of what Gimarel posted seems to be working great for my setup. Since I was already basing my scripts on the finishing of the Square Root operation, what I have set up now, is to start and release 15 threads which don't wait (&) and then delay for a couple minutes prior to starting the 16th thread, which will hold the script until it is finished. By then the other 15 should have had their chances to return factors. The only foreseeable issue, might be the rare occasion when the first 16 dependencies come up short. I could add threads, but for now I'll stick with 16. |
![]() |
![]() |
![]() |
#8 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
450210 Posts |
![]() Quote:
BTW, for that c140, my 16 invocations of SR returned five, p98 factor... p43 factor" and eleven instances of "no factor found." |
|
![]() |
![]() |
![]() |
#9 |
Jul 2003
So Cal
3×787 Posts |
![]()
With 34-bit sqrts taking longer and plenty of memory available on the machines I use, I've been thinking about implementing a threaded sqrt. It looks like FaaS is released under the LGPL, but I'll contact them to see if they might release the msieve changes. If so, I'll put them in my development branch.
|
![]() |
![]() |
![]() |
#10 |
Jul 2003
So Cal
3·787 Posts |
![]()
It's now implementing in my development branch at
https://github.com/gchilders/msieve_...cuda-nfsathome Running -nc3 without multiple threads uses the standard code while running with 2 or more threads uses the FaaS code. |
![]() |
![]() |
![]() |
#11 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
2·2,251 Posts |
![]() Quote:
|
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CADO-NFS square root | paul0 | Factoring | 0 | 2020-10-06 15:27 |
NFS Square Root failed | wreck | Msieve | 15 | 2019-08-07 22:32 |
Square Root Days | davar55 | Lounge | 0 | 2016-03-16 20:19 |
square root crash | bsquared | Msieve | 17 | 2010-04-09 14:11 |
Square root of 3 | Damian | Math | 3 | 2010-01-01 01:56 |