![]() |
|
|
#562 |
|
Mar 2010
3×19 Posts |
Thanks for that! Any chance you can get the parallel ecm option for Windows machines?
|
|
|
|
|
|
#563 |
|
"Ben"
Feb 2007
1101110000012 Posts |
As of now, no. bchaffin used shared memory together with a function called fork() to get parallel ecm going. From what I understand, shared memory is possible to do in windows, but there just isn't a good (any?) way to emulate fork() on windows. The only alternative I can see is a completely different approach using external processes and parsing of log files, which is not an attractive option. So for the foreseeable future, it will remain linux only :(
|
|
|
|
|
|
#564 | |
|
Sep 2010
Portland, OR
22·3·31 Posts |
Quote:
Before I attempt that (if I ever do) I would look at gmp-ecm to see how hard it would be to give it a thread-safe library call. That's a pretty daunting task since it's a big code base which haven't looked at yet, but it's on my list. In any event, multi-threaded ecm probably isn't coming to Windows any time soon. Sorry, I'd do it if I knew how. ![]() One thought though: I read that Cygwin supports fork() on Windows (reportedly with some really ugly hacks). I haven't tried it, but if you could get YAFU to compile under Cygwin, it might work. |
|
|
|
|
|
|
#565 | ||
|
Sep 2010
Scandinavia
3·5·41 Posts |
Quote:
Quote:
Looking forward to the patch. Thanks Ben! |
||
|
|
|
|
|
#566 | ||
|
"Ben"
Feb 2007
DC116 Posts |
Quote:
Quote:
|
||
|
|
|
|
|
#567 | |
|
May 2008
Worcester, United Kingdom
22·7·19 Posts |
Quote:
|
|
|
|
|
|
|
#568 | |
|
"Ben"
Feb 2007
7×503 Posts |
Quote:
|
|
|
|
|
|
|
#569 | |
|
May 2008
Worcester, United Kingdom
22·7·19 Posts |
Quote:
I don't know anything about the specifics of ECM thread safety (or lack of it) but I doubt that pthreads can magically introduce thread safety where there is none. How much global data is involved and is it well defined and well structured? |
|
|
|
|
|
|
#570 | |
|
"Ben"
Feb 2007
7·503 Posts |
Quote:
That's the problem - I don't know for sure. I'm not familiar enough with the code and all my (brief) attempts to become so have ended in frustration, so far. |
|
|
|
|
|
|
#571 |
|
Tribal Bullet
Oct 2004
3×1,181 Posts |
You could ask the GMP-ECM mailing list, the maintainers are very responsive. Alex can comment too if he's reading :)
IIRC the global state for generating primes was supposed to be the only non-reentrant part of the library. You might be able to add a __thread keyword to the relevant data items and see if it still works. |
|
|
|
|
|
#572 |
|
"Ben"
Feb 2007
352110 Posts |
NFS should now be working again in the 1.24 download.
Cheers! - b. |
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running YAFU via Aliqueit doesn't find yafu.ini | EdH | YAFU | 8 | 2018-03-14 17:22 |
| YAFU-1.34 | bsquared | YAFU | 119 | 2015-11-05 16:24 |
| Yafu bug. | storflyt32 | YAFU | 2 | 2015-06-29 05:19 |
| yafu-1.33 | bsquared | YAFU | 12 | 2012-11-08 04:12 |
| yafu-1.32.1 | bsquared | YAFU | 21 | 2012-09-04 19:44 |