Distribute resource function definitions to parallel kernels
Contributed by:
Richard Hennigan (Wolfram Research)
Examples
Basic Examples (3)
Distribute resource function definitions to parallel kernels:
Now the function can be used quickly on each kernel:
Compare to a function that has not been distributed:
Scope (4)
Distribute multiple resource functions at once:
Using a resource function loads it into the current session:
Distribute all currently loaded resource functions to parallel kernels:
Only functions that have not been distributed yet will be sent to parallel kernels:
Distribute to specific kernels:
Compare initial timing with other kernels:
Properties and Relations (4)
Normally, initial loading time for resource functions increases with the number of parallel kernels, because each kernel must read the definition sequentially:
The number of slow evaluations will correspond to the number of kernels:
Distribute a local resource function to parallel kernels to bypass initial loading time:
Now there is no initial loading overhead:
Version History
-
1.1.0
– 29 March 2022
-
1.0.0
– 06 November 2020
Related Resources