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
OpenDAS
ollama
Commits
45cbfc5a
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "17612de451244c4c169b1498f1333401dfd3106f"
Unverified
Commit
45cbfc5a
authored
May 28, 2024
by
Jeffrey Morgan
Committed by
GitHub
May 28, 2024
Browse files
fix wsl2 status check for nvidia cards (#4689)
parent
6d423b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/install.sh
scripts/install.sh
+1
-1
No files found.
scripts/install.sh
View file @
45cbfc5a
...
@@ -134,7 +134,7 @@ fi
...
@@ -134,7 +134,7 @@ fi
# WSL2 only supports GPUs via nvidia passthrough
# WSL2 only supports GPUs via nvidia passthrough
# so check for nvidia-smi to determine if GPU is available
# so check for nvidia-smi to determine if GPU is available
if
[
"
$IS_WSL2
"
=
true
]
;
then
if
[
"
$IS_WSL2
"
=
true
]
;
then
if
available nvidia-smi
&&
[
-
z
"
$(
nvidia-smi |
grep
-o
"CUDA Version: [0-9]*
\.
[0-9]*"
)
"
]
;
then
if
available nvidia-smi
&&
[
-
n
"
$(
nvidia-smi |
grep
-o
"CUDA Version: [0-9]*
\.
[0-9]*"
)
"
]
;
then
status
"Nvidia GPU detected."
status
"Nvidia GPU detected."
fi
fi
install_success
install_success
...
...
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