Class Runtime
A static class specifically designed to manage the lifecycle of the runtime environment.
It provides mechanisms for initialization and management of runtime resources.
public static class Runtime
- Inheritance
-
Runtime
- Inherited Members
Fields
- LogLevel
Defines the default logging level for the application using the LM-Kit framework.
Properties
- Backend
Gets the type of computational backend currently in use. Returns Undefined if the system is not initialized.
- BackendDirectory
Specifies the directory containing the native dependencies. After initialization, this property's value becomes immutable and cannot be changed.
- EnableCuda
Indicates whether CUDA is permitted during initialization. Once initialized, the value of this property cannot be modified.
- EnableVulkan
Indicates whether Vulkan is permitted during initialization. Once initialized, the value of this property cannot be modified.
- HasGpuSupport
Returns whether LM-Kit is permitted to utilize the GPU for processing.
- IsInitialized
Indicates whether the LM-Kit runtime has been initialized.
- Version
Gets the LM-Kit assembly version.
Methods
- Initialize()
Immediately initializes the LM-Kit runtime.
This method can be invoked optionally to guarantee proper initialization. Otherwise, initialization occurs automatically as needed.