Skip to content

Commit d8dbc60

Browse files
f3schdavidrohr
authored andcommitted
ITS: cleanup unused GPU code
1 parent eb292d8 commit d8dbc60

File tree

16 files changed

+12
-502
lines changed

16 files changed

+12
-502
lines changed

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Cell.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,6 @@ namespace o2::its
2929
class Cell final
3030
{
3131
public:
32-
GPUhdDefault() Cell() = default;
33-
GPUhd() Cell(const int firstClusterIndex, const int secondClusterIndex, const int thirdClusterIndex,
34-
const int firstTrackletIndex, const int secondTrackletIndex)
35-
: mFirstClusterIndex(firstClusterIndex),
36-
mSecondClusterIndex(secondClusterIndex),
37-
mThirdClusterIndex(thirdClusterIndex),
38-
mFirstTrackletIndex(firstTrackletIndex),
39-
mSecondTrackletIndex(secondTrackletIndex),
40-
mLevel(1) {}
41-
GPUhdDefault() Cell(const Cell&) = default;
42-
GPUhdDefault() Cell(Cell&&) = default;
43-
GPUhdDefault() ~Cell() = default;
44-
45-
GPUhdDefault() Cell& operator=(const Cell&) = default;
46-
GPUhdDefault() Cell& operator=(Cell&&) noexcept = default;
47-
4832
GPUhd() int getFirstClusterIndex() const { return mFirstClusterIndex; };
4933
GPUhd() int getSecondClusterIndex() const { return mSecondClusterIndex; };
5034
GPUhd() int getThirdClusterIndex() const { return mThirdClusterIndex; };

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Constants.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ constexpr int UnusedIndex{-1};
3131
constexpr float Resolution{0.0005f};
3232
constexpr float Radl = 9.36f; // Radiation length of Si [cm]
3333
constexpr float Rho = 2.33f; // Density of Si [g/cm^3]
34-
namespace its // to be removed
35-
{
36-
constexpr int UnusedIndex{-1};
37-
constexpr float Resolution{0.0005f};
38-
} // namespace its
3934
} // namespace o2::its::constants
4035

4136
#endif /* TRACKINGITSU_INCLUDE_CONSTANTS_H_ */

Detectors/ITSMFT/ITS/tracking/include/ITStracking/Road.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,22 @@ class Road final
4545
GPUhd() void resetRoad()
4646
{
4747
for (int i = 0; i < maxRoadSize; i++) {
48-
mCellIds[i] = constants::its::UnusedIndex;
48+
mCellIds[i] = constants::UnusedIndex;
4949
}
5050
mRoadSize = 0;
5151
}
5252

5353
GPUhd() void addCell(int cellLayer, int cellId)
5454
{
55-
if (mCellIds[cellLayer] == constants::its::UnusedIndex) {
55+
if (mCellIds[cellLayer] == constants::UnusedIndex) {
5656
++mRoadSize;
5757
}
5858

5959
mCellIds[cellLayer] = cellId;
6060
}
6161

6262
private:
63-
int mCellIds[maxRoadSize]{constants::its::UnusedIndex};
64-
// int mLabel;
63+
int mCellIds[maxRoadSize]{constants::UnusedIndex};
6564
unsigned char mRoadSize{0};
6665
bool mIsFakeRoad{false};
6766
};

GPU/GPUTracking/Base/GPUConstantMem.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "GPUTPCConvert.h"
2727
#include "GPUTPCCompression.h"
2828
#include "GPUTPCDecompression.h"
29-
#include "GPUITSFitter.h"
3029
#include "GPUTPCClusterFinder.h"
3130
#include "GPUTrackingRefit.h"
3231

@@ -50,7 +49,6 @@ struct GPUConstantMem {
5049
GPUTRDTrackerGPU trdTrackerGPU;
5150
GPUTRDTracker trdTrackerO2;
5251
GPUTPCClusterFinder tpcClusterer[GPUCA_NSECTORS];
53-
GPUITSFitter itsFitter;
5452
GPUTrackingRefitProcessor trackingRefit;
5553
GPUTrackingInOutPointers ioPtrs;
5654
GPUCalibObjectsConst calibObjects;

GPU/GPUTracking/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ set(SRCS_NO_CINT ${SRCS_NO_CINT} display/GPUDisplayInterface.cxx)
173173

174174
set(SRCS_NO_CINT ${SRCS_NO_CINT}
175175
Global/GPUChainITS.cxx
176-
ITS/GPUITSFitter.cxx
177-
ITS/GPUITSFitterKernels.cxx
178176
dEdx/GPUdEdx.cxx
179177
TPCConvert/GPUTPCConvert.cxx
180178
TPCConvert/GPUTPCConvertKernel.cxx
@@ -220,7 +218,6 @@ set(SRCS_NO_H ${SRCS_NO_H}
220218
TPCClusterFinder/GPUTPCClusterFinderDump.cxx)
221219

222220
set(HDRS_INSTALL ${HDRS_INSTALL}
223-
ITS/GPUITSTrack.h
224221
TPCClusterFinder/CfArray2D.h
225222
TPCClusterFinder/CfConsts.h
226223
TPCClusterFinder/CfFragment.h
@@ -298,7 +295,6 @@ set(INCDIRS
298295
${CMAKE_CURRENT_SOURCE_DIR}/SectorTracker
299296
${CMAKE_CURRENT_SOURCE_DIR}/TPCConvert
300297
${CMAKE_CURRENT_SOURCE_DIR}/dEdx
301-
${CMAKE_CURRENT_SOURCE_DIR}/ITS
302298
${CMAKE_CURRENT_SOURCE_DIR}/TRDTracking
303299
${CMAKE_CURRENT_SOURCE_DIR}/qa
304300
${CMAKE_CURRENT_SOURCE_DIR}/Global

GPU/GPUTracking/Definitions/GPUDefParametersConstants.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
// Default maximum numbers
3333
#define GPUCA_MAX_CLUSTERS ((size_t) 1024 * 1024 * 1024) // Maximum number of TPC clusters
3434
#define GPUCA_MAX_TRD_TRACKLETS ((size_t) 128 * 1024) // Maximum number of TRD tracklets
35-
#define GPUCA_MAX_ITS_FIT_TRACKS ((size_t) 96 * 1024) // Max number of tracks for ITS track fit
3635
#define GPUCA_MEMORY_SIZE ((size_t) 6 * 1024 * 1024 * 1024) // Size of memory allocated on Device
3736
#define GPUCA_HOST_MEMORY_SIZE ((size_t) 1 * 1024 * 1024 * 1024) // Size of memory allocated on Host
3837
#define GPUCA_GPU_STACK_SIZE ((size_t) 8 * 1024) // Stack size per GPU thread

GPU/GPUTracking/Definitions/GPUDefParametersDefaults.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,6 @@
438438
#ifndef GPUCA_LB_GPUTPCGMO2Output_output
439439
#define GPUCA_LB_GPUTPCGMO2Output_output 256
440440
#endif
441-
#ifndef GPUCA_LB_GPUITSFitterKernels
442-
#define GPUCA_LB_GPUITSFitterKernels 256
443-
#endif
444441
#ifndef GPUCA_LB_GPUTPCStartHitsFinder
445442
#define GPUCA_LB_GPUTPCStartHitsFinder 256
446443
#endif

GPU/GPUTracking/Global/GPUChainITS.cxx

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,7 @@ GPUChainITS::~GPUChainITS()
4444
mITSVertexerTraits.reset();
4545
}
4646

47-
GPUChainITS::GPUChainITS(GPUReconstruction* rec, uint32_t maxTracks) : GPUChain(rec), mMaxTracks(maxTracks) {}
48-
49-
void GPUChainITS::RegisterPermanentMemoryAndProcessors() { mRec->RegisterGPUProcessor(&processors()->itsFitter, GetRecoStepsGPU() & RecoStep::ITSTracking); }
50-
51-
void GPUChainITS::RegisterGPUProcessors()
52-
{
53-
if (GetRecoStepsGPU() & RecoStep::ITSTracking) {
54-
mRec->RegisterGPUDeviceProcessor(&processorsShadow()->itsFitter, &processors()->itsFitter);
55-
}
56-
}
57-
58-
void GPUChainITS::MemorySize(size_t& gpuMem, size_t& pageLockedHostMem)
59-
{
60-
gpuMem = mMaxTracks * sizeof(GPUITSTrack) + GPUCA_MEMALIGN;
61-
pageLockedHostMem = gpuMem;
62-
}
47+
GPUChainITS::GPUChainITS(GPUReconstruction* rec) : GPUChain(rec) {}
6348

6449
int32_t GPUChainITS::Init() { return 0; }
6550

GPU/GPUTracking/Global/GPUChainITS.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,32 +29,31 @@ class GPUFrameworkExternalAllocator;
2929

3030
namespace o2::gpu
3131
{
32-
class GPUChainITS : public GPUChain
32+
class GPUChainITS final : public GPUChain
3333
{
3434
friend class GPUReconstruction;
3535

3636
public:
3737
~GPUChainITS() override;
38-
void RegisterPermanentMemoryAndProcessors() override;
39-
void RegisterGPUProcessors() override;
4038
int32_t Init() override;
4139
int32_t PrepareEvent() override;
4240
int32_t Finalize() override;
4341
int32_t RunChain() override;
44-
void MemorySize(size_t& gpuMem, size_t& pageLockedHostMem) override;
42+
43+
void RegisterPermanentMemoryAndProcessors() final {};
44+
void RegisterGPUProcessors() final {};
45+
void MemorySize(size_t&, size_t&) final {};
4546

4647
o2::its::TrackerTraits<7>* GetITSTrackerTraits();
4748
o2::its::VertexerTraits* GetITSVertexerTraits();
4849
o2::its::TimeFrame<7>* GetITSTimeframe();
4950

5051
protected:
51-
GPUChainITS(GPUReconstruction* rec, uint32_t maxTracks = GPUCA_MAX_ITS_FIT_TRACKS);
52+
GPUChainITS(GPUReconstruction* rec);
5253
std::unique_ptr<o2::its::TrackerTraits<7>> mITSTrackerTraits;
5354
std::unique_ptr<o2::its::VertexerTraits> mITSVertexerTraits;
5455
std::unique_ptr<o2::its::TimeFrame<7>> mITSTimeFrame;
5556
std::unique_ptr<o2::its::GPUFrameworkExternalAllocator> mFrameworkAllocator;
56-
57-
uint32_t mMaxTracks;
5857
};
5958
} // namespace o2::gpu
6059

GPU/GPUTracking/ITS/GPUITSFitter.cxx

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)