mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2011-01-11, 18:39   #529
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23×3×11 Posts
Default

Looks like the new Version don`t find my msieve.
The msieve.exe is in the gnfs + yafu directory but yafu 1.22.2 crashs.
I have tested with 1.22.1 - no problem there.
Attached Thumbnails
Click image for larger version

Name:	Yafu_1.22.JPG
Views:	125
Size:	85.2 KB
ID:	6049  

Last fiddled with by Andi_HB on 2011-01-11 at 19:01
Andi_HB is offline   Reply With Quote
Old 2011-01-11, 19:51   #530
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101110000012 Posts
Default

Quote:
Originally Posted by Andi_HB View Post
Looks like the new Version don`t find my msieve.
The msieve.exe is in the gnfs + yafu directory but yafu 1.22.2 crashs.
I have tested with 1.22.1 - no problem there.
Thanks for the report - I see the crashes too.

Slight clarification: yafu doesn't need the msieve binary - I incorporate portions of msieve directly into the yafu binary. Which is increasingly looking like a bad decision because of issues like this - the API of msieve was not necessarily designed to be used in this way. For 1.22.2, I rebuilt msieve from the latest SVN, and now we see this crash. I have no idea why it would do that. x64 versions of 1.22.2 work just fine...

For now I'll rebuild using a downrev'ed msieve and repost the binaries. Going forward I'll have to think about restructuring yafu's NFS to rely on an external msieve.exe.

Thanks for your patience.

- ben.

Last fiddled with by bsquared on 2011-01-11 at 19:52
bsquared is offline   Reply With Quote
Old 2011-01-11, 20:26   #531
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Ok, I've looked at the msieve changelog and I think I've fixed the problem (in yafu).

Updated binaries are available for download (only Win32 were affected by this change).

I'll try to do a better job keeping up with msieve API changes for future builds (or at least a better job testing!).

Last fiddled with by bsquared on 2011-01-11 at 20:29
bsquared is offline   Reply With Quote
Old 2011-01-11, 20:48   #532
Andi_HB
 
Andi_HB's Avatar
 
Mar 2007
Germany

23·3·11 Posts
Default

Thank you ben for updating the binaries.
I think you do a very good job!

Best Regards Andi_HB
Andi_HB is offline   Reply With Quote
Old 2011-01-11, 22:12   #533
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3×1,181 Posts
Default

Was it the change in the size of an mp_t in the last rev? I removed mp.h from the external interface in the latest SVN because it's just too dangerous to leave it there.
jasonp is offline   Reply With Quote
Old 2011-01-11, 22:55   #534
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101110000012 Posts
Default

Quote:
Originally Posted by jasonp View Post
Was it the change in the size of an mp_t in the last rev? I removed mp.h from the external interface in the latest SVN because it's just too dangerous to leave it there.
Did the size change? MAX_MP_WORDS is still 32. Anyway, I saw that mp_sprintf_buf changed from being statically to dynamically allocated in the msieve_obj structure. When I changed yafu to match - that fixed the problem.

I just neglected to check for msieve interface changes prior to rebuilding everything.
bsquared is offline   Reply With Quote
Old 2011-01-12, 18:31   #535
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3·5·41 Posts
Default Error: "wrong number of arguments in mul"

What's this?
Attached Thumbnails
Click image for larger version

Name:	wrong#ofargumentsinmul.gif
Views:	116
Size:	4.2 KB
ID:	6052  
lorgix is offline   Reply With Quote
Old 2011-01-12, 18:37   #536
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Quote:
Originally Posted by lorgix View Post
What's this?
Errrrm, a bug? :)

It works if you specify the second argument to nextprime (1 for next bigger, 0 for previous smaller).

Code:
factor(nextprime(rand(17),1)*nextprime(rand(18),1))

Last fiddled with by bsquared on 2011-01-12 at 18:38
bsquared is offline   Reply With Quote
Old 2011-01-12, 18:48   #537
lorgix
 
lorgix's Avatar
 
Sep 2010
Scandinavia

3·5·41 Posts
Default

Darn, I had my money on mammal...
lorgix is offline   Reply With Quote
Old 2011-01-16, 10:25   #538
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Ben,

Did you manage to fix the "lost cores" issue during yafu running?

Carlos
em99010pepe is offline   Reply With Quote
Old 2011-01-17, 15:16   #539
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Quote:
Originally Posted by em99010pepe View Post
Ben,

Did you manage to fix the "lost cores" issue during yafu running?

Carlos
Sorry, no I haven't. The only experiments I can think of to try are pretty invasive. For example a complete reorganization of the threading architecture or windows API calls to enforce thread affinity to a core. As such I've been putting off trying them out...

- ben.
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 05:34.


Fri Aug 6 05:34:36 UTC 2021 up 14 days, 3 mins, 1 user, load averages: 3.56, 3.05, 2.75

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.