ParallelKernels
gives the list of running kernels available for parallel computing.
ParallelKernels["prop"]
gives those running kernels that satisfy the given property.
Details
- On a multicore computer, kernels are normally launched automatically when needed for a parallel computation.
- All available kernels are by default used for all parallel computations.
- The following properties can be used to select a subset of all running kernels:
-
All all kernels "CloudKernels" all cloud kernels "LinkKernels" all link kernels "LocalKernels" all kernels running locally "LWGKernels" all LightweightGrid kernels "OneKernelPerMachine" one kernel for each different machine "RemoteKernels" all kernels on remote machines "SshKernels" all SSH kernels "WSTPServerKernels" all WSTPServer kernels
Examples
open allclose allScope (5)
Generalizations & Extensions (1)
Properties & Relations (2)
ParallelEvaluate by default does one evaluation on each kernel:
$KernelCount gives the number of running kernels:
Possible Issues (3)
If no kernels are available, most parallel calculations are done sequentially:
A kernel launched as a remote kernel, but on the local machine, is treated as remote:
Earlier versions of the Wolfram Language provided this functionality under the name Kernels:
Text
Wolfram Research (2022), ParallelKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelKernels.html (updated 2022).
CMS
Wolfram Language. 2022. "ParallelKernels." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/ParallelKernels.html.
APA
Wolfram Language. (2022). ParallelKernels. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParallelKernels.html