pub struct DeviceConfig {
pub cuda: CUDAConfig,
pub hip: HIPConfig,
pub opencl: OpenCLConfig,
}Expand description
Device configuration
Fields§
§cuda: CUDAConfigCUDA configuration
hip: HIPConfigHIP configuration
opencl: OpenCLConfigOpenCL configuration
Trait Implementations§
Source§impl Debug for DeviceConfig
impl Debug for DeviceConfig
Source§impl Default for DeviceConfig
impl Default for DeviceConfig
Source§fn default() -> DeviceConfig
fn default() -> DeviceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceConfig
impl<'de> Deserialize<'de> for DeviceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more