Repository navigation
GPU TPC: Run extrapolation tracking only on selected tracks #16210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
7ecfe3f
ba4ed2c
06eb19f
f9b5665
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -478,6 +478,16 @@ int32_t GPUReconstruction::Exit() | |
| void GPUReconstruction::RegisterGPUDeviceProcessor(GPUProcessor* proc, GPUProcessor* slaveProcessor) { proc->InitGPUProcessor(this, GPUProcessor::PROCESSOR_TYPE_DEVICE, slaveProcessor); } | ||
| void GPUReconstruction::ConstructGPUProcessor(GPUProcessor* proc) { proc->mConstantMem = proc->mGPUProcessorType == GPUProcessor::PROCESSOR_TYPE_DEVICE ? mDeviceConstantMem : mHostConstantMem.get(); } | ||
|
|
||
| uint32_t GPUReconstruction::StreamForSector(uint32_t sector) const | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we move everything that is not pure-GPU related to GPUChainTracking. GPUReconstruction should be generic.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reusable memory in |
||
| { | ||
| if (mNStreams % 2 == 0 && mNStreams > 1) { | ||
| uint32_t nStreamsHalf = mNStreams / 2; | ||
| return sector % nStreamsHalf + (2 * sector < NSECTORS ? 0 : nStreamsHalf); | ||
| } else { | ||
| return sector % mNStreams; | ||
| } | ||
| } | ||
|
|
||
| void GPUReconstruction::ComputeReuseMax(GPUProcessor* proc) | ||
| { | ||
| for (auto it = mMemoryReuse1to1.begin(); it != mMemoryReuse1to1.end(); it++) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -393,7 +393,7 @@ AddOption(nHostThreads, int32_t, -1, "nThreads", 't', "Number of host threads to | |
| AddOption(ompThreads, int32_t, -1, "", 0, "Deprecated synonym for nHostThreads") | ||
| AddOption(inKernelParallel, uint8_t, 2, "", 0, "Parallelize with multi-threading inside kernels on the host instead of over TPC sectors: 0 disable, 1 full and exclusive in-kernel parallelization, 2 for nested parallelization over TPC sectors (nTPCClustererLanes thread-groups) and inside kernels") | ||
| AddOption(autoAdjustHostThreads, bool, true, "", 0, "Auto-adjust number of OMP threads, decreasing the number for small input data") | ||
| AddOption(nStreams, int8_t, 8, "", 0, "Number of GPU streams / command queues") | ||
| AddOption(nStreams, int8_t, 6, "", 0, "Number of GPU streams / command queues") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I might be wrong, but I belive the TPC clusterization can parallelize over 7 streams at the moment. I thought you wanted to add a nStreamsTPCSectorTracking option, to use only a subset of streams in the sector tracking? |
||
| AddOption(nTPCClustererLanes, int8_t, -1, "", 0, "Number of TPC clusterers that can run in parallel (-1 = autoset)") | ||
| AddOption(overrideClusterizerFragmentLen, int32_t, -1, "", 0, "Force the cluster max fragment len to a certain value (-1 = autodetect)") | ||
| AddOption(delayedOutput, bool, true, "", 0, "Delay output to be parallel to track fit") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need a non-const version? In principle, this should be constant memory during kernels?