Skip to content

Commit 29217ed

Browse files
committed
GPU: Add option to set some O2 defaults in standalone benchmark
1 parent 0d384ae commit 29217ed

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

GPU/GPUTracking/Definitions/GPUSettingsList.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ AddOption(rundEdx, int, -1, "", 0, "Enable dEdx processing")
498498
AddOption(runCompression, int, 1, "", 0, "Enable TPC Compression")
499499
AddOption(runTransformation, int, 1, "", 0, "Enable TPC Transformation")
500500
AddOption(runRefit, bool, false, "", 0, "Enable final track refit")
501+
AddOption(setO2Settings, bool, false, "", 0, "Set O2 defaults for outerParam, output of shared cluster map, referenceX")
501502
AddHelp("help", 'h')
502503
AddHelpAll("helpall", 'H')
503504
AddSubConfig(GPUSettingsRec, rec)

GPU/GPUTracking/Standalone/Benchmark/standalone.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,12 @@ int ReadConfiguration(int argc, char** argv)
228228
configStandalone.proc.ompThreads = 1;
229229
}
230230
}
231+
if (configStandalone.setO2Settings) {
232+
configStandalone.proc.forceHostMemoryPoolSize = 1024 * 1024 * 1024;
233+
configStandalone.rec.tpc.nWaysOuter = 1;
234+
configStandalone.rec.tpc.trackReferenceX = 83;
235+
configStandalone.proc.outputSharedClusterMap = 1;
236+
}
231237

232238
if (configStandalone.outputcontrolmem) {
233239
bool forceEmptyMemory = getenv("LD_PRELOAD") && strstr(getenv("LD_PRELOAD"), "valgrind") != nullptr;

0 commit comments

Comments
 (0)