Skip to content

Commit 20cd4cd

Browse files
committed
GPU Standalone: Add sanity check for benchmark to warn about incompatible options
1 parent ebe1726 commit 20cd4cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GPU/GPUTracking/Standalone/Benchmark/standalone.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ int32_t ReadConfiguration(int argc, char** argv)
223223
}
224224
}
225225
if (configStandalone.setO2Settings) {
226+
if (!(configStandalone.inputcontrolmem && configStandalone.outputcontrolmem)) {
227+
printf("setO2Settings requires the usage of --inputMemory and --outputMemory as in O2\n");
228+
return 1;
229+
}
226230
if (configStandalone.runGPU) {
227231
configStandalone.proc.forceHostMemoryPoolSize = 1024 * 1024 * 1024;
228232
}

0 commit comments

Comments
 (0)