mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-09-08, 22:10   #837
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Quote:
Originally Posted by yoyo View Post
Thanks for the yafu update. I deployed the version into the Boinc system.

Regarding gnfs:
On which composite size yafu will use gnfs?
Where can I find gnfs binaries?
How to configure yafu with gnfs?

yoyo
Without tuning (which would be the case here), it should switch at 95 digits.

Windows x64 binaries are here, and linux binaries are also available but I don't have the link handy ATM. Will post later unless someone beats me to it.

Configuration is pretty simple - just put the ggnfs binaries in the same directory as yafu and then create a yafu.ini file with this line in it:
ggnfs_dir=.\

or, for linux systems
ggnfs_dir=./

All of the msieve poly generation and post-processing is compiled into the yafu binary already.
bsquared is offline   Reply With Quote
Old 2011-09-09, 03:32   #838
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

28×3×5 Posts
Default

Quote:
Originally Posted by bsquared View Post
...
Windows x64 binaries are here, and linux binaries are also available but I don't have the link handy ATM. Will post later unless someone beats me to it...
Linux 64-bit binaries are referenced in this post which is referenced on Jeff Gilcrist's page, Beginners Guide to NFS factoring using GGNFS and MSIEVE.

How far back do I need to go to find linux 32-bit binaries or compile with linux 32-bit? I didn't see any 32-bit binaries on Sourceforge. If I can locate the link, I'll try your original location...Found them!

Last fiddled with by EdH on 2011-09-09 at 03:43
EdH is offline   Reply With Quote
Old 2011-09-09, 03:47   #839
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7×503 Posts
Default

Quote:
Originally Posted by EdH View Post

How far back do I need to go to find linux 32-bit binaries or compile with linux 32-bit? I didn't see any 32-bit binaries on Sourceforge. If I can locate the link, I'll try your original location...Found them!
Thanks for the links - hadn't found the energy to go dig those up yet.

Glad you found something... browsing around my directory tree I found some from 1.20.2. Not sure if there is a later version (pretty sure the current one won't build for 32bit linux).
bsquared is offline   Reply With Quote
Old 2011-09-09, 04:03   #840
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

28·3·5 Posts
Default

Quote:
Originally Posted by bsquared View Post
...
Glad you found something... browsing around my directory tree I found some from 1.20.2. Not sure if there is a later version (pretty sure the current one won't build for 32bit linux).
No problem on the links. Glad I can be helpful on occasion. Yeah, 1.20.2 is where I found them. I need to run down some illegal instruction errors, though. I know I've had some issues in the past, most notably the AMD machine without SSE2, but currently I'm running a gp/pari one line routine searching for sociable numbers. I'm wondering if I can do something with YAFU that might prove faster - maybe via perl.

Thanks for all...

Last fiddled with by EdH on 2011-09-09 at 04:13
EdH is offline   Reply With Quote
Old 2011-09-09, 06:19   #841
Random Poster
 
Random Poster's Avatar
 
Dec 2008

101100112 Posts
Default

Quote:
Originally Posted by bsquared View Post
Will do, although "clean up source" has been at the top of my todo list for years now, and, well, it's still a mess .
Maybe I could help with that. Here's a patch to get rid of HAVE_GMP and HAVE_GMP_ECM (except from the build.vc* directories; I'll leave those to someone else).
Attached Files
File Type: gz yafu.diff.gz (1.4 KB, 74 views)
Random Poster is offline   Reply With Quote
Old 2011-09-09, 09:17   #842
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

10011011112 Posts
Default

Quote:
Originally Posted by bsquared View Post
Without tuning (which would be the case here), it should switch at 95 digits.

Windows x64 binaries are here, and linux binaries are also available but I don't have the link handy ATM. Will post later unless someone beats me to it.

Configuration is pretty simple - just put the ggnfs binaries in the same directory as yafu and then create a yafu.ini file with this line in it:
ggnfs_dir=.\

or, for linux systems
ggnfs_dir=./

All of the msieve poly generation and post-processing is compiled into the yafu binary already.
Seems that I did something wrong. Yafu started SIQS for a C100:

Code:
factoring 4344785573743118770556023900443223939666940342093524536192603182398658167805770095100402056292058299
using pretesting plan: normal

div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 1, starting 1000 iterations on C100
rho: x^2 + 3, starting 1000 iterations on C100
rho: x^2 + 2, starting 1000 iterations on C100
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
pm1: starting B1 = 100K, B2 = gmp-ecm default on C100
ecm: 25/25 curves on C100 input, at B1 = 2K, B2 = gmp-ecm default
ecm: 90/90 curves on C100 input, at B1 = 11K, B2 = gmp-ecm default
ecm: 200/200 curves on C100 input, at B1 = 50K, B2 = gmp-ecm default
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
pm1: starting B1 = 2500K, B2 = gmp-ecm default on C100
ecm: 400/400 curves on C100 input, at B1 = 250K, B2 = gmp-ecm default
pp1: starting B1 = 5M, B2 = gmp-ecm default on C100
pp1: starting B1 = 5M, B2 = gmp-ecm default on C100
pp1: starting B1 = 5M, B2 = gmp-ecm default on C100
pm1: starting B1 = 10M, B2 = gmp-ecm default on C100
ecm: 14/14 curves on C100 input, at B1 = 1M, B2 = gmp-ecm default
ecm: 1/1 curves on C100 input, at B1 = 10M, B2 = gmp-ecm default

starting SIQS on c100: 4344785573743118770556023900443223939666940342093524536192603182398658167805770095100402056292058
299

==== sieving in progress ( 3 threads):  117888 relations needed ====
====            Press ctrl-c to abort and save state            ====
Code:
 Directory of D:\yoyo\yoyo\yafu\ggnfstest

09.09.2011  08:25    <DIR>          .
09.09.2011  08:25    <DIR>          ..
09.09.2011  09:08             5.195 factor.log
20.03.2011  06:26           346.112 gnfs-lasieve4I11e.exe
09.09.2011  08:07           346.112 gnfs-lasieve4I12e.exe
09.09.2011  08:07           346.112 gnfs-lasieve4I13e.exe
20.03.2011  06:26           346.112 gnfs-lasieve4I14e.exe
09.09.2011  08:07           346.112 gnfs-lasieve4I15e.exe
09.09.2011  08:07           346.112 gnfs-lasieve4I16e.exe
09.09.2011  08:26               743 session.log
09.09.2011  11:15        85.670.022 siqs.dat
27.07.2011  22:30         1.380.352 yafu.exe
09.09.2011  08:08                14 yafu.ini
09.09.2011  08:08                12 yafu.ini.bak
09.09.2011  08:25             1.921 yafu.pl
09.09.2011  08:09             1.920 yafu.pl.bak
              14 File(s)     89.136.851 bytes
               2 Dir(s)  135.520.509.952 bytes free

D:\yoyo\yoyo\yafu\ggnfstest>type yafu.ini
ggnfs_dir=.\

D:\yoyo\yoyo\yafu\ggnfstest>
yoyo
yoyo is offline   Reply With Quote
Old 2011-09-12, 13:37   #843
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7×503 Posts
Default

Quote:
Originally Posted by Random Poster View Post
Maybe I could help with that. Here's a patch to get rid of HAVE_GMP and HAVE_GMP_ECM (except from the build.vc* directories; I'll leave those to someone else).
Thanks! I'll get that rolled in.
bsquared is offline   Reply With Quote
Old 2011-09-12, 14:09   #844
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

DC116 Posts
Default

Quote:
Originally Posted by yoyo View Post
Seems that I did something wrong. Yafu started SIQS for a C100:
It doesn't look like you did anything wrong, but on the other hand I just tried a similar experiment and it started NFS as expected. Would you mind retrying with arguments -v -v so I can see the expected time calculations? Also, if you don't want the test to take so long you can use an option like this:
-ecm_qs_ratio 0.01
bsquared is offline   Reply With Quote
Old 2011-09-12, 15:12   #845
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

62310 Posts
Default

Code:
09/12/11 17:05:55 v1.28.5 @ STM11072, System/Build Info:
Using GMP-ECM 6.3, Powered by MPIR 2.2.0
detected Intel(R) Core(TM)2 Duo CPU     T7250  @ 2.00GHz
detected L1 = 32768 bytes, L2 = 2097152 bytes, CL = 64 bytes
measured cpu frequency ~= 963.124200

===============================================================
======= Welcome to YAFU (Yet Another Factoring Utility) =======
=======             bbuhrow@gmail.com                   =======
=======     Type help at any time, or quit to quit      =======
===============================================================
cached 78504 primes. pmax = 1000099


>> factoring 1632377875657469552020979401590116999712426040784131238357998774166047428051531550697526879363076919
using pretesting plan: normal

div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 1, starting 1000 iterations on C100
rho: x^2 + 3, starting 1000 iterations on C100
rho: x^2 + 2, starting 1000 iterations on C100
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
pp1: starting B1 = 20K, B2 = gmp-ecm default on C100
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
pm1: starting B1 = 100K, B2 = gmp-ecm default on C100
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
ecm: 25/25 curves on C100 input, at B1 = 2K, B2 = gmp-ecm default
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
***** estimating 90 more curves can be run at 20 digit level
ecm: 90/90 curves on C100 input, at B1 = 11K, B2 = gmp-ecm default
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
***** estimating 200 more curves can be run at 25 digit level
ecm: 200/200 curves on C100 input, at B1 = 50K, B2 = gmp-ecm default
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
***** estimating 3 more curves can be run at p+1 level 2
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
pp1: starting B1 = 1250K, B2 = gmp-ecm default on C100
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
***** estimating 1 more curve can be run at p-1 level 2
pm1: starting B1 = 2500K, B2 = gmp-ecm default on C100
***** using 64bit windows core2 data for QS time estimation
***** qs time estimate = 53522 seconds
***** gnfs time estimate = 1.79769e+308 seconds
***** estimating 67 more curves can be run at 30 digit level
ecm: 34/67 curves on C100 input, at B1 = 250K, B2 = gmp-ecm default
... not yet finished.
yoyo
yoyo is offline   Reply With Quote
Old 2011-09-12, 15:23   #846
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

352110 Posts
Default

Thanks, I see the problem now - when compiled with visual studio a pre-processor macro is disabled when it shouldn't be. That forces siqs to be run instead of nfs. I've primarily been testing the mingw-64 builds on windows so I missed this.
bsquared is offline   Reply With Quote
Old 2011-09-13, 20:38   #847
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

62310 Posts
Default

A chance to get an updated version of yafu soon where nfs runs instead of siqs for larger composites?
In the meantime we have factored nearly everything until C96 in factordb and I would now deploy also the nfs binaries in the Boinc project to use nfs for larger composites with yafu.
yoyo
yoyo is offline   Reply With Quote
Reply

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

All times are UTC. The time now is 15:23.


Fri Aug 6 15:23:35 UTC 2021 up 14 days, 9:52, 1 user, load averages: 3.10, 3.13, 2.96

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.