better hipversion detect

This commit is contained in:
Vladimir Mandic
2023-10-01 11:55:34 -04:00
parent 3950da3e34
commit 6837bd9bc1
5 changed files with 8 additions and 4 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

+3 -2
View File
@@ -399,8 +399,9 @@ def check_torch():
log.debug(f'HSA_OVERRIDE_GFX_VERSION auto config is skipped for {gpu}')
try:
command = subprocess.run('hipconfig --version', shell=True, check=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
major_ver, minor_ver, *_ = command.stdout.decode(encoding="utf8", errors="ignore").split('.')
rocm_ver = f'{major_ver}.{minor_ver}'
arr = command.stdout.decode(encoding="utf8", errors="ignore").split('.')
if len(arr) >= 2:
rocm_ver = f'{arr[0]}.{arr[1]}'
log.debug(f'ROCm version detected: {rocm_ver}')
except Exception as e:
log.debug(f'Run hipconfig failed: {e}')
+3 -1
View File
@@ -74,7 +74,9 @@ svg.feather.feather-image, .feather .feather-image { display: none }
.tab-nav { zoom: 120%; margin-top: 10px; margin-bottom: 10px; border-bottom: 2px solid var(--highlight-color) !important; padding-bottom: 2px; }
div.tab-nav button.selected {background-color: var(--button-primary-background-fill);}
#settings div.tab-nav button.selected {background-color: var(--background-color); color: var(--primary-800); font-weight: bold;}
.label-wrap { background-color: #363c4a; padding: 16px 8px 8px 8px; border-radius: var(--radius-lg);}
.label-wrap { background-color: #363c4a; padding: 16px 8px 8px 8px; border-radius: var(--radius-lg); padding-left: 8px !important; }
.small-accordion .label-wrap { padding: 8px 0px 8px 0px; }
.small-accordion .label-wrap .icon { margin-right: 1em; }
.gradio-slider input[type="number"] { width: 4.5em; font-size: 0.8rem; height: 20px; }
.gradio-button.tool { border: none; box-shadow: none; border-radius: var(--radius-lg);}
button.selected {background: var(--button-primary-background-fill);}
+1
View File
@@ -1,3 +1,4 @@
setuptools
addict
aenum
aiohttp