pub struct HostRuntimeProfile {
pub os: String,
pub arch: String,
pub target_triple: Option<String>,
pub available_flavors: BTreeSet<NativeRuntimeBackendKind>,
pub gpus: Vec<HostGpuProfile>,
pub cuda: Option<HostCudaProfile>,
pub rocm: Option<HostRocmProfile>,
pub vulkan: Option<HostVulkanProfile>,
}Fields§
§os: String§arch: String§target_triple: Option<String>§available_flavors: BTreeSet<NativeRuntimeBackendKind>§gpus: Vec<HostGpuProfile>§cuda: Option<HostCudaProfile>§rocm: Option<HostRocmProfile>§vulkan: Option<HostVulkanProfile>Implementations§
Source§impl HostRuntimeProfile
impl HostRuntimeProfile
pub fn current_without_gpu_probe() -> Self
pub fn supports_flavor(&self, flavor: &NativeRuntimeBackendKind) -> bool
pub fn has_gpu_name_matching(&self, needle: &str) -> bool
Trait Implementations§
Source§impl Clone for HostRuntimeProfile
impl Clone for HostRuntimeProfile
Source§fn clone(&self) -> HostRuntimeProfile
fn clone(&self) -> HostRuntimeProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HostRuntimeProfile
impl Debug for HostRuntimeProfile
Source§impl<'de> Deserialize<'de> for HostRuntimeProfile
impl<'de> Deserialize<'de> for HostRuntimeProfile
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
impl Eq for HostRuntimeProfile
Source§impl PartialEq for HostRuntimeProfile
impl PartialEq for HostRuntimeProfile
Source§impl Serialize for HostRuntimeProfile
impl Serialize for HostRuntimeProfile
impl StructuralPartialEq for HostRuntimeProfile
Auto Trait Implementations§
impl Freeze for HostRuntimeProfile
impl RefUnwindSafe for HostRuntimeProfile
impl Send for HostRuntimeProfile
impl Sync for HostRuntimeProfile
impl Unpin for HostRuntimeProfile
impl UnsafeUnpin for HostRuntimeProfile
impl UnwindSafe for HostRuntimeProfile
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