|
@@ -35,12 +35,11 @@ func AMDGetGPUInfo() []RocmGPUInfo {
|
|
|
}
|
|
|
defer hl.Release()
|
|
|
|
|
|
- // TODO - this reports incorrect version information, so omitting for now
|
|
|
- // driverMajor, driverMinor, err := hl.AMDDriverVersion()
|
|
|
- // if err != nil {
|
|
|
- // // For now this is benign, but we may eventually need to fail compatibility checks
|
|
|
- // slog.Debug("error looking up amd driver version", "error", err)
|
|
|
- // }
|
|
|
+ driverMajor, driverMinor, err := hl.AMDDriverVersion()
|
|
|
+ if err != nil {
|
|
|
+ // For now this is benign, but we may eventually need to fail compatibility checks
|
|
|
+ slog.Debug("error looking up amd driver version", "error", err)
|
|
|
+ }
|
|
|
|
|
|
// Note: the HIP library automatically handles subsetting to any HIP_VISIBLE_DEVICES the user specified
|
|
|
count := hl.HipGetDeviceCount()
|
|
@@ -132,10 +131,8 @@ func AMDGetGPUInfo() []RocmGPUInfo {
|
|
|
MinimumMemory: rocmMinimumMemory,
|
|
|
Name: name,
|
|
|
Compute: gfx,
|
|
|
-
|
|
|
- // TODO - this information isn't accurate on windows, so don't report it until we find the right way to retrieve
|
|
|
- // DriverMajor: driverMajor,
|
|
|
- // DriverMinor: driverMinor,
|
|
|
+ DriverMajor: driverMajor,
|
|
|
+ DriverMinor: driverMinor,
|
|
|
},
|
|
|
index: i,
|
|
|
}
|