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
c65edb15
"torchvision/vscode:/vscode.git/clone" did not exist on "385a44f84859477ffa2d574fa6fbd4930dec9bf6"
Unverified
Commit
c65edb15
authored
Sep 25, 2023
by
Bruce MacDonald
Committed by
GitHub
Sep 25, 2023
Browse files
fix linux installer warning logs (#588)
parent
1605af32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
scripts/install.sh
scripts/install.sh
+2
-1
No files found.
scripts/install.sh
View file @
c65edb15
...
@@ -6,6 +6,7 @@ set -eu
...
@@ -6,6 +6,7 @@ set -eu
status
()
{
echo
">>>
$*
"
>
&2
;
}
status
()
{
echo
">>>
$*
"
>
&2
;
}
error
()
{
echo
"ERROR
$*
"
;
exit
1
;
}
error
()
{
echo
"ERROR
$*
"
;
exit
1
;
}
warning
()
{
echo
"WARNING:
$*
"
;
}
TEMP_DIR
=
$(
mktemp
-d
)
TEMP_DIR
=
$(
mktemp
-d
)
cleanup
()
{
rm
-rf
$TEMP_DIR
;
}
cleanup
()
{
rm
-rf
$TEMP_DIR
;
}
...
@@ -95,7 +96,7 @@ fi
...
@@ -95,7 +96,7 @@ fi
check_gpu
()
{
check_gpu
()
{
case
$1
in
case
$1
in
lspci
)
command
-v
lspci
>
/dev/null
&&
lspci
-d
'10de:'
|
grep
-q
'NVIDIA'
||
return
1
;;
lspci
)
command
-v
lspci
>
/dev/null
&&
lspci
-d
'10de:'
|
grep
-q
'NVIDIA'
||
return
1
;;
lshw
)
command
-v
lshw
>
/dev/null
&&
lshw
-c
display
-numeric
|
grep
-q
'vendor: .* \[10DE\]'
||
return
1
;;
lshw
)
command
-v
lshw
>
/dev/null
&&
$SUDO
lshw
-c
display
-numeric
|
grep
-q
'vendor: .* \[10DE\]'
||
return
1
;;
nvidia-smi
)
command
-v
nvidia-smi
>
/dev/null
||
return
1
;;
nvidia-smi
)
command
-v
nvidia-smi
>
/dev/null
||
return
1
;;
esac
esac
}
}
...
...
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