You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GPU is Pascal or older (CC <= 7.4) - use CUDA v12 (supports CC 6.1)
52
+
return"v12"
53
+
}
53
54
}
54
55
55
56
// GPU is Turing or newer (CC >= 7.5) - can use newer CUDA
56
-
ifgpuInfo.DriverMajor<13 {
57
+
iflen(gpuInfos) >0&&gpuInfos[0].DriverMajor<13 {
57
58
// The detected driver is older than 580 (Aug 2025)
58
59
// Warn if their CC is compatible with v13 and they should upgrade their driver to get better performance
59
-
if!isOldGPU {
60
-
slog.Warn("old CUDA driver detected - please upgrade to a newer driver for best performance", "version", fmt.Sprintf("%d.%d", gpuInfo.DriverMajor, gpuInfo.DriverMinor))
61
-
}
60
+
slog.Warn("old CUDA driver detected - please upgrade to a newer driver for best performance", "version", fmt.Sprintf("%d.%d", gpuInfos[0].DriverMajor, gpuInfos[0].DriverMinor))
0 commit comments