Struct rust_gpu_tools::Device [−][src]
pub struct Device { /* fields omitted */ }
Expand description
A device that may have a CUDA and/or OpenCL GPU associated with it.
Implementations
Returns the best possible unique identifier, a UUID is preferred over a PCI ID.
Returns the preferred framework (CUDA or OpenCL) to use.
CUDA will be be preferred over OpenCL. The returned framework will work on the device.
E.g. it won’t return Framework::Cuda
for an AMD device.
Returns the underlying CUDA device if it is available.
Returns the underlying OpenCL device if it is available.
Returns the device matching the PCI ID if there is one.
Returns the device matching the UUID if there is one.
Returns the device matching the unique ID if there is one.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Device
impl UnwindSafe for Device
Blanket Implementations
Mutably borrows from an owned value. Read more