pub struct CudaOxideRuntimeConfig {
pub device_index: u32,
pub target_sm: Option<String>,
pub cargo_oxide_command: String,
pub documentation_url: String,
}Expand description
Data type for cuda-oxide runtime config.
Fields§
§device_index: u32The CUDA device index value.
target_sm: Option<String>Optional target SM architecture, such as sm_80.
cargo_oxide_command: StringCargo subcommand used to build and run cuda-oxide kernels.
documentation_url: StringThe cuda-oxide documentation URL used for operator setup.
Implementations§
Source§impl CudaOxideRuntimeConfig
impl CudaOxideRuntimeConfig
Sourcepub fn device_index(self, value: u32) -> Self
pub fn device_index(self, value: u32) -> Self
Returns device index.
Sourcepub fn cargo_oxide_command(self, value: impl Into<String>) -> Self
pub fn cargo_oxide_command(self, value: impl Into<String>) -> Self
Returns cargo oxide command.
Sourcepub fn attributes(&self) -> BTreeMap<String, String>
pub fn attributes(&self) -> BTreeMap<String, String>
Returns runtime attributes for prediction metadata and traces.
Trait Implementations§
Source§impl Clone for CudaOxideRuntimeConfig
impl Clone for CudaOxideRuntimeConfig
Source§fn clone(&self) -> CudaOxideRuntimeConfig
fn clone(&self) -> CudaOxideRuntimeConfig
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 CudaOxideRuntimeConfig
impl Debug for CudaOxideRuntimeConfig
Source§impl Default for CudaOxideRuntimeConfig
impl Default for CudaOxideRuntimeConfig
Source§impl<'de> Deserialize<'de> for CudaOxideRuntimeConfig
impl<'de> Deserialize<'de> for CudaOxideRuntimeConfig
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 CudaOxideRuntimeConfig
Source§impl PartialEq for CudaOxideRuntimeConfig
impl PartialEq for CudaOxideRuntimeConfig
Source§fn eq(&self, other: &CudaOxideRuntimeConfig) -> bool
fn eq(&self, other: &CudaOxideRuntimeConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CudaOxideRuntimeConfig
impl Serialize for CudaOxideRuntimeConfig
impl StructuralPartialEq for CudaOxideRuntimeConfig
Auto Trait Implementations§
impl Freeze for CudaOxideRuntimeConfig
impl RefUnwindSafe for CudaOxideRuntimeConfig
impl Send for CudaOxideRuntimeConfig
impl Sync for CudaOxideRuntimeConfig
impl Unpin for CudaOxideRuntimeConfig
impl UnsafeUnpin for CudaOxideRuntimeConfig
impl UnwindSafe for CudaOxideRuntimeConfig
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