mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Twin Prime Search

Reply
 
Thread Tools
Old 2010-06-18, 19:01   #67
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

1010110110002 Posts
Default

Quote:
Originally Posted by Flatlander View Post
64-bit Windows 7, yes. I haven't tried 32-bit XP yet. (Under Lazarus. See my 'Clueless' post above, number 48.)
This was 32-bit Vista.
amphoria is offline   Reply With Quote
Old 2010-06-18, 21:40   #68
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

23×347 Posts
Default

Quote:
Originally Posted by axn View Post
I've noticed that sometimes FPC code generation for "for loops" goes a bit wonky. Maybe a for-less code would be better.
I tried turning off all optimizations with -O- and the for loop now works correctly. Given that the inner loop is written in asm this should not make any significant difference to the performance.
amphoria is offline   Reply With Quote
Old 2010-06-18, 22:04   #69
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

31×67 Posts
Default

Quote:
Originally Posted by Flatlander View Post
...
I ran a 5T range on axnSieve (same PC) last night (90e6/90e5) and it took 14hrs 54m. A negligible slow down compared to 60e6/60e5.
NPG is now running the file using fast array, 384Mb.
A 7T range also fits in fast array, 384Mb.
Flatlander is offline   Reply With Quote
Old 2010-06-19, 15:34   #70
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

There is an unsafe code in the program in 32-bit compiler, that'll mess up sieve from primes p > 280m (2^32/15).

So ranges done with 32-bit siever with p > 280m should be redone.

Fix is to change line 200 from
Code:
t := (t*15) mod n
to
Code:
t := (QWord(t)*15) mod n
axn is offline   Reply With Quote
Old 2010-06-19, 17:29   #71
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

23·347 Posts
Default

Quote:
Originally Posted by axn View Post
There is an unsafe code in the program in 32-bit compiler, that'll mess up sieve from primes p > 280m (2^32/15).

So ranges done with 32-bit siever with p > 280m should be redone.

Fix is to change line 200 from
Code:
t := (t*15) mod n
to
Code:
t := (QWord(t)*15) mod n
This will affect all ranges done by me > 20T. I assume that you have now checked the code for other similar issues with 32-bit compilation.

Edit: BTW please read this as a statement of fact rather than any implied criticism. I well understand the risks of using experimental code. Fortunately you caught it pretty early on.

Last fiddled with by amphoria on 2010-06-19 at 17:44
amphoria is offline   Reply With Quote
Old 2010-06-19, 23:17   #72
axn
 
axn's Avatar
 
Jun 2003

23·683 Posts
Default

Quote:
Originally Posted by amphoria View Post
I assume that you have now checked the code for other similar issues with 32-bit compilation.
I think so, but I haven't done a thorough enough check to be 100% sure. If you want, you can wait for my confirmation until proceeding further.

Quote:
Originally Posted by amphoria View Post
Edit: BTW please read this as a statement of fact rather than any implied criticism. I well understand the risks of using experimental code. Fortunately you caught it pretty early on.
Understood. In this case, however, any criticism would be well deserved.
axn is offline   Reply With Quote
Old 2010-06-20, 01:55   #73
axn
 
axn's Avatar
 
Jun 2003

155816 Posts
Default

Quote:
Originally Posted by axn View Post
I think so, but I haven't done a thorough enough check to be 100% sure. If you want, you can wait for my confirmation until proceeding further.
The rest of the code checks out.
axn is offline   Reply With Quote
Old 2010-06-20, 07:57   #74
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

53308 Posts
Default

Quote:
Originally Posted by axn View Post
The rest of the code checks out.
Thanks for confirming.
amphoria is offline   Reply With Quote
Old 2010-06-20, 09:52   #75
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

23×347 Posts
Default

For interest I compared the results of 23T-24T after applying the fix with the original results. There were about 39000 lines different.
amphoria is offline   Reply With Quote
Old 2010-06-20, 21:08   #76
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

81D16 Posts
Default

Quote:
Originally Posted by Flatlander View Post
A 7T range also fits in fast array, 384Mb.
As does 10T. (90e6/90e5)
Flatlander is offline   Reply With Quote
Old 2010-06-28, 16:06   #77
Flatlander
I quite division it
 
Flatlander's Avatar
 
"Chris"
Feb 2005
England

81D16 Posts
Default

I'm having all sorts of problems trying to compile a Windows 32 bit axnSieve. Could someone please post an exe with as high as possible SmallPrimes and SieveSize that is already known to be good.

Thanks

Last fiddled with by Flatlander on 2010-06-28 at 16:06
Flatlander is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perpetual benchmark thread... Xyzzy Hardware 897 2023-06-15 13:46
Hardware Benchmark Jest Thread for 100M exponents joblack Hardware 285 2022-08-06 21:50
LLR benchmark thread Oddball Riesel Prime Search 5 2010-08-02 00:11
sr5sieve Benchmark thread axn Sierpinski/Riesel Base 5 25 2010-05-28 23:57
New Sieve Thread Discussion Citrix Prime Sierpinski Project 15 2005-08-29 13:56

All times are UTC. The time now is 13:38.


Fri Jul 7 13:38:41 UTC 2023 up 323 days, 11:07, 0 users, load averages: 0.88, 1.09, 1.15

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

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