![]() |
|
|
#1 |
|
Jan 2023
32 Posts |
Is it possible to have LLR run multiple tests at the same time? Either in GUI or Console Version.
I got Multithreading working in the Console Version, but thats only working efficiently for larger tests. So is it possible to have it test multiple primes at the same time? |
|
|
|
|
|
#2 | |
|
Sep 2002
Database er0rr
10010010011012 Posts |
Quote:
Alternatively, set up prpnet which enqueues work for LLR instances. (*) On linux you can set PATH to include $HOME/bin and put LLR there. Last fiddled with by paulunderwood on 2023-01-29 at 01:17 |
|
|
|
|
|
|
#3 | |
|
Jan 2023
32 Posts |
Quote:
|
|
|
|
|
|
|
#4 |
|
Sep 2002
Database er0rr
5×937 Posts |
Let's assume you have 4 cores.
Open a terminal/console. mkdir LLR_workspace cd LLR_workspace mkdir core_1 mkdir core_2 mkdir core_3 mkdir core_4 copy LLR to those four "core directories". I assume you have Windows since you mentioned the console version of LLR. I defer you to somebody else on how split the file into 4, each of which will go in its own core folder. The worst way to do this is to open the master input file in a text editor and open 4 "new" files. Copy the first line of the master input to each fo the core files. Then copy and paste sections of the master file to the core files. Finally save each of the core input files to their respective core folders. This a naive way of splitting the input. Somebody else will chip in and tell you how to do it programmatically in the console -- maybe a batch file you could run. Also someone will tell you how to write and save a batch file to be run from LLR_workspace to start all LLRs. The worse case is to have 4 consoles open. Not bad, but if you have 128 cores this is a poor solution! Sorry I cannot help you with Wind-up-ows. I only know how I'd do it with Linux. Last fiddled with by paulunderwood on 2023-01-29 at 02:14 |
|
|
|
|
|
#6 | |
|
Sep 2002
Database er0rr
124D16 Posts |
Quote:
Last fiddled with by paulunderwood on 2023-01-29 at 02:26 |
|
|
|
|
|
|
#7 |
|
Jan 2023
32 Posts |
Thank you!!! I got it working, copied LLR, split my Sieve and wrote a simple batch file that opens them up.
I will come back to you when I will test it with Linux, Paul!
|
|
|
|
|
|
#8 |
|
Sep 2002
Database er0rr
124D16 Posts |
|
|
|
|
|
|
#9 |
|
Mar 2006
Germany
2×1,531 Posts |
Quick 'dirty' DOS-batch WIN:
ToDo - create a new folder - put your splitted files in there named 1.txt, 2.txt, 3.txt, ... , n.txt for running n instances of LLR - put in this folder cllr(64).exe, too (the commandline version of LLR64, I'm using an older version w/o any other DLL/EXE) - create the batch with following code Code:
set count=4 set i=1 :loop md %i% copy cllr64.exe %i% copy %i%.txt %i% cd %i% start cllr64.exe %i%.txt set /a i+=1 cd .. IF %i% LEQ %count% GOTO :loop -> count folders with the cllr64.exe and the n.txt input file will be created and cllr64 will be started processing the input file Test with small count and small candidates first. Last fiddled with by kar_bon on 2023-01-29 at 03:21 |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multithreading existing code | robert44444uk | Software | 13 | 2021-03-16 12:32 |
| Pluripotent Laptop for College Multithreading | veganjoy | jvang | 46 | 2019-01-06 20:08 |
| Processor stuck at 25% when multithreading | GaEL | YAFU | 18 | 2015-12-31 10:08 |