mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2007-11-25, 16:04   #1
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

5×709 Posts
Default Minor GMP-ECM bug

In the course of plugging calls to GMP-ECM into msieve, I've noticed a minor bug in GMP 6.1.3; the block of debug code starting at stage2.c:761 calls ecm_findmatch, which assumes an ECM stage 2 computation. However, P+-1 both go through this code path, and I had to do some unnecessary digging when I got crashes trying P-1 with lots of verbosity.

Also: regarding all the threads with people compiling machine-specific versions of GMP, does everyone know that GMP 4.2.1 and onward has a --enable-fat configure option, that builds multiple machine-specific versions of all the low-level GMP calls and chooses the best version at runtime? It looks like you only need one binary to achieve high performance on all x86 machines...

Finally: Alex, does your inria address work? I got two bounces trying to contact you.
jasonp is offline   Reply With Quote
Old 2007-11-25, 17:27   #2
akruppa
 
akruppa's Avatar
 
"Nancy"
Aug 2002
Alexandria

2,467 Posts
Default

Thanks for the bug report. This was already fixed in the SVN but there was no patch for 6.1.3 yet. I'm attaching it. Sorry for the wasted time digging through the code. The patch also fixes a bug when deleting treefiles if stage 2 was interrupted during building F from roots.

I'll send you my correct Loria email address via PM.

Alex
Attached Files
File Type: txt ecm-6.1.3.patch1.txt (905 Bytes, 154 views)
akruppa is offline   Reply With Quote
Old 2007-11-25, 18:40   #3
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

5×709 Posts
Default

Quote:
Originally Posted by akruppa View Post
Thanks for the bug report. This was already fixed in the SVN but there was no patch for 6.1.3 yet. I'm attaching it. Sorry for the wasted time digging through the code. The patch also fixes a bug when deleting treefiles if stage 2 was interrupted during building F from roots.
No problem with the time spent, I've been looking through papers and this was an excuse to dig into some very nice code.
jasonp is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minor Issue with Primenet KyleAskine PrimeNet 12 2012-02-12 01:37
A minor typo Chuck GPU to 72 1 2011-12-12 13:36
Minor changes to a lot of sequences Greebley Aliquot Sequences 18 2010-08-21 13:52
Minor bug PhilF Software 1 2006-03-22 01:04
A minor bug in PRP-24.14 Kosmaj 15k Search 3 2005-08-29 20:28

All times are UTC. The time now is 11:33.


Tue May 24 11:33:34 UTC 2022 up 40 days, 9:34, 0 users, load averages: 1.78, 1.82, 1.89

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.

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