INNER CODE UNIT · Rust

get_gpu_config

ilya-zlobintsev/LACT · lact-client/src/lib.rs:221

    pub async fn get_gpu_config(&self, id: &str) -> anyhow::Result<Option<GpuConfig>> {
        self.make_request(Request::GetGpuConfig { id }).await
    }

    pub async fn set_gpu_config(&self, id: &str, config: GpuConfig) -> anyhow::Result<u64> {
        self.make_request(Request::SetGpuConfig {
            id,
            config: Box::new(config),
        })
        .await
    }

    pub async fn set_clocks_value(
        &self,
        id: &str,
        command: SetClocksCommand,
    ) -> anyhow::Result<u64> {
        self.make_request(Request::SetClocksValue { id, command })

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…