Skip to content

Commit

Permalink
No auto fall-back to CPU if GPU tracker was requested
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreitne committed Feb 24, 2015
1 parent 249d19b commit 02353c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerComponent.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ int AliHLTTPCCATrackerComponent::DoInit( int argc, const char** argv )
fSliceCount = fgkNSlices;
//Create tracker instance and set parameters
fTracker = new AliHLTTPCCATrackerFramework(fAllowGPU, fGPULibrary, fGPUDeviceNum);
if ( fAllowGPU && fTracker->GetGPUStatus() < 2 ) {
HLTError("GPU Tracker requested but unavailable, aborting.");
return -ENODEV;
}
fClusterData = new AliHLTTPCCAClusterData[fgkNSlices];
if (fGPUHelperThreads != -1)
{
Expand Down
5 changes: 4 additions & 1 deletion HLT/TPCLib/tracking-ca/AliHLTTPCCATrackerFramework.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ AliHLTTPCCATrackerFramework::AliHLTTPCCATrackerFramework(int allowGPU, const cha
if (allowGPU && fGPULibAvailable)
{
fUseGPUTracker = (fGPUTrackerAvailable = (fGPUTracker->InitGPU(-1, GPUDeviceNum) == 0));
HLTInfo("GPU Tracker Initialized and available in framework");
if(fUseGPUTracker)
HLTInfo("GPU Tracker Initialized and available in framework");
else
HLTError("GPU Tracker NOT Initialized and NOT available in framework");
}
}

Expand Down

0 comments on commit 02353c3

Please sign in to comment.