mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-02-14, 11:34   #12
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default Version 1.06

Version 1.06 is available.

This version contains a fix for a bug which resulted in wrong Q-range-size values printed to the stats.txt file.
Attached Files
File Type: zip gnfs_ub_ver_1.06.zip (7.3 KB, 195 views)
Andi47 is offline   Reply With Quote
Old 2009-02-14, 14:28   #13
10metreh
 
10metreh's Avatar
 
Nov 2008

1001000100102 Posts
Default

Quote:
Originally Posted by Andi47 View Post
Version 1.06 is available.

This version contains a fix for a bug which resulted in wrong Q-range-size values printed to the stats.txt file.
Two severals in the warning.
10metreh is offline   Reply With Quote
Old 2009-02-14, 19:03   #14
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2×17×73 Posts
Default

Quote:
Originally Posted by 10metreh View Post
Two severals in the warning.
Version 1.06b

corrected a writing error (double word) in the screen output which you see when you try to factor anything bigger than c200
Attached Files
File Type: zip gnfs_ub_ver_1.06b.zip (7.3 KB, 217 views)

Last fiddled with by Andi47 on 2009-02-14 at 19:09
Andi47 is offline   Reply With Quote
Old 2009-02-22, 20:09   #15
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

10111011011012 Posts
Default

it has reached gnfs stage
i am currently sieving
so far it seems to be working fine
henryzz is offline   Reply With Quote
Old 2009-02-27, 08:36   #16
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3·1,999 Posts
Default

Quote:
Originally Posted by henryzz View Post
it has reached gnfs stage
i am currently sieving
so far it seems to be working fine
i keep on forgetting to say that when it came to do the postprocessing it failed with "Division by zero in 5220"
i then realized that there was no large file with all the relations
do you need cat.exe in the directory? it isnt mentioned in the first post of this thread
henryzz is offline   Reply With Quote
Old 2009-02-27, 12:24   #17
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

46628 Posts
Default

Quote:
Originally Posted by henryzz View Post
i keep on forgetting to say that when it came to do the postprocessing it failed with "Division by zero in 5220"
i then realized that there was no large file with all the relations
do you need cat.exe in the directory? it isnt mentioned in the first post of this thread
Yes, you need cat.exe in the directory. (can a mod please edit this info into my start posting?)
Andi47 is offline   Reply With Quote
Old 2009-02-27, 19:12   #18
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3·1,999 Posts
Default

Quote:
Originally Posted by Andi47 View Post
Yes, you need cat.exe in the directory. (can a mod please edit this info into my start posting?)
i added cat.exe and it is no different
looking at the code it seems to be using copy not cat
Code:
 3590    f=cutspc(str(q)):print "sieving: i=";i;", q0= ";q;", special Q range size: ";qintsize:print "starting siever":print "input: C";cutspc(str(alen(N)))
 3600    if N<10^111 then print "siever: 12e":doscmd "nfs4I12e -a POLY1.JOB -o r0.re1":goto 3650
 3610    if N<10^137 then print "siever: 13e":doscmd "nfs4I13e -a POLY1.JOB -o r0.re1":goto 3650
 3620    if N<10^160 then print "siever: 14e":print "This factorization will take several weeks or even months!":doscmd "nfs4I14e -a POLY1.JOB -o r0.re1":goto 3650
 3630    if N<10^200 then print "siever: 15e":print "Warning: This factorization will take several years!!":doscmd "nfs4I15e -a POLY1.JOB -o r0.re1":goto 3650
 3640    print "siever: 16e":print "Warning: This factorization WILL take several decades!!"
 3645    doscmd "nfs4I16e.exe -a poly1.job -o r0.rel":goto 3650                'c200 anyone ??!!?? *gg*
 3650    if exist("relation.rel") then doscmd "rename relation.rel r1.re1"
 3660    doscmd "copy *.re1 relation.rel"                            'concatenate relation output files
 3670    kill "r0.re1":kill "r1.re1"
henryzz is offline   Reply With Quote
Old 2009-02-27, 20:01   #19
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

2·17·73 Posts
Default

Quote:
Originally Posted by henryzz View Post
i added cat.exe and it is no different
looking at the code it seems to be using copy not cat
Code:
 3590    f=cutspc(str(q)):print "sieving: i=";i;", q0= ";q;", special Q range size: ";qintsize:print "starting siever":print "input: C";cutspc(str(alen(N)))
 3600    if N<10^111 then print "siever: 12e":doscmd "nfs4I12e -a POLY1.JOB -o r0.re1":goto 3650
 3610    if N<10^137 then print "siever: 13e":doscmd "nfs4I13e -a POLY1.JOB -o r0.re1":goto 3650
 3620    if N<10^160 then print "siever: 14e":print "This factorization will take several weeks or even months!":doscmd "nfs4I14e -a POLY1.JOB -o r0.re1":goto 3650
 3630    if N<10^200 then print "siever: 15e":print "Warning: This factorization will take several years!!":doscmd "nfs4I15e -a POLY1.JOB -o r0.re1":goto 3650
 3640    print "siever: 16e":print "Warning: This factorization WILL take several decades!!"
 3645    doscmd "nfs4I16e.exe -a poly1.job -o r0.rel":goto 3650                'c200 anyone ??!!?? *gg*
 3650    if exist("relation.rel") then doscmd "rename relation.rel r1.re1"
 3660    doscmd "copy *.re1 relation.rel"                            'concatenate relation output files
 3670    kill "r0.re1":kill "r1.re1"
Do you have msieve.exe (version 1.39(!)) in the directory?

Do you have renamed gnfs-lasieve4I1?e.exe to nfs4I1?e.exe? - these files have also to be in the directory where you have the gnfs.ub script.

you will also need grep.exe. (sorry, I mismatched cat.exe and grep.exe in my posting above. The file you need is grep.exe.)

Last fiddled with by Andi47 on 2009-02-27 at 20:02
Andi47 is offline   Reply With Quote
Old 2009-02-28, 07:41   #20
10metreh
 
10metreh's Avatar
 
Nov 2008

2×33×43 Posts
Default

I found a bug in resuming: when I resumed the script (with resume.txt present), it ran msieve, waited a bit, ran msieve again with no more relations than last time, and then started sieving not from the special q in resume.txt (1073537), but from that one + 50000 (1123537). It seems as if the script thinks another range of 50000 (1073537-1123537) has been sieved before it runsmsiev the second time.
10metreh is offline   Reply With Quote
Old 2009-02-28, 09:43   #21
Andi47
 
Andi47's Avatar
 
Oct 2004
Austria

9B216 Posts
Default

Quote:
Originally Posted by 10metreh View Post
I found a bug in resuming: when I resumed the script (with resume.txt present), it ran msieve, waited a bit, ran msieve again with no more relations than last time, and then started sieving not from the special q in resume.txt (1073537), but from that one + 50000 (1123537). It seems as if the script thinks another range of 50000 (1073537-1123537) has been sieved before it runsmsiev the second time.
This happens when you have got a (small) relations file still sitting in your folder. After running msieve to determine how many relations are still needed, it finds that the output file from the siever already exists, merges it with the large relations file and runs msieve again. (you now should have slightly (!) more relations.)

Workaround: you can either delete the small relations file, or just ignore the bug. It only costs a few minutes while running msieve a second time, and then it will finish the factorization anyway.
Andi47 is offline   Reply With Quote
Old 2009-02-28, 09:49   #22
10metreh
 
10metreh's Avatar
 
Nov 2008

2×33×43 Posts
Default

Quote:
Originally Posted by Andi47 View Post
This happens when you have got a (small) relations file still sitting in your folder. After running msieve to determine how many relations are still needed, it finds that the output file from the siever already exists, merges it with the large relations file and runs msieve again. (you now should have slightly (!) more relations.)

Workaround: you can either delete the small relations file, or just ignore the bug. It only costs a few minutes while running msieve a second time, and then it will finish the factorization anyway.
The odd thing is that it starts from a q that is 50000 (qintsize) larger. Larger q's find relations more slowly (q=1000000 is ~8% slower than q=600000 for this C97). In fact, I was wondering whether you could change the starting q-values to fit in better with def-par.txt.

I won't be back here till late tomorrow, and probably won't get a chance to check till Monday, so there's no rush.

Last fiddled with by 10metreh on 2009-02-28 at 10:12
10metreh is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
ubasic: overflow? Andi47 Programming 7 2009-02-27 00:20
Ubasic: Illegal program? Andi47 Programming 16 2009-02-20 06:41
ubasic question - strings Andi47 Programming 5 2008-12-28 05:52
Ubasic Array question rn0dal Programming 6 2004-09-15 14:57
Trial Factoring in uBasic dsouza123 Programming 28 2003-11-23 18:20

All times are UTC. The time now is 02:50.


Sat Oct 1 02:50:41 UTC 2022 up 44 days, 19 mins, 0 users, load averages: 0.73, 1.34, 1.32

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, 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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔