ソースを参照

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.
Daniel Hiltgen 7 ヶ月 前
コミット
6c2eb73a70
1 ファイル変更7 行追加6 行削除
  1. 7 6
      gpu/gpu.go

+ 7 - 6
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()