Merge pull request #6290 from dhiltgen/intel_npe

Harden intel boostrap for nil pointers
This commit is contained in:
Daniel Hiltgen 2024-08-09 12:14:42 -07:00 committed by GitHub
commit 71b0945fc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -305,6 +305,8 @@ func GetGPUInfo() GpuInfoList {
// Intel
if envconfig.IntelGPU() {
oHandles = initOneAPIHandles()
if oHandles != nil && oHandles.oneapi != nil {
// On windows we bundle the oneapi library one level above the runner dir
depPath = ""
if runtime.GOOS == "windows" && envconfig.RunnersDir() != "" {
@ -340,6 +342,7 @@ func GetGPUInfo() GpuInfoList {
}
}
}
}
rocmGPUs = AMDGetGPUInfo()
bootstrapped = true