Message Boards Message Boards

v 12.1, Windows 10: obtain CPU name, clock speed, notebook name at runtime?

Posted 3 years ago

Hi, I looked at SystemInformation[] and found generic informaton such as ProcessorType (e.g. "x86-64"). There's probably a way to probe Windows 10 (?) and determine

CPU (e.g.  i7-2600)
clock speed (e.g. 3.40 GHz)

plus the name of the executing notebook from Mathematica?

Thank you, this will be helpful organizing various benchmarks of execution times of my software.

POSTED BY: Richard Frost

You could use wmic and RunProcess like so:

RunProcess[{"wmic", "cpu", "get", "name"}]["StandardOutput"]

"Name                                       

Intel(R) Core(TM) i7-4930MX CPU @ 3.00GHz  

"
POSTED BY: Tim Laska
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract