mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2013-03-30, 00:40   #78
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3×2,447 Posts
Default

Quote:
Originally Posted by henryzz View Post
I don't think multithreading is possible on windows.
From memory it uses pthreads which I think is officially linux only. It does seem to be possible to build on win32 now and there seem to be claims of having it working for 64-bit. You would have to compile sr1sieve yourself to take advantage of this on windows.
I build with mingw, not cygwin. I believe that pthreads exist in cygwin, but not mingw.
rogue is online now   Reply With Quote
Old 2013-03-30, 01:20   #79
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3×23×89 Posts
Default

Quote:
Originally Posted by rogue View Post
I build with mingw, not cygwin. I believe that pthreads exist in cygwin, but not mingw.
http://sourceforge.net/apps/trac/min...ile%20pthreads
This is the link I came across. That is mingw-w64.
henryzz is offline   Reply With Quote
Old 2013-03-30, 11:10   #80
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

To simulate multithreads option can I on my I7 ( HT on) open 8 cmd windows and in each one put sr2sieve -i sr_10.abcd -pxx -Pxxx
and than distribute range xx-xxx and after process is over join all factors and then remove it from abcd file?
pepi37 is online now   Reply With Quote
Old 2013-03-30, 11:28   #81
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

3·23·89 Posts
Default

Quote:
Originally Posted by pepi37 View Post
To simulate multithreads option can I on my I7 ( HT on) open 8 cmd windows and in each one put sr2sieve -i sr_10.abcd -pxx -Pxxx
and than distribute range xx-xxx and after process is over join all factors and then remove it from abcd file?
That is the standard method. srfile is used to remove the factors in factors.txt.
henryzz is offline   Reply With Quote
Old 2013-03-30, 11:46   #82
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

WOW :)
You can tell me whatever you wont, but this is discovery for me: with 12 cores ( 4+4, and 4) on second CPU I am capable of doing much deeper sieving in fraction of time :) I was "afraid" how will ABCD file tolerate to be accesed from few process in same time, but my fear is / was unnecessary
And much deeper sieve is less llr-ing :)
P.S It looks like that in this method must be same number of directories as cores: if you run if from same directory only last sieve process write checkpoint:and that is not practical in case of lets say power failure...

Last fiddled with by pepi37 on 2013-03-30 at 12:11
pepi37 is online now   Reply With Quote
Old 2013-03-30, 14:41   #83
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

3·2,447 Posts
Default

Quote:
Originally Posted by pepi37 View Post
To simulate multithreads option can I on my I7 ( HT on) open 8 cmd windows and in each one put sr2sieve -i sr_10.abcd -pxx -Pxxx
and than distribute range xx-xxx and after process is over join all factors and then remove it from abcd file?
I use Console2. One window, eight tabs with a command prompt.
rogue is online now   Reply With Quote
Old 2013-03-30, 16:12   #84
Puzzle-Peter
 
Puzzle-Peter's Avatar
 
Jun 2009

22×52×7 Posts
Default

Running multiple instances in one directory can result in the messing up of checkpoint files because all instances try to write to the same checkpoint file. At least under Linux that's the case. Don't know about windows. That's why I run every instance in a seperate directory.

I should add that I stop and restart very often because I need the machines for work during the day. If you finish in one go it's probably no problem.

Last fiddled with by Puzzle-Peter on 2013-03-30 at 16:14
Puzzle-Peter is offline   Reply With Quote
Old 2013-03-30, 16:43   #85
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

1,699 Posts
Default

Quote:
Originally Posted by rogue View Post
I use Console2. One window, eight tabs with a command prompt.
Great tip- very useful info! I immidiatelly start to use it on LLR :)
pepi37 is online now   Reply With Quote
Old 2013-03-30, 16:44   #86
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

32438 Posts
Default

Quote:
Originally Posted by Puzzle-Peter View Post
Running multiple instances in one directory can result in the messing up of checkpoint files because all instances try to write to the same checkpoint file. At least under Linux that's the case. Don't know about windows. That's why I run every instance in a seperate directory.

I should add that I stop and restart very often because I need the machines for work during the day. If you finish in one go it's probably no problem.
I noticed this, but was small test sieve.
No I was running from different directories :)
pepi37 is online now   Reply With Quote
Old 2013-03-30, 19:12   #87
f1pokerspeed
 
Jun 2012

2·53 Posts
Default

I wish there was a way that I could automatically run the sieve with a batch file that does all of the ranges for you.

An algorithm something like this:

○ Console opens
○ Input range increment, start, end, number of cores to run on
○ Split sieve work
○ Start instances of sieve
○ Read from file in arbitrary location via temp file?
○ Output to console with state of combined sieve every 60 sec.
Something like this could work quite well, I think. Would this be difficult to program, or is it a trivial task? The instances could be started via a customized batch file or something like that.

Thoughts?
f1pokerspeed is offline   Reply With Quote
Old 2013-03-30, 22:09   #88
pepi37
 
pepi37's Avatar
 
Dec 2011
After 1.58M nines:)

169910 Posts
Default

Can someone explain better what is this options for?

-B --baby METHOD Use METHOD for baby step mulmods.
-G --giant METHOD Use METHOD for giant step mulmods.
--ladder METHOD Use METHOD for ladder mulmods.

Is any of those methods faster or slower ( and in what cases)?
pepi37 is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sieving twins with srsieve henryzz Twin Prime Search 0 2014-03-18 12:44
Intel announces multi-core enhancements for Haswell chips ixfd64 Hardware 8 2012-02-10 20:32
LLRnet enhancements kar_bon No Prime Left Behind 10 2008-03-28 11:21
TODO list and suggestions/comments/enhancements Greenbank Octoproth Search 2 2006-12-03 17:28
Suggestions for future enhancements Reboot It Software 16 2003-10-17 01:31

All times are UTC. The time now is 14:09.


Fri Jul 7 14:09:12 UTC 2023 up 323 days, 11:37, 0 users, load averages: 1.55, 1.38, 1.24

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.

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