Unverified Commit 71b0945f authored by Daniel Hiltgen's avatar Daniel Hiltgen Committed by GitHub
Browse files

Merge pull request #6290 from dhiltgen/intel_npe

Harden intel boostrap for nil pointers
parents e9aa5117 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
......
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