Bugfix: by default the compute method should cpu_only because now the server handle correctly cpu+gpu and gpu only

This commit is contained in:
Laurent Clouet
2014-12-02 20:21:12 +00:00
parent 3dcf3cafb1
commit 957e5bb6d5
2 changed files with 29 additions and 12 deletions

View File

@@ -56,7 +56,7 @@ public class Configuration {
this.static_exeDirName = "exe";
this.maxUploadingJob = 1;
this.nbCores = -1; // ie not set
this.computeMethod = ComputeType.CPU_GPU;
this.computeMethod = ComputeType.CPU_ONLY;
this.GPUDevice = null;
this.userSpecifiedACacheDir = false;
this.workingDirectory = null;
@@ -117,9 +117,6 @@ public class Configuration {
public void setUseGPU(GPUDevice device) {
this.GPUDevice = device;
if (device == null) {
this.computeMethod = ComputeType.CPU_GPU;
}
}
public void setComputeMethod(ComputeType meth) {