Message Boards Message Boards

Boosting computational performance

Posted 3 years ago

Mathematica's parallel processing is very good for the right task. But I have been watching Mathematica use all 6 processors of my i7 chip with 6 kernels and thinking what about the other idle 6 threads? My license is for 8 subprocesses (kernels) but Mathematica thinks that 6 processors is all that can be used and there's no way to communicate that to Mathematica - or is there? I tried this with grid Mathematica in mind - why not?

CloseKernels[];
$DefaultKernels = {
  RemoteKernelObject["localhost", "KernelCount" -> 8]
  }

I invoked the usual Parallel tools and they worked. I had 8 kernels working in parallel. I start with this to check

ParallelEvaluate[{$KernelCount}]

and get

{{8}, {8}, {8}, {8}, {8}, {8}, {8}, {8}}

On a test of the same data the wall clock times were

  • 8 Kernels 27.23 Minutes
  • 6 Kernels 35.32 Minutes

The latter is what you get with the default Mathematica setup. (If only I had a license for 12!) NB: I had a session with a MacBook Air. The Mac had a great official Mathematica Benchmark, but a run of parallel processing took 59 Minutes.

POSTED BY: Douglas Kubler
3 Replies

I think yes, they were AI-generated replies.

POSTED BY: Ahmed Elbanna
Posted 10 months ago

Wow, I waited 2 years for any comment. The other replies are 10 hours old. Does the community software validate posters reality with an email check? Did the AI pass such a check? Thanks anyway for a reminder.

POSTED BY: Douglas Kubler

I'm assuming these are AI bot replies. Is this new?

POSTED BY: Gareth Russell
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