We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c54a70 commit 88c1e45Copy full SHA for 88c1e45
GPU/GPUTracking/Definitions/GPUSettingsList.h
@@ -462,8 +462,8 @@ EndConfig()
462
463
// Settings for the standalone benchmark
464
BeginConfig(GPUSettingsStandalone, configStandalone)
465
-AddOption(runGPU, bool, true, "", 'g', "Use GPU for processing", message("GPU processing: %s"))
466
-AddOptionSet(runGPU, bool, false, "", 'c', "Use CPU for processing", message("CPU enabled"))
+AddOption(runGPU, uint8_t, 1, "", 'g', "Use GPU for processing", message("GPU processing enabled"), set(2))
+AddOptionSet(runGPU, uint8_t, 0, "", 'c', "Use CPU for processing", message("CPU enabled"))
467
AddOption(gpuType, std::string, "AUTO", "", 0, "GPU type (CUDA / HIP / OCL / OCL2) or CPU or AUTO")
468
AddOption(runGPUforce, bool, true, "", 0, "Force usage of the specified GPU device type, no CPU fallback")
469
AddOption(noprompt, bool, true, "", 0, "Do prompt for keypress before exiting")
GPU/GPUTracking/Standalone/Benchmark/standalone.cxx
@@ -268,7 +268,7 @@ int32_t ReadConfiguration(int argc, char** argv)
268
} else if (GPUReconstruction::CheckInstanceAvailable(GPUReconstruction::DeviceType::OCL, configStandalone.proc.debugLevel >= 2)) {
269
configStandalone.gpuType = "OCL";
270
} else {
271
- if (configStandalone.runGPUforce) {
+ if (configStandalone.runGPU > 1 && configStandalone.runGPUforce) {
272
printf("No GPU backend / device found, running on CPU is disabled due to runGPUforce\n");
273
return 1;
274
}
0 commit comments