Skip to content

Commit

Permalink
GPU: Add gpu-reconstruction-prepare device, forwarding the pointers t…
Browse files Browse the repository at this point in the history
…o gpu-reconstruction
  • Loading branch information
davidrohr committed Sep 22, 2023
1 parent 1389d83 commit d7f0ef2
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 212 deletions.
4 changes: 2 additions & 2 deletions GPU/Workflow/include/GPUWorkflow/GPUWorkflowSpec.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class GPURecoWorkflowSpec : public o2::framework::Task
struct Config {
int itsTriggerType = 0;
int lumiScaleMode = 0;
int enableDoublePipeline = 0;
bool decompressTPC = false;
bool decompressTPCFromROOT = false;
bool caClusterer = false;
Expand Down Expand Up @@ -149,8 +150,7 @@ class GPURecoWorkflowSpec : public o2::framework::Task
int runITSTracking(o2::framework::ProcessingContext& pc);

CompletionPolicyData* mPolicyData;
std::unique_ptr<o2::algorithm::ForwardParser<o2::tpc::ClusterGroupHeader>> mParser;
std::unique_ptr<GPUO2Interface> mTracker;
std::unique_ptr<GPUO2Interface> mGPUReco;
std::unique_ptr<GPUDisplayFrontendInterface> mDisplayFrontend;
std::unique_ptr<TPCFastTransform> mFastTransform;
std::unique_ptr<TPCFastTransform> mFastTransformRef;
Expand Down
2 changes: 1 addition & 1 deletion GPU/Workflow/src/GPUWorkflowITS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void GPURecoWorkflowSpec::initFunctionITS(InitContext& ic)
std::transform(mITSMode.begin(), mITSMode.end(), mITSMode.begin(), [](unsigned char c) { return std::tolower(c); });
o2::its::VertexerTraits* vtxTraits = nullptr;
o2::its::TrackerTraits* trkTraits = nullptr;
mTracker->GetITSTraits(trkTraits, vtxTraits, mITSTimeFrame);
mGPUReco->GetITSTraits(trkTraits, vtxTraits, mITSTimeFrame);
mITSVertexer = std::make_unique<o2::its::Vertexer>(vtxTraits);
mITSTracker = std::make_unique<o2::its::Tracker>(trkTraits);
mITSVertexer->adoptTimeFrame(*mITSTimeFrame);
Expand Down
Loading

0 comments on commit d7f0ef2

Please sign in to comment.