mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Software (https://www.mersenneforum.org/forumdisplay.php?f=10)
-   -   srsieve/sr2sieve enhancements (https://www.mersenneforum.org/showthread.php?t=15833)

rogue 2013-03-30 00:40

[QUOTE=henryzz;335418]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.[/QUOTE]

I build with mingw, not cygwin. I believe that pthreads exist in cygwin, but not mingw.

henryzz 2013-03-30 01:20

[QUOTE=rogue;335423]I build with mingw, not cygwin. I believe that pthreads exist in cygwin, but not mingw.[/QUOTE]
[url]http://sourceforge.net/apps/trac/mingw-w64/wiki/Compile%20pthreads[/url]
This is the link I came across. That is mingw-w64.

pepi37 2013-03-30 11:10

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?

henryzz 2013-03-30 11:28

[QUOTE=pepi37;335452]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?[/QUOTE]
That is the standard method. srfile is used to remove the factors in factors.txt.

pepi37 2013-03-30 11:46

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...

rogue 2013-03-30 14:41

[QUOTE=pepi37;335452]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?[/QUOTE]

I use Console2. One window, eight tabs with a command prompt.

Puzzle-Peter 2013-03-30 16:12

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.

pepi37 2013-03-30 16:43

[QUOTE=rogue;335465]I use Console2. One window, eight tabs with a command prompt.[/QUOTE]
Great tip- very useful info! I immidiatelly start to use it on LLR :)

pepi37 2013-03-30 16:44

[QUOTE=Puzzle-Peter;335505]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.[/QUOTE]

I noticed this, but was small test sieve.
No I was running from different directories :)

f1pokerspeed 2013-03-30 19:12

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[INDENT]○ Read from file in arbitrary location via temp file?[/INDENT][INDENT]○ Output to console with state of combined sieve every 60 sec.[/INDENT]
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?

pepi37 2013-03-30 22:09

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)?


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.