pub struct Parallel { /* fields omitted */ }
A multithreaded execution environment for the tasks launched in ISPC
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.
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
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static