pub struct Parallel { /* private fields */ }
Expand description

A multithreaded execution environment for the tasks launched in ISPC

Implementations

Create a parallel task execution environment that will use num_cpus threads to run tasks.

Create an oversubscribued parallel task execution environment that will use oversubscribe * num_cpus threads to run tasks.

Trait Implementations

Alloc is called when memory must be allocated to store parameters to pass to a task and must return a pointer to an allocation of size bytes aligned to align. Read more

Launch is called when a new group of tasks is being launched and should schedule them to be executed in some way. Read more

Synchronize an execution context with the tasks it’s launched. Use handle to determine the task context that’s being synchronized. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.