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
a6d62e06
"vscode:/vscode.git/clone" did not exist on "e27b3925c9c6bbcf7605c0cf8c6119339fec0e4e"
Unverified
Commit
a6d62e06
authored
Apr 24, 2024
by
Daniel Hiltgen
Committed by
GitHub
Apr 24, 2024
Browse files
Merge pull request #3882 from dhiltgen/amd_gfx
AMD gfx patch rev is hex
parents
6e76348d
0d6687f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
gpu/amd_linux.go
gpu/amd_linux.go
+2
-2
gpu/amd_windows.go
gpu/amd_windows.go
+5
-2
No files found.
gpu/amd_linux.go
View file @
a6d62e06
...
...
@@ -140,7 +140,7 @@ func AMDGetGPUInfo() []GpuInfo {
}
if
int
(
major
)
<
RocmComputeMin
{
slog
.
Warn
(
fmt
.
Sprintf
(
"amdgpu too old gfx%d%d%
d
"
,
major
,
minor
,
patch
),
"gpu"
,
gpuID
)
slog
.
Warn
(
fmt
.
Sprintf
(
"amdgpu too old gfx%d%d%
x
"
,
major
,
minor
,
patch
),
"gpu"
,
gpuID
)
continue
}
...
...
@@ -266,7 +266,7 @@ func AMDGetGPUInfo() []GpuInfo {
}
slog
.
Debug
(
"rocm supported GPUs"
,
"types"
,
supported
)
}
gfx
:=
fmt
.
Sprintf
(
"gfx%d%d%
d
"
,
gpuInfo
.
Major
,
gpuInfo
.
Minor
,
gpuInfo
.
Patch
)
gfx
:=
fmt
.
Sprintf
(
"gfx%d%d%
x
"
,
gpuInfo
.
Major
,
gpuInfo
.
Minor
,
gpuInfo
.
Patch
)
if
!
slices
.
Contains
[[]
string
,
string
](
supported
,
gfx
)
{
slog
.
Warn
(
"amdgpu is not supported"
,
"gpu"
,
gpuInfo
.
ID
,
"gpu_type"
,
gfx
,
"library"
,
libDir
,
"supported_types"
,
supported
)
// TODO - consider discrete markdown just for ROCM troubleshooting?
...
...
gpu/amd_windows.go
View file @
a6d62e06
...
...
@@ -149,13 +149,16 @@ func AMDGetGPUInfo() []GpuInfo {
}
}
if
patch
!=
""
{
gpuInfo
.
Patch
,
err
=
strconv
.
Atoi
(
patch
)
// Patch rev is hex; e.g. gfx90a
p
,
err
:=
strconv
.
ParseInt
(
patch
,
16
,
0
)
if
err
!=
nil
{
slog
.
Info
(
"failed to parse version"
,
"version"
,
gfx
,
"error"
,
err
)
}
else
{
gpuInfo
.
Patch
=
int
(
p
)
}
}
if
gpuInfo
.
Major
<
RocmComputeMin
{
slog
.
Warn
(
fmt
.
Sprintf
(
"amdgpu [%s] too old gfx%d%d%
d
"
,
gpuInfo
.
ID
,
gpuInfo
.
Major
,
gpuInfo
.
Minor
,
gpuInfo
.
Patch
))
slog
.
Warn
(
fmt
.
Sprintf
(
"amdgpu [%s] too old gfx%d%d%
x
"
,
gpuInfo
.
ID
,
gpuInfo
.
Major
,
gpuInfo
.
Minor
,
gpuInfo
.
Patch
))
continue
}
...
...
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