pub struct Cpu;
Available on crate feature
cpu_backend
only.Expand description
Backend that uses CPU for computations.
The current implementation is based on the rayon
crate.
Trait Implementations§
source§impl Backend<&Function> for Cpu
impl Backend<&Function> for Cpu
§type Error = Infallible
type Error = Infallible
Error that may be returned during program creation.
§type Program = CpuProgram<Function>
type Program = CpuProgram<Function>
Program output by the backend.
source§impl<F: ComputePoint> Backend<F> for Cpu
impl<F: ComputePoint> Backend<F> for Cpu
§type Error = Infallible
type Error = Infallible
Error that may be returned during program creation.
§type Program = CpuProgram<F>
type Program = CpuProgram<F>
Program output by the backend.
impl Copy for Cpu
Auto Trait Implementations§
impl RefUnwindSafe for Cpu
impl Send for Cpu
impl Sync for Cpu
impl Unpin for Cpu
impl UnwindSafe for Cpu
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more