mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Msieve (https://www.mersenneforum.org/forumdisplay.php?f=83)
-   -   Externally Generated Polynomials Don't Seem To Be Being Considered (https://www.mersenneforum.org/showthread.php?t=21983)

EdH 2017-01-29 20:36

Externally Generated Polynomials Don't Seem To Be Being Considered
 
I need some help in my setup, I guess...

I have two machines running poly select on older GPUs using msieve revision 979. Their commands to search are:
[code]
./msieve -i number -np
[/code]These appear to be working as expected and generate lots of candidates in their respective msieve.dat.p files. When interrupted, an msieve.fb file is created.

I have a third machine running factmsieve.py with a much more current version of msieve that is also tasked with polynomial selection, but it is using its CPU. I have wall time limited this polynomial run. It generates the file number.dat.p as it is running and then number.fb when the interrupt occurs. All of this is running OK.

However, I have tried to incorporate the two GPU generated groups of candidates into the CPU generated one, but the chosen polynomial never appears to be from the GPU generated lists, even when they have candidates with better scores.

I have tried concatenating the msieve.dat.p contents onto the number.dat.p file after it is initiated and I have tried starting out by generating the new number.dat.p file from the two msieve.dat.p files prior to running factmsieve.py.

What might I be missing?

Thanks.

chris2be8 2017-01-30 16:47

1 Attachment(s)
Here's a perl script to find the best poly in several NAME.*.msieve.dat.p files and generate NAME.poly from it. It assumes NAME.n exists in the current directory.

I wrote it to be called from a shell script which would have run several msieve tasks in parallel. But it should work if you manually put them all in 1 dir, then call this script (with 1 parm of NAME).

Chris

EdH 2017-01-31 00:03

[QUOTE=chris2be8;451844]Here's a perl script to find the best poly in several NAME.*.msieve.dat.p files and generate NAME.poly from it. It assumes NAME.n exists in the current directory.

I wrote it to be called from a shell script which would have run several msieve tasks in parallel. But it should work if you manually put them all in 1 dir, then call this script (with 1 parm of NAME).

Chris[/QUOTE]
I'll look it over, but I'd need to modify factmsieve.py to make use of it, since everything is running automated and scripted to that right now. I'm not too opposed to modifying it - I already have for mpi and other changes, but I thought perhaps there was a simple way to have the msieve thread consider already generated polys. Maybe I need to separate the selection steps. Of course, that's a modification, as well.

Thanks.
-Ed

jasonp 2017-02-03 14:58

Polynomial selection will not consider polynomials that have already been generated in the .p file that is the output from the stage 2 root sieve. That's true even if you manually choose the best polynomial and make the .fb file out of it; then polynomial selection sees you have already chosen a polynomial, and decides its job is finished :)

EdH 2017-02-03 15:13

[QUOTE=jasonp;452170]Polynomial selection will not consider polynomials that have already been generated in the .p file that is the output from the stage 2 root sieve. That's true even if you manually choose the best polynomial and make the .fb file out of it; then polynomial selection sees you have already chosen a polynomial, and decides its job is finished :)[/QUOTE]
Thanks! I had noticed the second part. I'm currently experimenting with having the better GPU machine supply the .fb file, instead of additions to the .p file, which causes the poly selection to be skipped altogether in the factmsieve.py machine. That fits with your explanation. The only wrinkle is that I had hoped to use two GPU machines, without having to manually select anything.

Thanks for all...


All times are UTC. The time now is 01:12.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.