Enum rust_gpu_tools::GPUError [−][src]
pub enum GPUError {
Opencl3(ClError, Option<String>),
ProgramInfoNotAvailable(ProgramInfo),
DeviceInfoNotAvailable(DeviceInfo),
Cuda(CudaError),
DeviceNotFound,
KernelNotFound(String),
IO(Error),
UnsupportedVendor(String),
InvalidId(String),
Generic(String),
}Expand description
Error types of this library.
Variants
Error from the underlying opencl3 library, e.g. a memory allocation failure.
Error for OpenCL clGetProgramInfo() call failures.
Error for OpenCL clGetDeviceInfo() call failures.
Cuda(CudaError)Error from the underlying RustaCUDA library, e.g. a memory allocation failure.
Tuple Fields of Cuda
0: CudaErrorError when a device cannot be found.
KernelNotFound(String)Error when a kernel with the given name cannot be found.
Tuple Fields of KernelNotFound
0: StringIO(Error)Error when standard I/O fails.
Tuple Fields of IO
0: ErrorUnsupportedVendor(String)Error when the device is from an unsupported vendor.
Tuple Fields of UnsupportedVendor
0: StringInvalidId(String)Error when the string representation of a unique identifier (PCI-ID or UUID) cannot be parsed.
Tuple Fields of InvalidId
0: StringGeneric(String)Errors that rarely happen and don’t deserve their own error type.
Tuple Fields of Generic
0: String