From 6c2eb73a70716ca48c1b58b6ca89086a15c40d03 Mon Sep 17 00:00:00 2001 From: Daniel Hiltgen Date: Sat, 21 Sep 2024 16:28:29 -0700 Subject: [PATCH] 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. --- gpu/gpu.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gpu/gpu.go b/gpu/gpu.go index 1fa941dd..db0e247b 100644 --- a/gpu/gpu.go +++ b/gpu/gpu.go @@ -205,13 +205,16 @@ func GetGPUInfo() GpuInfoList { if err != nil { slog.Warn("error looking up system memory", "error", err) } + depPath := LibraryDir() + cpus = []CPUInfo{ { GpuInfo: GpuInfo{ - memInfo: mem, - Library: "cpu", - Variant: cpuCapability.String(), - ID: "0", + memInfo: mem, + 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()