"git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "c3f805b809a611709f4deeb1dbdb07a4c1aae4ab"
Unverified Commit ddd1a437 authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #575 from Mulugruntz/sgiffard/nvidia-gpu-on-wsl2

Enhance GPU detection logic to support WSL2 environments
parents 0ab33bd5 2cb41121
...@@ -11,8 +11,8 @@ TICK='\u2713' ...@@ -11,8 +11,8 @@ TICK='\u2713'
# Detect GPU driver # Detect GPU driver
get_gpu_driver() { get_gpu_driver() {
# Detect NVIDIA GPUs # Detect NVIDIA GPUs using lspci or nvidia-smi
if lspci | grep -i nvidia >/dev/null; then if lspci | grep -i nvidia >/dev/null || nvidia-smi >/dev/null 2>&1; then
echo "nvidia" echo "nvidia"
return return
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment