mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-04-04, 01:24   #606
mnh001
 
Apr 2011

26 Posts
Default

Sorry I wasn't clear. When I say it crashes, the whole console window shuts down and disappears. So that's what I mean when I say the text disappeared.

Last fiddled with by mnh001 on 2011-04-04 at 01:25
mnh001 is offline   Reply With Quote
Old 2011-04-04, 02:26   #607
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Quote:
Originally Posted by mnh001 View Post
Sorry I wasn't clear. When I say it crashes, the whole console window shuts down and disappears. So that's what I mean when I say the text disappeared.
I suppose I should define what I mean by console window better too. If you just double click on yafu you get a window that will shut down when the program shuts down. I always start a console window first, navigate to the directory yafu lives in, and start it from the command line. Then the window is persistent, and any messages printed to the screen stay there after yafu exits.

I believe in XP you click start, select run, then type cmd. Inside the window, use cd to change directory to where yafu lives, then run yafu-32k-Win32.exe.

Everything worked exactly as it should up until you saw "cat" flash by - and I'm wondering if that's not working because it is not being run in a persistent window.
bsquared is offline   Reply With Quote
Old 2011-04-04, 03:09   #608
mnh001
 
Apr 2011

26 Posts
Default

Ah, cool. I'm doing that now. Here's what I have from the very beginning:

Code:
C:\YAFU>yafu-32k-Win32.exe


04/03/11 22:42:52 v1.24 @ HOME, System/Build Info:
Using GMP-ECM 6.3, Powered by MPIR 2.2.0
detected Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz
detected L1 = 32768 bytes, L2 = 3145728 bytes, CL = 64 bytes
measured cpu frequency ~= 2393.803680

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


>> nfs(1018979337456225035714934025075344288205054863323166920696334625238968374
307490538496140762051312209)

Found expression: 10189793374562250357149340250753442882050548633231669206963346
25238968374307490538496140762051312209
nfs: commencing gnfs on c100: 10189793374562250357149340250753442882050548633231
66920696334625238968374307490538496140762051312209
nfs: continuing job - could not determine last special q; using default startq
nfs: commencing lattice sieving over range: 900000 - 940000
 Warning:  lowering FB_bound to 899999.
total yield: 583861, q=940001 (0.00215 sec/rel)
'cat' is not recognized as an internal or external command, operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing lattice sieving over range: 940000 - 980000
 Warning:  lowering FB_bound to 939999.
total yield: 20608, q=941263 (0.00210 sec/rel)
It's still working. If it finishes soon I'll paste the rest tonite else in the morning.
Thanks greatly.
mnh001 is offline   Reply With Quote
Old 2011-04-04, 11:34   #609
mnh001
 
Apr 2011

26 Posts
Default

Ah, it finished. Here's the rest.

Code:
total yield: 592838, q=1060009 (0.00219 sec/rel)
'cat' is not recognized as an internal or external command,
operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing lattice sieving over range: 1060000 - 1100000
 Warning:  lowering FB_bound to 1059999.
total yield: 612430, q=1100009 (0.00224 sec/rel)
'cat' is not recognized as an internal or external command,
operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing lattice sieving over range: 1100000 - 1140000
 Warning:  lowering FB_bound to 1099999.
total yield: 630458, q=1140091 (0.00225 sec/rel)
'cat' is not recognized as an internal or external command,
operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing lattice sieving over range: 1140000 - 1180000
 Warning:  lowering FB_bound to 1139999.
total yield: 633362, q=1180009 (0.00227 sec/rel)
'cat' is not recognized as an internal or external command,
operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing lattice sieving over range: 1180000 - 1220000
 Warning:  lowering FB_bound to 1179999.
total yield: 646709, q=1220027 (0.00227 sec/rel)
'cat' is not recognized as an internal or external command,
operable program or batch file.
nfs: commencing msieve filtering
nfs: commencing msieve linear algebra
linear algebra completed 244928 of 246224 dimensions (99.5%, ETA 0h 0m)
nfs: commencing msieve sqrt
NFS elapsed time = 13250.9375 seconds.


***factors found***

PRP59 = 87951490600541345008712776627376606869092931974821503168543
PRP41 = 11585697189422656315605211874695713458063

ans = 1
So does this mean that it's working correctly now that I have it in a persistent console window? I ran this one using nfs(). I'll try using factor() again on the same number to see what happens.
mnh001 is offline   Reply With Quote
Old 2011-04-04, 13:29   #610
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by mnh001 View Post
Ah, it finished. Here's the rest.

So does this mean that it's working correctly now that I have it in a persistent console window? I ran this one using nfs(). I'll try using factor() again on the same number to see what happens.
Yep, that looks like normal operation.

Thanks for the report - its useful to know that there are problems when run in a non-persistent window... I didn't know that till now.
bsquared is offline   Reply With Quote
Old 2011-04-04, 15:39   #611
mnh001
 
Apr 2011

26 Posts
Default

Ah, great to hear it. I'm glad the problem was totally on my end. This program of yours is a huge boon. So much better than the UBASIC ecmx I've been using for years now.

Question: Since both nfs() and factor() both factor a number, is there any benefit to using one over the other?
mnh001 is offline   Reply With Quote
Old 2011-04-04, 16:01   #612
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by mnh001 View Post
Ah, great to hear it. I'm glad the problem was totally on my end. This program of yours is a huge boon. So much better than the UBASIC ecmx I've been using for years now.

Question: Since both nfs() and factor() both factor a number, is there any benefit to using one over the other?
Glad you like it

Use nfs if you know there are no small factors in the number. Use factor() if you arent' sure... factor will go through an sequence of steps to remove any small factors before using NFS with the goal of minimizing expected time.
bsquared is offline   Reply With Quote
Old 2011-04-04, 16:08   #613
mnh001
 
Apr 2011

1008 Posts
Default

Ok, sounds good. Keep up the fabulous work! :)
mnh001 is offline   Reply With Quote
Old 2011-04-06, 04:06   #614
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

DC216 Posts
Default yafu-1.25

Available here.

I've had hardly any time to spend on yafu development lately, so bchaffin took it upon himself to redo the threading architecture in SIQS. He contributed a more efficient architecture and linux code, I kludged in a windows equivalent, and the result is much better siqs threaded performance. I've seen 30% or more speed improvement with all 4 cores of a phenom II vs. previous versions. bchaffin reports similar numbers.

em99010pepe, I'm curious to see if this solves the "losing cores" problem you've been seeing.

Last fiddled with by bsquared on 2011-04-06 at 04:09
bsquared is offline   Reply With Quote
Old 2011-04-06, 07:29   #615
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

Hi Ben,

The SVN x64 build of YAFU on Windows now fails for me:

1>..\..\factor\smallmpqs.c(846): error C2065: 'SCAN_CLEAN' : undeclared identifier
Brian Gladman is offline   Reply With Quote
Old 2011-04-06, 12:30   #616
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Sorry, I forgot to test the x64 build in visual studio. I submitted a change - the build should work now.
bsquared 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 20:46.


Fri Aug 6 20:46:22 UTC 2021 up 14 days, 15:15, 1 user, load averages: 2.36, 2.45, 2.64

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.