mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-02-27, 16:26   #199
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3×1,181 Posts
Default

Henry, try changing the "g"(b) to "m"(b) in the asm block, and repeating the exercise in common/mp.c on line 368. It compiles for me once I do that.

Alex, the modadd and modsub routines have already needed changes in this regard, I guess I have to do the same with any asm block that uses doubling multiply or halving divide. I suppose I should also switch to doing daily compiles with gcc 4.x, since just about everybody except me uses that now (MinGW will switch over to gcc 4.x someday, but someday has already been years).
jasonp is offline   Reply With Quote
Old 2009-02-27, 18:36   #200
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2×33×109 Posts
Default

Quote:
Originally Posted by jasonp View Post
That code did change in v1.39 but it doesn't cause problems in MinGW for me. Could you run 'gcc -v' and 'uname -a' ?
Code:
david@Ubuntu8Jimmy:~/Desktop/msieve-1.39$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
david@Ubuntu8Jimmy:~/Desktop/msieve-1.39$ uname -a
Linux Ubuntu8Jimmy 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux
it worked with the changes in your last post
henryzz is offline   Reply With Quote
Old 2009-03-02, 18:53   #201
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2·33·109 Posts
Default

i have just remembered that i never posted the binary i compiled
it will have to wait until tommorrow unfortunately as i am going out soon
henryzz is offline   Reply With Quote
Old 2009-03-11, 17:04   #202
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

113238 Posts
Default SNFS and GGNFS

I am running a 137 digit SNFS with GGNFS. I planned about 3.5 million relations. Actually, I reached 5637135 relations but the LA doesn't start.

Here is my poly:
Code:
n: 27947058444735539012965143631675640717984624676970856746909322865014587987121750699821648616857592608427104241739512228516510591633269
m: 100000000000000000000000000000000000
deg: 5
c5: 2
c0: 205
skew: 2.52
type: snfs
lss: 1
rlim: 5800000
alim: 5800000
lpbr: 28
lpba: 28
mfbr: 52
mfba: 52
rlambda: 2.5
alambda: 2.5
and my .job file:

Code:
n: 27947058444735539012965143631675640717984624676970856746909322865014587987121750699821648616857592608427104241739512228516510591633269
m: 100000000000000000000000000000000000
c5: 2
c0: 205
skew: 2.52
rlim: 5800000
alim: 4299999
lpbr: 28
lpba: 28
mfbr: 52
mfba: 52
rlambda: 2.5
alambda: 2.5
q0: 4300000
qintsize: 100000
#q1:4400000
I started with q0=2900000 and factLat.pl, adding 100.000 q each run.

Sadly enough, when procrels starts, it soon aborts.

Here is the trace:

Code:
Cygni_61@linux-cygni61:~/ggnfs/ggnfs/msieve> perl factLat.pl 44449_174
-> ___________________________________________________________
-> |        This is the factLat.pl script for GGNFS.          |
-> | This program is copyright 2004, Chris Monico, and subject|
-> | to the terms of the GNU General Public License version 2.|
-> |__________________________________________________________|
-> This is client 1 of 1
-> Working with NAME=44449_174...
-> SNFS_DIFFICULTY is about 175.3010299956639811952137388947244930268.
-> Selected default factorization parameters for 175 digit level.
-> Selected lattice siever: ../bin/gnfs-lasieve4I13e
-> No parameter change detected. Resuming.
-> minimum number of FF's: 896819
-> Q0=4300000, QSTEP=100000.
-> makeJobFile(): q0=4300000, q1=4400000.
-> makeJobFile(): Adjusted to q0=4300000, q1=4400000.
-> Lattice sieving q-values from q=4300000 to 4400000.
=> "../bin/gnfs-lasieve4I13e" -k -o spairs.out -v -n0 -a 44449_174.job
FBsize 303720+0 (deg 5), 399992+0 (deg 1)
total yield: 155862, q=4340773 (0.03346 sec/rel)warning: too many relations in mpqs
total yield: 384053, q=4400021 (0.03320 sec/rel)
6588 Special q, 40185 reduction iterations
reports: 580388540->80168677->74483181->41296493->25317677->19607599
Number of relations with k rational and l algebraic primes for (k,l)=:

Total yield: 384053
0/0 mpqs failures, 22009/25176 vain mpqs
milliseconds total: Sieve 4901210 Sched 0 medsched 1440070
TD 1701820 (Init 34060, MPQS 141110) Sieve-Change 3176340
TD side 0: init/small/medium/large/search: 28150 143910 52280 114750 556330
sieve: init/small/medium/large/search: 64550 539660 57970 1603180 81490
TD side 1: init/small/medium/large/search: 34780 240850 50790 129780 306620
sieve: init/small/medium/large/search: 77920 545920 58260 1614710 257550
=>"cat" spairs.add >> spairs.out
=> "../bin/procrels" -fb 44449_174.fb -prel rels.bin -newrel spairs.out

 __________________________________________________________
|        This is the procrels program for GGNFS.           |
| Version: 0.77.1-20060513-nocona                          |
| This program is copyright 2004, Chris Monico, and subject|
| to the terms of the GNU General Public License version 2.|
|__________________________________________________________|
done.
Monic polynomial: T=3280 + 1X^5
Obtained integral basis:
W =
8  0  0  0  0
0  8  0  0  0
0  0  4  0  0
0  0  0  2  0
0  0  0  0  1
denominator = 8
Checking file rels.bin.0 ...
Largest prel file size is 0 versus max allowed of 128000000.
Warning: Could not stat processed file rels.bin.0. Is this the first run?.
     New file is 576.84794MB.
     New file appears to have 5637135 relations.
Building (a,b) hash table...0..makeABList() Failed to open rels.bin.0 for read!

makeABLookup() : Sorting abList...Done.
Before processing new relations, there are 0 total.
Return value 11. Terminating...ns from spairs.out... (at 18122.33 rels/sec)
Cygni_61@linux-cygni61:~/ggnfs/ggnfs/msieve>
Where do I go wrong?

Luigi
ET_ is offline   Reply With Quote
Old 2009-03-11, 17:57   #203
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

7·503 Posts
Default

Quote:
Originally Posted by ET_ View Post

Where do I go wrong?

Luigi
I can't comment on the procrels errors, but with using lpbr = lpba = 28 you'll need quite a bit more than 3.5 million relations.

A rule of thumb is you'll need about
Code:
0.8 * (pi(2^lpbr) + pi(2^lpba))
= 1.6 * (2^28 / ln(2^28))
= 22 million
relations + say 15% more to account for duplicates.
bsquared is offline   Reply With Quote
Old 2009-03-11, 18:21   #204
schickel
 
schickel's Avatar
 
"Frank <^>"
Dec 2004
CDP Janesville

41128 Posts
Default

Quote:
Originally Posted by ET_ View Post
Where do I go wrong?

Luigi
Never having run that many relations through procrels at one time, I have an idea procrels is the problem. I would bet that >5.6 million all at once is choking it....

Can you try splittling the file up into more bite-sized chucks?

Or, just feed the file to msieve. Procrels is only used by the factlat.pl script to eliminate duplicates and sort them into buckets (the "rels.bin.*" files). Msieve doesn't need the relations fed to it that way....

Last fiddled with by schickel on 2009-03-11 at 18:30 Reason: Adding more....
schickel is offline   Reply With Quote
Old 2009-03-11, 18:41   #205
10metreh
 
10metreh's Avatar
 
Nov 2008

2×33×43 Posts
Default

Quote:
Originally Posted by ET_ View Post
I am running a 137 digit SNFS with GGNFS. I planned about 3.5 million relations. Actually, I reached 5637135 relations but the LA doesn't start.

Where do I go wrong?

Luigi
Be aware that the difficulty of an SNFS number is based on the value of the polynomial. With this number, 2*m^5+205 is a 176 digit number. This means the number has an SNFS difficulty of 176 digits. This will be about as hard as a 125 digit GNFS. There is an unreserved number (as of 5 minutes ago) which has SNFS difficulty 142, and I would have taken it had I not been working on an aliquot sequence. That would be much easier.

Last fiddled with by smh on 2009-03-11 at 21:23 Reason: Full inline quote removed
10metreh is offline   Reply With Quote
Old 2009-03-11, 18:47   #206
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61×79 Posts
Default

Quote:
Originally Posted by 10metreh View Post
Be aware that the difficulty of an SNFS number is based on the value of the polynomial. With this number, 2*m^5+205 is a 176 digit number. This means the number has an SNFS difficulty of 176 digits. This will be about as hard as a 125 digit GNFS. There is an unreserved number (as of 5 minutes ago) which has SNFS difficulty 142, and I would have taken it had I not been working on an aliquot sequence. That would be much easier.
I took the values from the site held by Makoto Kamada.
His site said the number could be finished in 4 days :-( and for my first SNFS work it seemed affordable. Oh, well, I will go on.

Luigi
ET_ is offline   Reply With Quote
Old 2009-03-11, 18:51   #207
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61·79 Posts
Default

Quote:
Originally Posted by schickel View Post
Never having run that many relations through procrels at one time, I have an idea procrels is the problem. I would bet that >5.6 million all at once is choking it....

Can you try splittling the file up into more bite-sized chucks?

Or, just feed the file to msieve. Procrels is only used by the factlat.pl script to eliminate duplicates and sort them into buckets (the "rels.bin.*" files). Msieve doesn't need the relations fed to it that way....
Well, I had that same message every 100000 q, so I thought there was something missing in my environment.

As for Msieve, can it work with SNFS relations? If so, I will use nfs2ms.pl script after the sieving phase.

Luigi
ET_ is offline   Reply With Quote
Old 2009-03-11, 18:55   #208
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

61×79 Posts
Default

Quote:
Originally Posted by bsquared View Post
I can't comment on the procrels errors, but with using lpbr = lpba = 28 you'll need quite a bit more than 3.5 million relations.

A rule of thumb is you'll need about
Code:
0.8 * (pi(2^lpbr) + pi(2^lpba))
= 1.6 * (2^28 / ln(2^28))
= 22 million
relations + say 15% more to account for duplicates.
I will reach 22 million relations, testing with Msieve after 15M, 18M and 21M, no problems.

Thanks for the hint, I just took the .poly from Kamada studio.
It seems that I'll have to improve my (low) knowledge on setting up better values. Links (apart from MersenneForum)?

Luigi
ET_ is offline   Reply With Quote
Old 2009-03-11, 19:20   #209
10metreh
 
10metreh's Avatar
 
Nov 2008

2×33×43 Posts
Default

Quote:
Originally Posted by ET_ View Post
I will reach 22 million relations, testing with Msieve after 15M, 18M and 21M, no problems.

Thanks for the hint, I just took the .poly from Kamada studio.
It seems that I'll have to improve my (low) knowledge on setting up better values. Links (apart from MersenneForum)?

Luigi
I have attached def-par.txt, which has estimates for parameters for C70-C140 GNFS and S100-S175 SNFS. Bear in mind that it is not exact, and for a GNFS C140, you might want to do some parameter optimization.
Attached Files
File Type: txt def-par.txt (5.4 KB, 267 views)

Last fiddled with by 10metreh on 2009-03-11 at 19:21
10metreh is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of GGNFS LegionMammal978 Msieve 17 2017-01-20 19:49
Running other programs while running Prime95. Neimanator PrimeNet 14 2013-08-10 20:15
Error running GGNFS+msieve+factmsieve.py D. B. Staple Factoring 6 2011-06-12 22:23
GGNFS or something better? Zeta-Flux Factoring 1 2007-08-07 22:40
ggnfs ATH Factoring 3 2006-08-12 22:50

All times are UTC. The time now is 04:53.


Fri Aug 6 04:53:01 UTC 2021 up 13 days, 23:22, 1 user, load averages: 1.92, 2.34, 2.85

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.