$DefaultParallelKernels
is the list of kernels that are configured for parallel computing.
Details
- On a multicore computer, the list typically includes as many local kernels as there are cores, up to a limit defined by license availability.
- Additional configurations for kernels on remote machines can be made available with the Wolfram Lightweight Grid, WSTPServer and SSH connections.
- The value of $DefaultParallelKernels is remembered between sessions.
- When no kernels are running, LaunchKernels[] will launch the kernels given in $DefaultParallelKernels.
- $DefaultParallelKernels can be set by assigning a list of kernel configurations or via the Evaluation ▶ Parallel Kernel Configuration… menu item.
Examples
open allclose allBasic Examples (3)
The default value of $DefaultParallelKernels:
When no kernels are running, LaunchKernels uses this list as the default to launch kernels:
Kernels can be specified using URL syntax:
Kernels can be specified using KernelConfiguration:
Applications (2)
Assignments to $DefaultParallelKernels are remembered between sessions:
In a new session, the value is restored:
Remove any persistent value by reverting $DefaultParallelKernels to its default:
Text
Wolfram Research (2023), $DefaultParallelKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html.
CMS
Wolfram Language. 2023. "$DefaultParallelKernels." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html.
APA
Wolfram Language. (2023). $DefaultParallelKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html