pub struct CubeClRuntimeConfig {
pub profiling: ProfilingConfig,
pub autotune: AutotuneConfig,
pub compilation: CompilationConfig,
pub streaming: StreamingConfig,
pub memory: MemoryConfig,
}Expand description
Represents the global configuration for CubeCL, combining profiling, autotuning, and compilation settings.
Fields§
§profiling: ProfilingConfigConfiguration for profiling CubeCL operations.
autotune: AutotuneConfigConfiguration for autotuning performance parameters.
compilation: CompilationConfigConfiguration for compilation settings.
streaming: StreamingConfigConfiguration for streaming settings.
memory: MemoryConfigConfiguration for memory settings.
Trait Implementations§
Source§impl Clone for CubeClRuntimeConfig
impl Clone for CubeClRuntimeConfig
Source§fn clone(&self) -> CubeClRuntimeConfig
fn clone(&self) -> CubeClRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 CubeClRuntimeConfig
impl Debug for CubeClRuntimeConfig
Source§impl Default for CubeClRuntimeConfig
impl Default for CubeClRuntimeConfig
Source§fn default() -> CubeClRuntimeConfig
fn default() -> CubeClRuntimeConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CubeClRuntimeConfig
impl<'de> Deserialize<'de> for CubeClRuntimeConfig
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
Source§impl RuntimeConfig for CubeClRuntimeConfig
impl RuntimeConfig for CubeClRuntimeConfig
Source§fn storage() -> &'static Mutex<Option<Arc<Self>>>
fn storage() -> &'static Mutex<Option<Arc<Self>>>
Global storage for the configuration singleton. Read more
Source§fn file_names() -> &'static [&'static str]
fn file_names() -> &'static [&'static str]
File names searched in each directory during [
Config::from_current_dir]. Read moreSource§fn section_file_names() -> &'static [(&'static str, &'static str)]
fn section_file_names() -> &'static [(&'static str, &'static str)]
File names searched in each directory, where only a specific TOML section is loaded
instead of the whole file. Read more
Source§fn override_from_env(self) -> Self
fn override_from_env(self) -> Self
Hook to override fields from environment variables after loading from disk. Read more
Source§fn get() -> Arc<Self> ⓘ
fn get() -> Arc<Self> ⓘ
Retrieves the current configuration, loading it from the current directory if not set. Read more
Source§fn save_default<P>(path: P) -> Result<(), Error>
fn save_default<P>(path: P) -> Result<(), Error>
Save the default configuration to the provided file path.
Source§fn from_current_dir() -> Self
fn from_current_dir() -> Self
Loads configuration from any of [
Config::file_names] in the current directory or its
parents. Read moreSource§fn from_file_path<P>(path: P) -> Result<Self, Error>
fn from_file_path<P>(path: P) -> Result<Self, Error>
Loads configuration from a specified file path.
Auto Trait Implementations§
impl Freeze for CubeClRuntimeConfig
impl RefUnwindSafe for CubeClRuntimeConfig
impl Send for CubeClRuntimeConfig
impl Sync for CubeClRuntimeConfig
impl Unpin for CubeClRuntimeConfig
impl UnsafeUnpin for CubeClRuntimeConfig
impl UnwindSafe for CubeClRuntimeConfig
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