mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2013-08-07, 17:08   #221
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Quote:
Originally Posted by ryanp View Post
commencing number field sieve (299-digit input)
warning: NFS input not found in factor base file
integrator failed nan inf
R0: 0
A0: 0
skew 1.00, size 0.000e+00, alpha 0.000, combined = 0.000e+00 rroots = 0
Does the input number have small factors? These are not allowed for NFS postprocessing, which is what was wrong the last time I saw this happen.

Edit: to be more specific, if the sieving occurred on a different version of N, then that N has to be what's given to the postprocessing. Unfortunately the library is very bad at reporting that problem if it happens.

Chris: ryanp really does have the resources to go after very large jobs like this...

Edit 2: never mind, I found the problem. In include/common.h, change LINE_BUF_SIZE to be larger than 300, then recompile. This is a buffer overflow reading the factor base file.

Last fiddled with by jasonp on 2013-08-07 at 17:23
jasonp is offline   Reply With Quote
Old 2013-08-07, 19:00   #222
sashamkrt
 
Aug 2013

2510 Posts
Default

Quote:
Originally Posted by chris2be8 View Post

@sashamkrt, the search space is far too large for msieve to search it all, it just searches a random subset. So getting different results each time is normal.
I've searched poly for C192(3,664+1) A5 from 0 to 500k, 1 to 1.5m, 11m, 12m, 210m and found several good polys.
The best score I found was ~1.477e-014 with A5=293700 then I tried to found a good poly for this A5 running 20 times
msieve.exe -np1 293700,293701
msieve.exe -nps "stage2_norm=2.0e+26"
msieve.exe -npr "min_evalue=1.0e-14"

and found no good polys at all. Some of them was equal. The best was 1.020e-014.
Now I understand that msieve uses random subset, but the results for the same leading coeff differ so much. I mean there are some probability or luck of finding good poly regardless of the range of leading coefficients.
sashamkrt is offline   Reply With Quote
Old 2013-08-07, 20:57   #223
jcrombie
 
jcrombie's Avatar
 
"Jonathan"
Jul 2010
In a tangled web...

3278 Posts
Default getting a segfault

Hi,

I just happened to stumble upon this crash by typing a random number into a worktodo.ini file and running msieve svn 936.

The number:
Code:
238472934729347298373323987232349283479273
The crash happens in svn 897 but not svn 896.

It's crashing at common/lanczos/lanczos_vv.c:386
Code:
    packed_matrix_t *p = task->matrix;
on the dereference of task which is NULL

Now, task should of been initialized in lanczos_matmul0.c:516
Code:
    p->tasks = (la_task_t *)xmalloc(sizeof(la_task_t) *
but the program doesn't actually get there because of an early return at line 436.
Code:
    if (max_nrows <= MIN_NROWS_TO_PACK)
        return;
(It does return early as well in svn 896.)

Can someone else confirm the bug?

Thanks.

Last fiddled with by jcrombie on 2013-08-07 at 20:58 Reason: formating
jcrombie is offline   Reply With Quote
Old 2013-08-08, 00:06   #224
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3,541 Posts
Default

Yes, I found this a few days ago in the CUDA branch and never corrected it in the trunk. It will happen for any QS job under about 75 digits.

Edit: both problems now fixed in SVN 938.

Last fiddled with by jasonp on 2013-08-08 at 01:18
jasonp is offline   Reply With Quote
Old 2013-08-08, 02:05   #225
ryanp
 
ryanp's Avatar
 
Jun 2012
Boulder, CO

4418 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
@ryanp, it sounds as if you are trying to use msieve to do the sieving. Bur it only has a line siever which is nearly useless. You need the GGNFS lattice sievers to do any useful sieving, see http://gilchrist.ca/jeff/factoring/n...ers_guide.html (especially the SNFS section at the bottom).

But to do a SNFS 299 job like that in a year would need NFS@HOME to do the sieving and a large cluster for linear algebra.
It's already sieved, to 720M unique input relations. I just can't understand why msieve is having trouble parsing the input factor base and/or .ini files...
ryanp is offline   Reply With Quote
Old 2013-08-08, 05:43   #226
prgamma10
 
prgamma10's Avatar
 
Jan 2013

109 Posts
Default

@ryanp: Did you try this fix?
Quote:
Originally Posted by jasonp View Post
Edit 2: never mind, I found the problem. In include/common.h, change LINE_BUF_SIZE to be larger than 300, then recompile. This is a buffer overflow reading the factor base file.
prgamma10 is offline   Reply With Quote
Old 2013-08-08, 06:38   #227
ryanp
 
ryanp's Avatar
 
Jun 2012
Boulder, CO

12116 Posts
Default

Quote:
Originally Posted by prgamma10 View Post
@ryanp: Did you try this fix?
Oops, I missed that from earlier. I tried that -- and it worked. Thanks! (to you and jasonp)
ryanp is offline   Reply With Quote
Old 2013-08-08, 16:34   #228
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2·1,039 Posts
Default

A comment to anyone reporting problems with msieve, please post the command line used to invoke it as well as the output. It would save (mis)guessing what you are trying to do.

Chris
chris2be8 is offline   Reply With Quote
Old 2013-08-08, 17:19   #229
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

4,861 Posts
Default

Quote:
Originally Posted by sashamkrt View Post
Now I understand that msieve uses random subset, but the results for the same leading coeff differ so much. I mean there are some probability or luck of finding good poly regardless of the range of leading coefficients.
Correct! However, small A5 values produce skews higher than large values, without producing obviously better polys. This higher skew sometimes means having to search more special-q, which sometimes produce more duplicate relations. So, in general, it is not worth your time to search A5 under 1M for composites under 170 digits, and not under 10M for composites over 175 digits. It's not that you'll find bad polys, it's that you are equally likely to find as good a poly at the higher coeff, but with lower skew.

The search is definitely probabilistic, and you should not assume there is a "magic" A5.
VBCurtis is offline   Reply With Quote
Old 2013-08-09, 16:11   #230
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2·1,039 Posts
Default

Another thought, it would be nice if msieve wrote a log message saying what parameters it was called with. It would have saved ryanp from being accidentally dissed by me.

Chris
chris2be8 is offline   Reply With Quote
Old 2013-08-09, 20:15   #231
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

21416 Posts
Default

Jeff has just posted an updated msieve Windows x64 binary that contains the latest bug fixes: http://gilchrist.ca/jeff/factoring/m...7_win64_i7.zip

This is a non-GPU binary but I am at last in a position to build the GPU version again (at least I will be when I get a new Nvidia card to test it in a a few days time).

Given that MPIR comes in many architecture flavours and GPUs have quite a few different compute capabilities, we will now face a combinatorial explosion in binaries if we continue to deliver statically linked binaries (I have done this in order to avoid forcing people to find and install DLLs).

So I think we may now have to accept that people will have to install an MPIR DLL of their choice in order to use the GPU versions of GMP-ECM and MSIEVE on Windows. Unless, of course, people can think of other ways of coping with all the variations.

Brian
Brian Gladman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve 1.53 feedback xilman Msieve 149 2018-11-12 06:37
Msieve 1.50 feedback firejuggler Msieve 99 2013-02-17 11:53
Msieve 1.43 feedback Jeff Gilchrist Msieve 47 2009-11-24 15:53
Msieve 1.42 feedback Andi47 Msieve 167 2009-10-18 19:37
Msieve 1.41 Feedback Batalov Msieve 130 2009-06-09 16:01

All times are UTC. The time now is 12:36.


Sat Jul 17 12:36:29 UTC 2021 up 50 days, 10:23, 1 user, load averages: 1.90, 1.37, 1.30

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.