removed HIP support

This commit is contained in:
harlekin
2023-01-28 14:44:04 +00:00
committed by Sheepit Renderfarm
parent 37f8ac1f73
commit 304085786c
8 changed files with 64 additions and 430 deletions

View File

@@ -38,15 +38,6 @@ public class GPU {
devices.addAll(gpus);
}
OS os = OS.getOS();
if (os instanceof Windows) { // for now we only allow AMD on Windows
gpus = new HIP().getGpus();
if (gpus != null) {
devices.addAll(gpus);
}
}
return true;
}
@@ -75,6 +66,16 @@ public class GPU {
return devices;
}
public static boolean hasHIPDevices() {
OS os = OS.getOS();
if (os instanceof Windows) { // for now we only allow AMD on Windows
return HIP.hasHIPDevices();
}
else {
return false;
}
}
public static GPUDevice getGPUDevice(String deviceId) {
if (deviceId == null) {
return null;