]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/tracking-ca/AliHLTTPCCAGPUTrackerNVCC.cxx
bug fix: reconstruction crash when the output buffer size exceed
[u/mrichter/AliRoot.git] / HLT / TPCLib / tracking-ca / AliHLTTPCCAGPUTrackerNVCC.cxx
CommitLineData
31649d4b 1// **************************************************************************
2// This file is property of and copyright by the ALICE HLT Project *
3// ALICE Experiment at CERN, All rights reserved. *
4// *
5// Primary Authors: Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de> *
6// Ivan Kisel <kisel@kip.uni-heidelberg.de> *
7// David Rohr <drohr@kip.uni-heidelberg.de> *
8// for The ALICE HLT Project. *
9// *
10// Permission to use, copy, modify and distribute this software and its *
11// documentation strictly for non-commercial purposes is hereby granted *
12// without fee, provided that the above copyright notice appears in all *
13// copies and that both the copyright notice and this permission notice *
14// appear in the supporting documentation. The authors make no claims *
15// about the suitability of this software for any purpose. It is *
16// provided "as is" without express or implied warranty. *
17// *
18//***************************************************************************
19
20#include "AliHLTTPCCAGPUTrackerNVCC.h"
21
22AliHLTTPCCAGPUTrackerNVCC::AliHLTTPCCAGPUTrackerNVCC() :
23 fGpuTracker(NULL),
24 fGPUMemory(NULL),
25 fHostLockedMemory(NULL),
26 fDebugLevel(0),
27 fOutFile(NULL),
28 fGPUMemSize(0),
29 fpCudaStreams(NULL),
30 fSliceCount(0),
31 fOutputControl(NULL),
32 fThreadId(0),
33 fCudaInitialized(0)
34 {};
35
36AliHLTTPCCAGPUTrackerNVCC::~AliHLTTPCCAGPUTrackerNVCC() {};
37
38void AliHLTTPCCAGPUTrackerNVCC::ReleaseGlobalLock(void* sem)
39{
40}
41
42int AliHLTTPCCAGPUTrackerNVCC::CheckMemorySizes(int sliceCount)
43{
44 return(0);
45}
46
47int AliHLTTPCCAGPUTrackerNVCC::InitGPU(int sliceCount, int forceDeviceID)
48{
49 return(0);
50}
51
52template <class T> inline T* AliHLTTPCCAGPUTrackerNVCC::alignPointer(T* ptr, int alignment)
53{
54 return((T*) NULL);
55}
56
57bool AliHLTTPCCAGPUTrackerNVCC::CudaFailedMsg(cudaError_t error)
58{
59 return(true);
60}
61
62int AliHLTTPCCAGPUTrackerNVCC::CUDASync(char* state)
63{
64 return(0);
65}
66
67void AliHLTTPCCAGPUTrackerNVCC::SetDebugLevel(const int dwLevel, std::ostream* const NewOutFile)
68{
69}
70
71int AliHLTTPCCAGPUTrackerNVCC::SetGPUTrackerOption(char* OptionName, int /*OptionValue*/)
72{
73 return(0);
74}
75
76void AliHLTTPCCAGPUTrackerNVCC::StandalonePerfTime(int /*iSlice*/, int /*i*/) {}
77
78void AliHLTTPCCAGPUTrackerNVCC::DumpRowBlocks(AliHLTTPCCATracker* tracker, int iSlice, bool check)
79{
80}
81
82int AliHLTTPCCAGPUTrackerNVCC::Reconstruct(AliHLTTPCCASliceOutput** pOutput, AliHLTTPCCAClusterData* pClusterData, int firstSlice, int sliceCountLocal)
83{
84 return(0);
85}
86
87int AliHLTTPCCAGPUTrackerNVCC::InitializeSliceParam(int iSlice, AliHLTTPCCAParam &param)
88{
89 return(0);
90}
91
92int AliHLTTPCCAGPUTrackerNVCC::ExitGPU()
93{
94 return(0);
95}
96
97void AliHLTTPCCAGPUTrackerNVCC::SetOutputControl( AliHLTTPCCASliceOutput::outputControlStruct* val)
98{
99}
100
101int AliHLTTPCCAGPUTrackerNVCC::GetThread()
102{
103 return(0);
104}
105
106unsigned long long int* AliHLTTPCCAGPUTrackerNVCC::PerfTimer(int iSlice, unsigned int i)
107{
108 static unsigned long long int tmp;
109 return(&tmp);
110}
111
112const AliHLTTPCCASliceOutput::outputControlStruct* AliHLTTPCCAGPUTrackerNVCC::OutputControl() const
113{
114 //Return Pointer to Output Control Structure
115 return fOutputControl;
116}
117
118int AliHLTTPCCAGPUTrackerNVCC::GetSliceCount() const
119{
120 //Return max slice count processable
121 return(fSliceCount);
122}
123
124AliHLTTPCCAGPUTracker* AliHLTTPCCAGPUTrackerNVCCCreate()
125{
126 return new AliHLTTPCCAGPUTrackerNVCC;
127}
128void AliHLTTPCCAGPUTrackerNVCCDestroy(AliHLTTPCCAGPUTracker* ptr)
129{
130 delete ptr;
131}
132