mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-04-07, 13:28   #617
mnh001
 
Apr 2011

26 Posts
Default

Concerning this threading, does the program automatically thread to multiple cores or is it something that one has to set up oneself beforehand?
mnh001 is offline   Reply With Quote
Old 2011-04-07, 13:29   #618
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

DC216 Posts
Default

Quote:
Originally Posted by mnh001 View Post
Concerning this threading, does the program automatically thread to multiple cores or is it something that one has to set up oneself beforehand?
Invoke the program with the -threads N switch.

E.g.:
Code:
yafu-32k-Win32.exe "siqs(rand(80))" -threads 4
bsquared is offline   Reply With Quote
Old 2011-04-07, 13:33   #619
mnh001
 
Apr 2011

26 Posts
Default

Ah, I see. Thanks.
mnh001 is offline   Reply With Quote
Old 2011-04-10, 10:01   #620
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Quote:
Originally Posted by bsquared View Post
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.
bsquared, I still didn't have time and free machines to test it but I expect by next Wednesday to run a few small composites with Yafu. Is there a new flag command that I should be aware to force all cores?
em99010pepe is offline   Reply With Quote
Old 2011-04-10, 13:46   #621
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
bsquared, I still didn't have time and free machines to test it but I expect by next Wednesday to run a few small composites with Yafu. Is there a new flag command that I should be aware to force all cores?
No, it's the same as before... use -threads N where N is the number of cores in the processor.
bsquared is offline   Reply With Quote
Old 2011-04-11, 10:24   #622
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23·3·11 Posts
Default

Wow Yafu1.25 (yafu-64k-x64) pushed the Crossover point on my
Core i3-350M to 102.3 digits running 1 thread.
With 2 threads the crossover point is at 107 digits.
Looks like the tune command only use 2 threads for QS but not for nfs if it`s configured in the yafu.ini ?

With 1 thread:
tune_info=Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz,WIN64,2.91156e-005,0.205855,19.3537,0.0747647,102.274,2323.04

Regards Andi_HB

Last fiddled with by Andi_HB on 2011-04-11 at 10:34
Andi_HB is offline   Reply With Quote
Old 2011-04-11, 13:26   #623
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

352210 Posts
Default

Quote:
Originally Posted by Andi_HB View Post
Wow Yafu1.25 (yafu-64k-x64) pushed the Crossover point on my
Core i3-350M to 102.3 digits running 1 thread.
With 2 threads the crossover point is at 107 digits.
Looks like the tune command only use 2 threads for QS but not for nfs if it`s configured in the yafu.ini ?

With 1 thread:
tune_info=Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz,WIN64,2.91156e-005,0.205855,19.3537,0.0747647,102.274,2323.04

Regards Andi_HB
That sounds about right for 1 thread on a win64 system. And yes, you should run the tune function single threaded otherwise it won't be a fair comparison to NFS (which is always single threaded within tune()).

You might also get better QS performance if you use the 32k version of yafu on your core i3 instead of the 64k version. If not, that would be interesting to know about.
bsquared is offline   Reply With Quote
Old 2011-04-11, 14:59   #624
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23×3×11 Posts
Default

I Have tested now the Core I3 with the 32k Version.
It`s a little bit faster - the crossover point is now nearly 103 digits.

tune_info=Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz,WIN64,3.4573e-005,0.202483,17.6735,0.0748184,102.962,2214.85

Last fiddled with by Andi_HB on 2011-04-11 at 14:59
Andi_HB is offline   Reply With Quote
Old 2011-04-11, 15:18   #625
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·3·587 Posts
Default

Great! It's a little faster, as expected.
bsquared is offline   Reply With Quote
Old 2011-04-18, 17:45   #626
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23×3×11 Posts
Default

Is it possible to start nfs in yafu only with a msieve.dat.p ?
Yafu was searching a poly and i have stoped the polysearch.
After restart yafu with nfs(same N) it begins the polysearch from beginning.
But i have saved the msieve.dat.p before.
Andi_HB is offline   Reply With Quote
Old 2011-04-18, 18:02   #627
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×3×587 Posts
Default

Quote:
Originally Posted by Andi_HB View Post
Is it possible to start nfs in yafu only with a msieve.dat.p ?
Yafu was searching a poly and i have stoped the polysearch.
After restart yafu with nfs(same N) it begins the polysearch from beginning.
But i have saved the msieve.dat.p before.
Yes, but unfortunately not in an automated way.

You will have to find a polynomial in the .p file to use and manually create a ggnfs.job file.

Restarting with your N value should then see the .job file and commence sieving.

Here is an example ggnfs.job file:
Code:
n: 1303393746190602410130747675575270928834473492253595455992458315153116912083217001313161399
skew: 1065989.62
Y0: -8584497716068613471624
Y1:  324846034081
c0: -136172357314030026532285545
c1: -198415467127858630068
c2:  237666829470893
c3:  70578472
c4:  240
rlim: 1260000
alim: 1260000
lpbr: 25
lpba: 25
mfbr: 50
mfba: 50
rlambda: 2.300000
alambda: 2.300000
Starting from the rlim: line down are parameters you will have to supply. The rest come from the .p file for your chosen polynomial.

I've put it on my todo list to be able to restart with a .p file only.
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:28 UTC 2021 up 14 days, 15:15, 1 user, load averages: 2.33, 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.