Join PrimeGrid
Returning Participants
Community
Leader Boards
Results
Other
drummers-lowrise
|
Message boards :
Project Staging Area :
Can you multi-thread PRPNet apps?
Author |
Message |
|
Was curious if one could do multi-threading with the PRPNet apps somehow like with some of the BOINC Primegrid apps? | |
|
|
You can! But only on 121 and 27 which use LLR (make sure you download the current cllr app for your platform from http://jpenne.free.fr/index2.html), PRS/FPS use PFGW which doesn't support multithreading.
Then, read this and maybe the couple relevant posts below it: http://www.primegrid.com/forum_thread.php?id=7348&nowrap=true#106468
One thing left out of that is that you need to reduce the number of prpclient instances based on the number of threads you're using. So for a quad-core with 4 threads, just one instance would be needed, or two tasks of two threads, use two instances.
____________
Eating more cheese on Thursdays. | |
|
|
You can! But only on 121 and 27 which use LLR (make sure you download the current cllr app for your platform from http://jpenne.free.fr/index2.html), PRS/FPS use PFGW which doesn't support multithreading.
Then, read this and maybe the couple relevant posts below it: http://www.primegrid.com/forum_thread.php?id=7348&nowrap=true#106468
One thing left out of that is that you need to reduce the number of prpclient instances based on the number of threads you're using. So for a quad-core with 4 threads, just one instance would be needed, or two tasks of two threads, use two instances.
Terrific! 121 and 27 was what I was looking at. Will read those. Thanks so much for your help. | |
|
|
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
Very nice. Will leave this running once my SOB task finishes and see how it does.
Thanks for the help with those links. | |
|
|
Excellent! You're welcome :)
____________
Eating more cheese on Thursdays. | |
|
|
Update #1:
After running several tests for a while using -t there is no difference in cpu utilization. Running cllr64 with the -h parameter shows there is no -t parameter available when it lists them. Hmm
ideas? | |
|
Michael Goetz Volunteer moderator Project administrator
 Send message
Joined: 21 Jan 10 Posts: 13804 ID: 53948 Credit: 345,369,032 RAC: 6,456
                              
|
Update #1:
After running several tests for a while using -t there is no difference in cpu utilization. Running cllr64 with the -h parameter shows there is no -t parameter available when it lists them. Hmm
ideas?
Make sure you're using the latest version of LLR. It should be v3.8.21.
EDIT 1: Use "cllr64 -V" to see the version number.
EDIT 2: The -h help doesn't show -t. :)
____________
My lucky number is 75898524288+1 | |
|
|
Update #1:
After running several tests for a while using -t there is no difference in cpu utilization. Running cllr64 with the -h parameter shows there is no -t parameter available when it lists them. Hmm
ideas?
Make sure you're using the latest version of LLR. It should be v3.8.21.
EDIT 1: Use "cllr64 -V" to see the version number.
EDIT 2: The -h help doesn't show -t. :)
yep it says v3.8.21
it doesn't come up with any errors with that batch file and the -t but it still only uses around 1 cpu core even with -t4 and -t8. Maybe I have an extra space or no space or something. Will fiddle with it now. | |
|
|
I edited the batch file to try a "-t2" and a "-t 2" without spaces and with spaces and the same thing. Tried -t8 and -t 8. Still only works on 1 core.
This is puzzling.
no error messages either.
I also tried adding -d to the command line in the batch file and it doesn't output any other info to the screen.
| |
|
Michael Goetz Volunteer moderator Project administrator
 Send message
Joined: 21 Jan 10 Posts: 13804 ID: 53948 Credit: 345,369,032 RAC: 6,456
                              
|
I edited the batch file to try a "-t2" and a "-t 2" without spaces and with spaces and the same thing. Tried -t8 and -t 8. Still only works on 1 core.
If you're running *OUR* BOINC tasks, you need to use a space in the app_config file. That's what is required by our wrapper.
However, if you're giving the parameter directly to the LLR program, as you are with your batch file for PRPNet, you must *NOT* use a space.
So, for BOINC, you use "-t 4".
For PRPNet, you use "-t4".
(Leave out the double quotes, of course.)
____________
My lucky number is 75898524288+1 | |
|
|
I edited the batch file to try a "-t2" and a "-t 2" without spaces and with spaces and the same thing. Tried -t8 and -t 8. Still only works on 1 core.
If you're running *OUR* BOINC tasks, you need to use a space in the app_config file. That's what is required by our wrapper.
However, if you're giving the parameter directly to the LLR program, as you are with your batch file for PRPNet, you must *NOT* use a space.
So, for BOINC, you use "-t 4".
For PRPNet, you use "-t4".
(Leave out the double quotes, of course.)
Yep that's what I figured originally. I'm an old DOS guy so batch files and command line stuff is fairly easy for me.
I've got that still in the batch files with -t(x) no spaces. Still a no go for it using more threads. I am doing the 27 project through port 12006... I'm assuming that is LLR from what I've researched and been told.
For now I have 4 instances of prpclient running seperately and still only utilizing half my CPU's. So I started another SoB in the meantime. the 27 tests are not terribly long, maybe about a day each with 1 thread/1 core. Would still love to tear through em faster if possible as is a big help with the SoB tasks. | |
|
|
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
Very nice. Will leave this running once my SOB task finishes and see how it does.
Thanks for the help with those links.
Hi The bold text should be the same | |
|
|
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
Very nice. Will leave this running once my SOB task finishes and see how it does.
Thanks for the help with those links.
Hi The bold text should be the same
Ah yes, they are the same, that's a typo. Both read cllr64.bat. Good eyes!
Update to the above message post since i can't edit it:
-=-=-=-
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr64.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
-=-=-=- | |
|
|
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
Very nice. Will leave this running once my SOB task finishes and see how it does.
Thanks for the help with those links.
Hi The bold text should be the same
Ah yes, they are the same, that's a typo. Both read cllr64.bat. Good eyes!
Update to the above message post since i can't edit it:
-=-=-=-
Ok here is what I did:
1. I downloaded the updated console llr windows app from here - http://jpenne.free.fr/index2.html as you suggested. The app that I downloaded b4 was ancient apparently. So was a needed updated.
2. Created a batch file in my prpclient-1 directory for the 1 instance I will be running. the batch file is called cllr64.bat and only has one line: "@cllr64.exe -t2 %*" no quotes.
3. Edited the prpclient.ini file with the line for the llr.exe app. It now reads - "llrexe.exe=cllr64.bat" (again no quotes).
So now when I run the prpclient.exe (or the single start batch file), it uses that cllr64 batch file to start the cllr main app with the number of threads I'd like to use. -t2 for 2, -t4 for 4, -t8 for 8, etc. just change the batch file for the number of threads.
-=-=-=-
I believe I tried that as I listed above WITHOUT success. It never seemed to really show any speed improvement. I think I may give it a try again.
Nortech, you have prpclient running MT llr? | |
|
|
Bam, success! 2 threads!
Total percent of servers does not equal 100. Normalizing
[2018-10-19 00:00:22 EDT] PRPNet Client application v5.4.0 started
[2018-10-19 00:00:22 EDT] User name Penguin at email address is
Resuming Proth prime test of 27*2^7051160+1 at bit 32682 [0.46%]
Using all-complex AVX FFT length 480K, Pass1=384, Pass2=1280, 2 threads, a = 5
created a bat file called MT-llr.bat with this sole line: @cllr64.exe -t2 %* and edited prpclient.ini to use the bat for llrexe.
nice! | |
|
|
Was curious if one could do multi-threading with the PRPNet apps somehow like with some of the BOINC Primegrid apps?
how to do it with BOINC?
____________
My lucky number is 6219*2^3374198+1
| |
|
Michael Goetz Volunteer moderator Project administrator
 Send message
Joined: 21 Jan 10 Posts: 13804 ID: 53948 Credit: 345,369,032 RAC: 6,456
                              
|
Was curious if one could do multi-threading with the PRPNet apps somehow like with some of the BOINC Primegrid apps?
how to do it with BOINC?
And this is the wrong place to ask BOINC questions, as this is literally the "not BOINC" Forum. Please try to keep your posts on topic and not hijack threads into an unrelated conversation. Thank you!
You'll find numerous discussions about how to set up multi-threading on BOINC, especially in the number crunching forum. Try searching the forums for "app_config".
____________
My lucky number is 75898524288+1 | |
|
Message boards :
Project Staging Area :
Can you multi-thread PRPNet apps? |