Add openCL support
This commit is contained in:
@@ -54,6 +54,7 @@ public class Configuration {
|
||||
private int priority;
|
||||
private ComputeType computeMethod;
|
||||
private GPUDevice GPUDevice;
|
||||
private boolean detectGPUs;
|
||||
private boolean printLog;
|
||||
public List<Pair<Calendar, Calendar>> requestTime;
|
||||
private String extras;
|
||||
@@ -76,6 +77,7 @@ public class Configuration {
|
||||
this.computeMethod = null;
|
||||
this.GPUDevice = null;
|
||||
this.userHasSpecifiedACacheDir = false;
|
||||
this.detectGPUs = true;
|
||||
this.workingDirectory = null;
|
||||
this.storageDirectory = null;
|
||||
this.setCacheDir(cache_dir_);
|
||||
@@ -124,6 +126,10 @@ public class Configuration {
|
||||
return this.GPUDevice;
|
||||
}
|
||||
|
||||
public boolean getDetectGPUs() {
|
||||
return this.detectGPUs;
|
||||
}
|
||||
|
||||
public void setMaxUploadingJob(int max) {
|
||||
this.maxUploadingJob = max;
|
||||
}
|
||||
@@ -186,6 +192,10 @@ public class Configuration {
|
||||
this.GPUDevice = device;
|
||||
}
|
||||
|
||||
public void setDetectGPUs(boolean val) {
|
||||
this.detectGPUs = val;
|
||||
}
|
||||
|
||||
public void setComputeMethod(ComputeType meth) {
|
||||
this.computeMethod = meth;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user