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
5bca2e60
"vscode:/vscode.git/clone" did not exist on "37be02a486eec1448fdf43fceb9ff50be04a9cd2"
Commit
5bca2e60
authored
Aug 09, 2024
by
Daniel Hiltgen
Browse files
Harden intel boostrap for nil pointers
parent
e9aa5117
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
29 deletions
+32
-29
gpu/gpu.go
gpu/gpu.go
+32
-29
No files found.
gpu/gpu.go
View file @
5bca2e60
...
@@ -305,6 +305,8 @@ func GetGPUInfo() GpuInfoList {
...
@@ -305,6 +305,8 @@ func GetGPUInfo() GpuInfoList {
// Intel
// Intel
if
envconfig
.
IntelGPU
()
{
if
envconfig
.
IntelGPU
()
{
oHandles
=
initOneAPIHandles
()
oHandles
=
initOneAPIHandles
()
if
oHandles
!=
nil
&&
oHandles
.
oneapi
!=
nil
{
// On windows we bundle the oneapi library one level above the runner dir
// On windows we bundle the oneapi library one level above the runner dir
depPath
=
""
depPath
=
""
if
runtime
.
GOOS
==
"windows"
&&
envconfig
.
RunnersDir
()
!=
""
{
if
runtime
.
GOOS
==
"windows"
&&
envconfig
.
RunnersDir
()
!=
""
{
...
@@ -340,6 +342,7 @@ func GetGPUInfo() GpuInfoList {
...
@@ -340,6 +342,7 @@ func GetGPUInfo() GpuInfoList {
}
}
}
}
}
}
}
rocmGPUs
=
AMDGetGPUInfo
()
rocmGPUs
=
AMDGetGPUInfo
()
bootstrapped
=
true
bootstrapped
=
true
...
...
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