Go Back > Great Internet Mersenne Prime Search > Software

Thread Tools
Old 2015-03-09, 11:55   #1
Mar 2015

1 Posts
Default Change number of workers not interactively

Is there anyway to change the number of workers by modifying configuration file (without using the interactive promt)?
I'd like to run mprime by shell script and incrementing the number of cpus used.

Thank you
Mcbsc is offline   Reply With Quote
Old 2015-03-09, 14:25   #2
Mark Rose
Mark Rose's Avatar
Jan 2013

1011011100002 Posts

You'll have to stop mprime/Prime95, modify prime.txt and/or local.txt as you wish, then restart mprime/Prime95.

The `sed` command is great for what you want. That works great for Linux/Mac. If you're on Windows, there are options, including using PowerShell:

get-content prime.txt | %{$_ -replace "expression","replace"}
I've never used PowerShell myself though.
Mark Rose is offline   Reply With Quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of workers vs. number of CPUs daxmick Information & Answers 15 2018-02-23 01:33
Workers galgrnpa Software 5 2016-08-09 14:54
command line switch for the number of workers to start roemer2201 Software 6 2012-02-16 07:47
Max # Workers sk8kidamh Software 5 2011-07-16 15:58
Went from 8 workers to 4 workers on v26.6 upgrade dmoran Software 13 2011-05-23 12:36

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

Sat Jan 16 15:14:47 UTC 2021 up 44 days, 11:26, 0 users, load averages: 1.72, 1.83, 2.13

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, 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.