Skip to content

Commit

Permalink
GPU: Fix forwarding of exit code when using doublePipelined processing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrohr committed Nov 7, 2024
1 parent 2475cbc commit be3f6b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions GPU/GPUTracking/Base/GPUReconstructionCPU.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,9 @@ int32_t GPUReconstructionCPU::RunChains()

timerTotal.Start();
if (mProcessingSettings.doublePipeline) {
if (EnqueuePipeline()) {
return 1;
int32_t retVal = EnqueuePipeline();
if (retVal) {
return retVal;
}
} else {
if (mThreadId != GetThread()) {
Expand Down
2 changes: 1 addition & 1 deletion GPU/GPUTracking/Definitions/GPUSettingsList.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ AddOptionRTC(extraClusterErrorSplitPadSharedSingleY2, float, 0.03f, "", 0, "Addi
AddOptionRTC(extraClusterErrorFactorSplitPadSharedSingleY2, float, 3.0f, "", 0, "Multiplicative extra cluster error for Y2 if splitpad, shared, or single set")
AddOptionRTC(extraClusterErrorSplitTimeSharedSingleZ2, float, 0.03f, "", 0, "Additive extra cluster error for Z2 if splittime, shared, or single set")
AddOptionRTC(extraClusterErrorFactorSplitTimeSharedSingleZ2, float, 3.0f, "", 0, "Multiplicative extra cluster error for Z2 if splittime, shared, or single set")
AddOptionArray(errorsCECrossing, float, 5, (0.f, 0.f, 0.f, 0.f, 0.f), "", 0, "Extra errors to add to track when crossing CE, depending on addErrorsCECrossing") // BUG: CUDA cannot yet hand AddOptionArrayRTC
AddOptionArray(errorsCECrossing, float, 5, (0.f, 0.f, 0.f, 0.f, 0.f), "", 0, "Extra errors to add to track when crossing CE, depending on addErrorsCECrossing") // BUG: CUDA cannot yet handle AddOptionArrayRTC
AddOptionRTC(globalTrackingYRangeUpper, float, 0.85f, "", 0, "Inner portion of y-range in slice that is not used in searching for global track candidates")
AddOptionRTC(globalTrackingYRangeLower, float, 0.85f, "", 0, "Inner portion of y-range in slice that is not used in searching for global track candidates")
AddOptionRTC(trackFollowingYFactor, float, 4.f, "", 0, "Weight of y residual vs z residual in tracklet constructor")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void GPUChainTracking::SanityCheck()
void GPUChainTracking::RunTPCClusterFilter(o2::tpc::ClusterNativeAccess* clusters, std::function<o2::tpc::ClusterNative*(size_t)> allocator, bool applyClusterCuts)
{
GPUTPCClusterFilter clusterFilter(*clusters);
o2::tpc::ClusterNative* outputBuffer;
o2::tpc::ClusterNative* outputBuffer = nullptr;
for (int32_t iPhase = 0; iPhase < 2; iPhase++) {
uint32_t countTotal = 0;
for (uint32_t iSector = 0; iSector < GPUCA_NSLICES; iSector++) {
Expand Down
2 changes: 1 addition & 1 deletion GPU/Workflow/src/GPUWorkflowSpec.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
}
createEmptyOutput = !mConfParam->partialOutputForNonFatalErrors;
} else {
throw std::runtime_error("tracker returned error code " + std::to_string(retVal));
throw std::runtime_error("GPU Reconstruction error: error code " + std::to_string(retVal));
}
}

Expand Down

0 comments on commit be3f6b2

Please sign in to comment.