WOLFRAM

Why doesn’t Mathematica automatically launch as many local subkernels as I expected?

Read this article in: Deutsch, Español, Français 한국어, Português, Русский


Local subkernels launch automatically when either the first parallel function or the LaunchKernels[] function is evaluated.

By design, Mathematica automatically launches subkernels equal to the number of physical CPU cores. Mathematica does not detect logical CPU cores, such as those coming from hyperthreading technology. To override this setting, use the LaunchKernels[n] function, where n is an integer indicating the number of local subkernels to launch.

Get the number of subkernels available for parallel computations:

In[1]= $KernelCount
Out[1]= 8

Add 4 additional local subkernels: