pub struct CubeClRuntimeConfig {
pub profiling: ProfilingConfig,
pub autotune: AutotuneConfig,
pub throughput: ThroughputConfig,
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.
throughput: ThroughputConfigConfiguration for throughput settings.
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 (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 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 try_set(config: Self) -> bool
fn try_set(config: Self) -> bool
Sets the configuration to the provided value, unless it has already been
set or read — in which case the existing configuration is kept and
false is returned. Read moreSource§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more