"vscode:/vscode.git/clone" did not exist on "37be02a486eec1448fdf43fceb9ff50be04a9cd2"
Commit 5bca2e60 authored by Daniel Hiltgen's avatar Daniel Hiltgen
Browse files

Harden intel boostrap for nil pointers

parent e9aa5117
...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment