Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for nvidia gpu access #5132

Merged
merged 18 commits into from
Dec 20, 2024
Merged
Prev Previous commit
adjust more
Signed-off-by: Simon L. <szaimen@e.mail.de>
  • Loading branch information
szaimen committed Dec 20, 2024
commit 6537f1831f49c78dcfaad8a510cbcb5515296f21
4 changes: 2 additions & 2 deletions php/src/Data/ConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -983,15 +983,15 @@ public function isDriDeviceEnabled() : bool {
}
}

private function GetEnabledGPUMode() : string {
private function GetEnabledNvidiaGpu() : string {
$envVariableName = 'ENABLE_NVIDIA_GPU';
$configName = 'enable_nvidia_gpu';
$defaultValue = '';
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
}

public function isNvidiaGpuEnabled() : bool {
return $this->GetEnabledGPUMode() === 'true';
return $this->GetEnabledNvidiaGpu() === 'true';
}

private function GetKeepDisabledApps() : string {
Expand Down
Loading