mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2016-12-13, 00:04   #1
MrLittleTexas
 
Dec 2016
United States

210 Posts
Default Prime95 fails to recognize more than 2 cores?

I'm running Fedora on an Intel i5 quad-core, attempting to run P95 multithreading on all four cores. However, when I attempt to set the number of CPUs I am told to "please select a value between 1 and 2". What is going on? How can I get access to all four cores?
MrLittleTexas is offline   Reply With Quote
Old 2016-12-13, 05:56   #2
S485122
 
S485122's Avatar
 
Sep 2006
Brussels, Belgium

35·7 Posts
Default

Can you specify the model of processor ?
If you are sure the processor is a quad core you can force mprime to use a certain number of cores by a setting documented in the file undoc.txt.

Jacob

"The program automatically computes the number of CPUs, hyperthreading, and speed.
This information is used to calculate how much work to get.
If the program did not correctly figure out your CPU information, you can override the info in local.txt:
NumCPUs=n
CpuNumHyperthreads=1 or 2
CpuSpeed=s
Where n is the number of physical CPUs or cores, not logical CPUs created by hyperthreading. Choose 1 for non-hyperthreaded and 2 for hyperthreaded. Finally, s is the speed in MHz."
S485122 is offline   Reply With Quote
Old 2016-12-13, 18:16   #3
MrLittleTexas
 
Dec 2016
United States

210 Posts
Question

Thanks for your help. I have an i5 2520M which evidently has two physical cores with four total logical cores. Does that mean I can only use two threads? For some reason my CPU is only running at about 45% capacity according to system monitor which makes me think I should be able to crank it up more.
MrLittleTexas is offline   Reply With Quote
Old 2016-12-13, 20:06   #4
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by MrLittleTexas View Post
Thanks for your help. I have an i5 2520M which evidently has two physical cores with four total logical cores. Does that mean I can only use two threads? For some reason my CPU is only running at about 45% capacity according to system monitor which makes me think I should be able to crank it up more.
You can run as many threads as you like, but after the first two the total work won't increase and may well decrease. The system monitor is lying through its teeth, I don't know why it is programmed that way.
CRGreathouse is offline   Reply With Quote
Old 2016-12-13, 22:08   #5
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

1D6E16 Posts
Default

Look in undoc.txt for an option that allows you to allocate your 2 hyperthreads from the dialog boxes. Something like confiurehyperthreads IIRC.

The reason prime95 does not automatically make hyperthreads available is so that only those that have been warned that hyperthreading may actually hurt performance will be tempted to give it a try.
Prime95 is online now   Reply With Quote
Old 2016-12-14, 03:30   #6
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by MrLittleTexas View Post
Thanks for your help. I have an i5 2520M which evidently has two physical cores with four total logical cores. Does that mean I can
only use two threads?
Although there is no code to prevent you from using 4 threads, it is strongly recommended against using hyperthreads for Prime95. See e.g. this thread for explanation (especially the last post).
Quote:
Originally Posted by MrLittleTexas View Post
For some reason my CPU is only running at about 45% capacity according to system monitor which makes me think I should be able to crank it up more.
That's because Windows isn't very smart about hyperthreads versus actual cores. Two of the cores it shows are "virtual cores", the hyperthreads that don't actually help Prime95. So when you run 2 threads, Prime95 is fully utilizing the silicon (one thread for each physical core), even though two of the available (hyper)threads seem to be inactive.
Dubslow is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't seem to make Prime95 use fewer cores Octopuss Software 6 2018-01-28 13:05
Prime95 v27.6 B3 No Red Icon when Worker Fails. Tanquen Information & Answers 4 2012-05-04 00:28
6 CPU cores not recognized by Prime95 v25.11.8 Christenson Information & Answers 4 2011-02-06 01:03
Intel e6600 Dual Core Problem - How to use both cores with Prime95? Shoallakeboy Hardware 2 2006-11-06 17:55
prime95 Runs all day in linux(two flavors). In windows, fails in 1-4 minutes!!! gimper48 Hardware 7 2004-10-04 04:41

All times are UTC. The time now is 17:49.


Sun Aug 1 17:49:04 UTC 2021 up 9 days, 12:18, 0 users, load averages: 2.23, 2.10, 1.82

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.