Fix: do not use gpu order to set its id, instead use the same method as blender
This commit is contained in:
@@ -26,6 +26,8 @@ public class GPUDevice {
|
||||
|
||||
private String id;
|
||||
|
||||
private String oldId; // for backward compatibility
|
||||
|
||||
public GPUDevice(String type, String model, long ram, String id) {
|
||||
this.type = type;
|
||||
this.model = model;
|
||||
@@ -65,6 +67,14 @@ public class GPUDevice {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getOldId() {
|
||||
return oldId;
|
||||
}
|
||||
|
||||
public void setOldId(String id) {
|
||||
this.oldId = id;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "GPUDevice [type=" + type + ", model='" + model + "', memory=" + memory + ", id=" + id + "]";
|
||||
|
||||
Reference in New Issue
Block a user