]>
Commit | Line | Data |
---|---|---|
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 | ||
22 | AliHLTTPCCAGPUTrackerNVCC::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 | ||
36 | AliHLTTPCCAGPUTrackerNVCC::~AliHLTTPCCAGPUTrackerNVCC() {}; | |
37 | ||
38 | void AliHLTTPCCAGPUTrackerNVCC::ReleaseGlobalLock(void* sem) | |
39 | { | |
40 | } | |
41 | ||
42 | int AliHLTTPCCAGPUTrackerNVCC::CheckMemorySizes(int sliceCount) | |
43 | { | |
44 | return(0); | |
45 | } | |
46 | ||
47 | int AliHLTTPCCAGPUTrackerNVCC::InitGPU(int sliceCount, int forceDeviceID) | |
48 | { | |
49 | return(0); | |
50 | } | |
51 | ||
52 | template <class T> inline T* AliHLTTPCCAGPUTrackerNVCC::alignPointer(T* ptr, int alignment) | |
53 | { | |
54 | return((T*) NULL); | |
55 | } | |
56 | ||
57 | bool AliHLTTPCCAGPUTrackerNVCC::CudaFailedMsg(cudaError_t error) | |
58 | { | |
59 | return(true); | |
60 | } | |
61 | ||
62 | int AliHLTTPCCAGPUTrackerNVCC::CUDASync(char* state) | |
63 | { | |
64 | return(0); | |
65 | } | |
66 | ||
67 | void AliHLTTPCCAGPUTrackerNVCC::SetDebugLevel(const int dwLevel, std::ostream* const NewOutFile) | |
68 | { | |
69 | } | |
70 | ||
71 | int AliHLTTPCCAGPUTrackerNVCC::SetGPUTrackerOption(char* OptionName, int /*OptionValue*/) | |
72 | { | |
73 | return(0); | |
74 | } | |
75 | ||
76 | void AliHLTTPCCAGPUTrackerNVCC::StandalonePerfTime(int /*iSlice*/, int /*i*/) {} | |
77 | ||
78 | void AliHLTTPCCAGPUTrackerNVCC::DumpRowBlocks(AliHLTTPCCATracker* tracker, int iSlice, bool check) | |
79 | { | |
80 | } | |
81 | ||
82 | int AliHLTTPCCAGPUTrackerNVCC::Reconstruct(AliHLTTPCCASliceOutput** pOutput, AliHLTTPCCAClusterData* pClusterData, int firstSlice, int sliceCountLocal) | |
83 | { | |
84 | return(0); | |
85 | } | |
86 | ||
87 | int AliHLTTPCCAGPUTrackerNVCC::InitializeSliceParam(int iSlice, AliHLTTPCCAParam ¶m) | |
88 | { | |
89 | return(0); | |
90 | } | |
91 | ||
92 | int AliHLTTPCCAGPUTrackerNVCC::ExitGPU() | |
93 | { | |
94 | return(0); | |
95 | } | |
96 | ||
97 | void AliHLTTPCCAGPUTrackerNVCC::SetOutputControl( AliHLTTPCCASliceOutput::outputControlStruct* val) | |
98 | { | |
99 | } | |
100 | ||
101 | int AliHLTTPCCAGPUTrackerNVCC::GetThread() | |
102 | { | |
103 | return(0); | |
104 | } | |
105 | ||
106 | unsigned long long int* AliHLTTPCCAGPUTrackerNVCC::PerfTimer(int iSlice, unsigned int i) | |
107 | { | |
108 | static unsigned long long int tmp; | |
109 | return(&tmp); | |
110 | } | |
111 | ||
112 | const AliHLTTPCCASliceOutput::outputControlStruct* AliHLTTPCCAGPUTrackerNVCC::OutputControl() const | |
113 | { | |
114 | //Return Pointer to Output Control Structure | |
115 | return fOutputControl; | |
116 | } | |
117 | ||
118 | int AliHLTTPCCAGPUTrackerNVCC::GetSliceCount() const | |
119 | { | |
120 | //Return max slice count processable | |
121 | return(fSliceCount); | |
122 | } | |
123 | ||
124 | AliHLTTPCCAGPUTracker* AliHLTTPCCAGPUTrackerNVCCCreate() | |
125 | { | |
126 | return new AliHLTTPCCAGPUTrackerNVCC; | |
127 | } | |
128 | void AliHLTTPCCAGPUTrackerNVCCDestroy(AliHLTTPCCAGPUTracker* ptr) | |
129 | { | |
130 | delete ptr; | |
131 | } | |
132 |