Fix missing dep path on windows CPU runners (#6884)

GPUs handled the dependency path properly, but CPU runners didn't which
results in missing vc redist libraries on systems where the user didn't
already have it installed from some other app.
This commit is contained in:
Daniel Hiltgen 2024-09-21 16:28:29 -07:00 committed by GitHub
parent 2a038c1d7e
commit 6c2eb73a70
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -205,6 +205,8 @@ func GetGPUInfo() GpuInfoList {
if err != nil {
slog.Warn("error looking up system memory", "error", err)
}
depPath := LibraryDir()
cpus = []CPUInfo{
{
GpuInfo: GpuInfo{
@ -212,6 +214,7 @@ func GetGPUInfo() GpuInfoList {
Library: "cpu",
Variant: cpuCapability.String(),
ID: "0",
DependencyPath: depPath,
},
},
}
@ -224,8 +227,6 @@ func GetGPUInfo() GpuInfoList {
return GpuInfoList{cpus[0].GpuInfo}
}
depPath := LibraryDir()
// Load ALL libraries
cHandles = initCudaHandles()