Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
62860c22
Commit
62860c22
authored
Jun 06, 2023
by
DGdev91
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip force pyton and pytorch ver if TORCH_COMMAND already set
parent
86467688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
webui.sh
webui.sh
+12
-9
No files found.
webui.sh
View file @
62860c22
...
@@ -114,16 +114,19 @@ fi
...
@@ -114,16 +114,19 @@ fi
# Check prerequisites
# Check prerequisites
gpu_info
=
$(
lspci 2>/dev/null |
grep
-E
"VGA|Display"
)
gpu_info
=
$(
lspci 2>/dev/null |
grep
-E
"VGA|Display"
)
case
"
$gpu_info
"
in
case
"
$gpu_info
"
in
*
"Navi 1"
*
)
*
"Navi 1"
*
)
pyv
=
"
$(
${
python_cmd
}
-c
'import sys; print(".".join(map(str, sys.version_info[0:2])))'
)
"
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
if
[[
$(
bc
<<<
"
$pyv
<= 3.10"
)
-eq
1
]]
if
[[
-z
"
${
TORCH_COMMAND
}
"
]]
then
then
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
pyv
=
"
$(
${
python_cmd
}
-c
'import sys; print(".".join(map(str, sys.version_info[0:2])))'
)
"
# Navi users will still use torch 1.13 because 2.0 does not seem to work.
if
[[
$(
bc
<<<
"
$pyv
<= 3.10"
)
-eq
1
]]
export
TORCH_COMMAND
=
"pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2"
then
else
# Navi users will still use torch 1.13 because 2.0 does not seem to work.
printf
"
\e
[1m
\e
[31mERROR: RX 5000 series GPUs must be using at max python 3.10, aborting...
\e
[0m"
export
TORCH_COMMAND
=
"pip install torch==1.13.1+rocm5.2 torchvision==0.14.1+rocm5.2 --index-url https://download.pytorch.org/whl/rocm5.2"
exit
1
else
printf
"
\e
[1m
\e
[31mERROR: RX 5000 series GPUs must be using at max python 3.10, aborting...
\e
[0m"
exit
1
fi
fi
fi
;;
;;
*
"Navi 2"
*
)
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
*
"Navi 2"
*
)
export
HSA_OVERRIDE_GFX_VERSION
=
10.3.0
...
...
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