diff --git a/doc/manual/parallel-computing.rst b/doc/manual/parallel-computing.rst index 07f0a282a36d0..fbab3fd99e8d6 100644 --- a/doc/manual/parallel-computing.rst +++ b/doc/manual/parallel-computing.rst @@ -117,6 +117,7 @@ process that owns ``r``, so the :func:`fetch` will be a no-op. as a :ref:`macro `. It is possible to define your own such constructs.) +.. _man-parallel-computing-code-availability: Code Availability and Loading Packages -------------------------------------- diff --git a/doc/stdlib/parallel.rst b/doc/stdlib/parallel.rst index 32e9e7bcdbfcc..cbac48bb48ac9 100644 --- a/doc/stdlib/parallel.rst +++ b/doc/stdlib/parallel.rst @@ -211,6 +211,7 @@ General Parallel Computing Support .. function:: pmap(f, lsts...; err_retry=true, err_stop=false, pids=workers()) Transform collections ``lsts`` by applying ``f`` to each element in parallel. + (Note that ``f`` must be made available to all worker processes; see :ref:`Code Availability and Loading Packages ` for details.) If ``nprocs() > 1``, the calling process will be dedicated to assigning tasks. All other available processes will be used as parallel workers, or on the processes specified by ``pids``. @@ -421,4 +422,3 @@ Cluster Manager Interface Called by cluster managers using custom transports. It should be called when the custom transport implementation receives the first message from a remote worker. The custom transport must manage a logical connection to the remote worker and provide two AsyncStream objects, one for incoming messages and the other for messages addressed to the remote worker. -