ParallelSubmit
ParallelSubmit[expr]
submits expr for evaluation on the next available parallel kernel and returns an EvaluationObject expression representing the submitted evaluation.
ParallelSubmit[{var1,var2, …},expr]
builds a closure for the variables given before submitting expr.
Details and Options
- ParallelSubmit[{var1,var2, …},expr] substitutes the current values of the vari into expr before submitting it for evaluation.
- ParallelSubmit has attribute HoldAllComplete.
Examples
open allclose allBasic Examples (3)
Scope (3)
Use Table to submit evaluations:
Applications (4)
Run a search for a random prime on each parallel kernel:
Watch the scheduling of the evaluations while they are running:
Stop all evaluations as soon as one result has been found using a shared variable:
Write a command that evaluates the arguments of a list in parallel:
Use ParallelCombine for the same purpose:
Submit evaluations for searching adjacent ranges:
Use Parallelize for the same purpose:
Properties & Relations (2)
Possible Issues (3)
ParallelSubmit does not evaluate its arguments on the master kernel:
Use a closure to insert the values of local variables into the expressions to be evaluated:
Use With to insert the values of local variables:
Side effects are local to each evaluation:
Use a shared variable to support global side effects:
There is a considerable overhead for scheduling trivial calculations:
The overhead is smaller for generating fewer, but larger, evaluation units:
Neat Examples (2)
Parallelize a functional operation by functional composition with ParallelSubmit:
Watch the scheduling of evaluations taking vastly varying amounts of time:
Text
Wolfram Research (2008), ParallelSubmit, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelSubmit.html.
CMS
Wolfram Language. 2008. "ParallelSubmit." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ParallelSubmit.html.
APA
Wolfram Language. (2008). ParallelSubmit. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParallelSubmit.html