$DefaultParallelKernels

$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 all

Basic 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:

Wolfram Research (2023), $DefaultParallelKernels, Wolfram Language function, https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html.

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

BibTeX

@misc{reference.wolfram_2024_$defaultparallelkernels, author="Wolfram Research", title="{$DefaultParallelKernels}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$defaultparallelkernels, organization={Wolfram Research}, title={$DefaultParallelKernels}, year={2023}, url={https://reference.wolfram.com/language/ref/$DefaultParallelKernels.html}, note=[Accessed: 22-November-2024 ]}