Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
ddd1a437
Unverified
Commit
ddd1a437
authored
Jan 25, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 25, 2024
Browse files
Merge pull request #575 from Mulugruntz/sgiffard/nvidia-gpu-on-wsl2
Enhance GPU detection logic to support WSL2 environments
parents
0ab33bd5
2cb41121
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
run-compose.sh
run-compose.sh
+2
-2
No files found.
run-compose.sh
View file @
ddd1a437
...
...
@@ -11,8 +11,8 @@ TICK='\u2713'
# Detect GPU driver
get_gpu_driver
()
{
# Detect NVIDIA GPUs
if
lspci |
grep
-i
nvidia
>
/dev/null
;
then
# Detect NVIDIA GPUs
using lspci or nvidia-smi
if
lspci |
grep
-i
nvidia
>
/dev/null
||
nvidia-smi
>
/dev/null 2>&1
;
then
echo
"nvidia"
return
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment