mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   Run mprime to calculate the same work on a single thread? (https://www.mersenneforum.org/showthread.php?t=27023)

graysky 2021-07-25 10:12

Run mprime to calculate the same work on a single thread?
 
How can I setup prime.txt to run only 1 thread? The customizing Torture Test menu gives me this option, but it doesn't get written out to prime.txt. My goal is to simple run [B]prime -t[/B] and have it read in ~/prime.txt which should only run on a single thread.

Here is ~/prime.txt
[code]V24OptionsConverted=1
WorkPreference=0
V30OptionsConverted=1
StressTester=1
UsePrimenet=0
MinTortureFFT=448
MaxTortureFFT=448
TortureMem=0
TortureTime=3
TortureWeak=0
WGUID_version=2

[PrimeNet]
Debug=0
[/code]

thyw 2021-07-25 12:08

As I understand from the source code, put

[CODE]TortureThreads=1[/CODE] into your prime.txt


[STRIKE]I do think this defeats the purpose of the stress test.[/STRIKE] did not think of that usecase

paulunderwood 2021-07-25 12:08

[QUOTE=graysky;583928]How can I setup prime.txt to run only 1 thread? The customizing Torture Test menu gives me this option, but it doesn't get written out to prime.txt. My goal is to simple run [B]prime -t[/B] and have it read in ~/prime.txt which should only run on a single thread.

[/QUOTE]

[C]taskset[/C]?

graysky 2021-07-25 12:10

I found [url=https://www.mersenneforum.org/showthread.php?p=574818]this[/url] thread. Seems changes to both prime.txt and local.txt are needed.

@paulunderwood - I am using taskset externally to call mprime -t by the way.


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

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