Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Detectors/TPC/workflow/src/CATrackerSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "Framework/Logger.h"
#include "Framework/CompletionPolicy.h"
#include "Framework/DeviceSpec.h"
#include "Framework/CallbackService.h"
#include "DataFormatsTPC/TPCSectorHeader.h"
#include "DataFormatsTPC/ClusterGroupAttribute.h"
#include "DataFormatsTPC/ClusterNative.h"
Expand Down Expand Up @@ -286,6 +287,16 @@ DataProcessorSpec getCATrackerSpec(ca::Config const& specconfig, std::vector<int
processAttributes->validMcInputs.reset();
}

auto& callbacks = ic.services().get<CallbackService>();
callbacks.set(CallbackService::Id::RegionInfoCallback, [processAttributes](FairMQRegionInfo const& info) {
if (info.size) {
auto& tracker = processAttributes->tracker;
if (tracker->registerMemoryForGPU(info.ptr, info.size)) {
throw std::runtime_error("Error registering memory for GPU");
}
}
});

auto processingFct = [processAttributes, processMC, caClusterer, zsDecoder](ProcessingContext& pc) {
if (processAttributes->readyToQuit) {
return;
Expand Down