mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2010-04-25, 20:00   #452
ThomRuley
 
ThomRuley's Avatar
 
May 2003

23×31 Posts
Default

Now it's giving me a whole lot of readouts like this one:

-> =====================================================
-> Best score so far: 3.31e-09 (good_score=2.8e-09)
-> =====================================================
-> Searching leading coefficients from 79001 to 80000
-> pol51m0b -b example.polselyour-e7ndl1jv3j.3696 -v -v -p 4 -n 5.56e+14 -a 79 -
A 80> example.polselyour-e7ndl1jv3j.3696.log
-> pol51opt -b example.polselyour-e7ndl1jv3j.3696 -v -v -n 2.86e+13 -N 3.56e+11
-e 2.8e-09>> example.polselyour-e7ndl1jv3j.3696.log
appending example.polselyour-e7ndl1jv3j.3696.51.m to example.polsel.51.m.all
appending example.polselyour-e7ndl1jv3j.3696.cand to example.polsel.cand.all
-> =====================================================
-> Best score so far: 3.31e-09 (good_score=2.8e-09)

Is that good?
ThomRuley is offline   Reply With Quote
Old 2010-04-25, 20:28   #453
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

Yes - that's now looking for polynomials.

Brian
Brian Gladman is offline   Reply With Quote
Old 2010-04-25, 20:32   #454
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

Quote:
Originally Posted by miklin View Post
I so think that it is necessary to add simply check presence of programs in the ways specified by the user. If all normally to continue that script work if there is no that to give out an error message.
It is already designed to do this when CHECK_BINARIES is set to True.

I just checked this by deleting MSIEVE in my setup and it works fine for me.

Brian
Brian Gladman is offline   Reply With Quote
Old 2010-04-25, 20:37   #455
ThomRuley
 
ThomRuley's Avatar
 
May 2003

23·31 Posts
Default

Thanks for all your help guys, especially Miklin, Brian and andi.
ThomRuley is offline   Reply With Quote
Old 2010-04-25, 22:36   #456
miklin
 
miklin's Avatar
 
Nov 2007

3×52 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
It is already designed to do this when CHECK_BINARIES is set to True.

I just checked this by deleting MSIEVE in my setup and it works fine for me.

Brian
Here that at me it turns out with removed msieve
On it also has written, it needs to be checked up.
For me it not actually is this check or it is not present. But here is how time this case has shown that check does not work.

# Set binary directory paths

GGNFS_PATH = '../../bin/'
MSIEVE_PATH = '../../bin/'

# Set the number of CPU's and threads

NUM_CPUS = 2
NUM_THREADS = NUM_CPUS
#USE_CUDA = True
USE_CUDA = False
GPU_NUM = 0

# Set global flags to control operation

CHECK_BINARIES = True
CHECK_POLY = True

CLEANUP = False
DOCLASSICAL = False
NO_DEF_NM_PARAM = False
PROMPTS = False
SAVEPAIRS = True
USE_KLEINJUNG_FRANKE_PS = False
USE_MSIEVE_POLY = True
#USE_KLEINJUNG_FRANKE_PS = True
#USE_MSIEVE_POLY = False
VERBOSE = True

# End of configuration options


Code:
homes102:/home/factorization/ggnfs/trunk/tests/test_test# ../factmsieve.py example.n 
-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico.         This is version 0.67, dated 10th April 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Using 2 threads
-> Working with NAME = example
-> Error: Polynomial file example.poly does not exist!
-> Found n = 2881039827457895971881627053137530734638790825166127496066674320241571446494762386620442953820735453.
-> Running polynomial selection ...
-> ./msieve -s ../tests/test_test/example.dat -l ../tests/test_test/example.log -i ../tests/test_test/example.ini -nf ../tests/test_test/example.fb -v -np
Traceback (most recent call last):
  File "../factmsieve.py", line 1993, in <module>
    run_msieve_poly(fact_p)
  File "../factmsieve.py", line 925, in run_msieve_poly
    elif run_msieve('-v -np'):
  File "../factmsieve.py", line 348, in run_msieve
    ret = run_exe(MSIEVE, args + ap)
  File "../factmsieve.py", line 320, in run_exe
    p = subprocess.Popen([ex] + args.split(' '), **al)
  File "/usr/local/lib/python2.7/subprocess.py", line 683, in __init__
    errread, errwrite)
  File "/usr/local/lib/python2.7/subprocess.py", line 1198, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
siever terminated
homes102:/home/factorization/ggnfs/trunk/tests/test_test#

Last fiddled with by miklin on 2010-04-25 at 22:49
miklin is offline   Reply With Quote
Old 2010-04-26, 08:41   #457
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

This is a bug carried over from the original Perl script. It seems that some polynomial processing with msieve has been added before the binary checks are done.

I have revamped the binary checking in version 68 of the script that is now available at:

http://www.gladman.plushost.co.uk/ol...tmsieve.py.zip

This also includes a few other minor changes to ensure that the script exits gracefully under some obscure error conditions.

It should also work with Python 2.6, 2.7 and 3.1

Brian
Brian Gladman is offline   Reply With Quote
Old 2010-04-26, 08:56   #458
scalabis
 
Mar 2010

1916 Posts
Post

Quote:
Originally Posted by Brian Gladman View Post
This is a bug carried over from the original Perl script. It seems that some polynomial processing with msieve has been added before the binary checks are done.

I have revamped the binary checking in version 68 of the script that is now available at:

http://www.gladman.plushost.co.uk/ol...tmsieve.py.zip

This also includes a few other minor changes to ensure that the script exits gracefully under some obscure error conditions.

It should also work with Python 2.6, 2.7 and 3.1

Brian
Thanks a lot.

I will try it soon.

Regards
scalabis is offline   Reply With Quote
Old 2010-04-26, 16:11   #459
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23×3×11 Posts
Default

Is it possible to sieve on both sides ( -a and -r) ?
Can i change -a to -r in the script (maybe in Line 655 from -a to -r) ?
It would be a nice option to sieve on both sides automatically.

Regards Andi_HB
Andi_HB is offline   Reply With Quote
Old 2010-04-26, 16:33   #460
miklin
 
miklin's Avatar
 
Nov 2007

3×52 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
This is a bug carried over from the original Perl script. It seems that some polynomial processing with msieve has been added before the binary checks are done.

I have revamped the binary checking in version 68 of the script that is now available at:

http://www.gladman.plushost.co.uk/ol...tmsieve.py.zip

This also includes a few other minor changes to ensure that the script exits gracefully under some obscure error conditions.

It should also work with Python 2.6, 2.7 and 3.1

Brian
USE_KLEINJUNG_FRANKE_PS = False
USE_MSIEVE_POLY = True

Code:
homes102:/home/factorization/ggnfs/trunk/tests/test_test# ../factmsieve.py example.n 
-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico.  Version 0.68 (Python 2.6 or later) 24th April 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Using 2 threads
-> Working with NAME = example
-> Could not find the program: ./msieve.
-> Did you set the paths properly in this script?
-> They are currently set to:
-> GGNFS_BIN_PATH = ../../bin/
-> MSIEVE_BIN_PATH = ../../bin/
USE_KLEINJUNG_FRANKE_PS = True
USE_MSIEVE_POLY = False

Code:
homes102:/home/factorization/ggnfs/trunk/tests/test_test# ../factmsieve.py example.n 
-> ________________________________________________________________
-> | Running factmsieve.py, a Python driver for MSIEVE with GGNFS |
-> | sieving support. It is Copyright, 2010, Brian Gladman and is |
-> | a conversion of factmsieve.pl that is Copyright, 2004, Chris |
-> | Monico.  Version 0.68 (Python 2.6 or later) 24th April 2010. |
-> |______________________________________________________________|
-> This is client 1 of 1
-> Using 2 threads
-> Working with NAME = example
-> Error: Polynomial file example.poly does not exist!
-> Found n = 2881039827457895971881627053137530734638790825166127496066674320241571446494762386620442953820735453.
-> Running polynomial selection ...
-> Could not find the program: pol51m0b.
-> Did you set the paths properly in this script?
-> They are currently set to:
-> GGNFS_BIN_PATH = ../../bin/
-> MSIEVE_BIN_PATH = ../../bin/

Last fiddled with by miklin on 2010-04-26 at 16:39
miklin is offline   Reply With Quote
Old 2010-04-28, 00:50   #461
ThomRuley
 
ThomRuley's Avatar
 
May 2003

F816 Posts
Default

So far, so good, but I did have one more question. How does one go about manually setting the polynomial for SNFS?
ThomRuley is offline   Reply With Quote
Old 2010-04-28, 12:42   #462
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

102538 Posts
Default

Quote:
Originally Posted by ThomRuley View Post
So far, so good, but I did have one more question. How does one go about manually setting the polynomial for SNFS?
E.g. save the poly in example.poly and run "factmsieve.py example".
Mini-Geek is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve & ggnfs on MacOS xilman Msieve 8 2017-05-20 00:12
Factorizing with MSIEVE, GGNFS & Factmsieve.py Romuald Msieve 24 2015-11-09 20:16
Infinite loop for ggnfs or msieve Greebley Aliquot Sequences 4 2013-02-06 19:28
Error running GGNFS+msieve+factmsieve.py D. B. Staple Factoring 6 2011-06-12 22:23
A new driver? (or type of driver?) 10metreh Aliquot Sequences 3 2010-02-15 15:57

All times are UTC. The time now is 10:55.


Mon Aug 2 10:55:23 UTC 2021 up 10 days, 5:24, 0 users, load averages: 1.72, 1.72, 1.60

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.