$DistributedContexts

$DistributedContexts

is the default value of the DistributedContexts option of functions such as ParallelTable and ParallelMap.

Details

  • Before a parallel computation, definitions of symbols to be evaluated in a parallel kernel will automatically be distributed to all kernels, provided these symbols belong to a context given in the DistributedContexts option.
  • The initial value is $DistributedContexts:=$Context, which distributes definitions of all symbols in the current context, but does not distribute definitions of symbols from packages.

Examples

open allclose all

Basic Examples  (1)

Turn off automatic distribution of functions:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]=

Restore the default value:

In[4]:=
Click for copyable input

Scope  (5)

Properties & Relations  (1)

Possible Issues  (1)

See Also

DistributedContexts  DistributeDefinitions  ParallelMap  ParallelTable

Introduced in 2010
(8.0)