removed HIP support
This commit is contained in:
committed by
Sheepit Renderfarm
parent
37f8ac1f73
commit
304085786c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user