revert debug code

This commit is contained in:
Inforithmics 2025-09-20 15:26:24 +02:00
parent d26d920fb2
commit 1cb70716bf
1 changed files with 6 additions and 6 deletions

View File

@ -437,16 +437,16 @@ func GetGPUInfo() GpuInfoList {
}
}
//rocmGPUs, err = AMDGetGPUInfo()
rocmGPUs, err = AMDGetGPUInfo()
// The ID field is used in context of the filtered set of GPUS
// so we have to replace any of these numeric IDs with their
// placement in this set of GPUs
//for i := range rocmGPUs {
// if _, err := strconv.Atoi(rocmGPUs[i].ID); err == nil {
// rocmGPUs[i].ID = strconv.Itoa(i)
// }
//}
for i := range rocmGPUs {
if _, err := strconv.Atoi(rocmGPUs[i].ID); err == nil {
rocmGPUs[i].ID = strconv.Itoa(i)
}
}
// Vulkan
vHandles = initVulkanHandles()