mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2017-01-29, 20:36   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11×347 Posts
Default 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
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.
EdH is offline   Reply With Quote
Old 2017-01-30, 16:47   #2
chris2be8
 
chris2be8's Avatar
 
Sep 2009

207810 Posts
Default

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
Attached Files
File Type: txt refindpoly.pl.txt (1.6 KB, 154 views)
chris2be8 is offline   Reply With Quote
Old 2017-01-31, 00:03   #3
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11·347 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
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
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
EdH is offline   Reply With Quote
Old 2017-02-03, 14:58   #4
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

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 :)
jasonp is offline   Reply With Quote
Old 2017-02-03, 15:13   #5
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

11·347 Posts
Default

Quote:
Originally Posted by jasonp View Post
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 :)
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...
EdH is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
When is an exponent considered "started"? ric PrimeNet 8 2017-04-03 08:41
Are these polynomials being generated correctly? Sam Kennedy Factoring 0 2016-12-02 19:01
[Win7] GnuPG-generated files not showing up? ixfd64 Lounge 1 2012-06-23 12:43
Official "String copy Statement Considered Harmful" thread Dubslow Programming 19 2012-05-31 17:49
Any puzzle I can't solve in 15 minutes is to be considered HARD JuanTutors Puzzles 14 2005-05-27 21:27

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


Sat Jul 17 01:12:54 UTC 2021 up 49 days, 23 hrs, 1 user, load averages: 0.44, 1.02, 1.29

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.