gives the list of all symbols whose definitions have been distributed to parallel kernels.
$DistributedDefinitions
gives the list of all symbols whose definitions have been distributed to parallel kernels.
Details
- $DistributedDefinitions includes all symbols whose definitions have been distributed to parallel kernels either automatically or by using DistributeDefinitions.
- $DistributedDefinitions returns a list of symbols wrapped in HoldForm.
Examples
open all close allBasic Examples (2)
Automatically distribute the value of a symbol:
kid := $KernelIDParallelEvaluate[kid]$DistributedDefinitionsDistribute the definition of a function:
f[x_] := 2 * $KernelIDDistributeDefinitions[f]$DistributedDefinitionsParallelEvaluate[f[2]]Possible Issues (3)
By default, symbols in the current context are automatically distributed:
mat = RandomInteger[{0, 9}, {2, 2}]ParallelEvaluate[Inverse[mat]]$DistributedDefinitionsClearing the distributed definitions may seem to work:
ClearDistributedDefinitions[mat]$DistributedDefinitionsAs soon as mat is used again in a parallel computation, its definition will be distributed automatically again:
ParallelEvaluate[Inverse[mat]]$DistributedDefinitionsDisable automatic distribution of definitions if you wish to control distribution of definitions manually:
$DistributedContexts = None;a = 42;The definition of a has not been distributed to parallel subkernels:
ParallelEvaluate[Head[a]]$DistributedDefinitionsDistribute the definition of a manually:
DistributeDefinitions[a]ParallelEvaluate[Head[a]]$DistributedDefinitionsHistory
Text
Wolfram Research (2024), $DistributedDefinitions, Wolfram Language function, https://reference.wolfram.com/language/ref/$DistributedDefinitions.html.
CMS
Wolfram Language. 2024. "$DistributedDefinitions." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$DistributedDefinitions.html.
APA
Wolfram Language. (2024). $DistributedDefinitions. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$DistributedDefinitions.html
BibTeX
@misc{reference.wolfram_2026_$distributeddefinitions, author="Wolfram Research", title="{$DistributedDefinitions}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/$DistributedDefinitions.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$distributeddefinitions, organization={Wolfram Research}, title={$DistributedDefinitions}, year={2024}, url={https://reference.wolfram.com/language/ref/$DistributedDefinitions.html}, note=[Accessed: 13-June-2026]}