Skip to content

Commit e7c4cf2

Browse files
committed
GPU: Remove some unused code
1 parent b21fbd8 commit e7c4cf2

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

GPU/GPUTracking/Base/GPUReconstruction.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ class GPUReconstruction
348348
std::vector<std::array<uint32_t, 4>>* mOutputErrorCodes = nullptr;
349349

350350
int32_t mMaxBackendThreads = 0; // Maximum number of threads that may be running, on CPU or GPU
351-
int32_t mThreadId = -1; // Thread ID that is valid for the local CUDA context
352351
int32_t mGPUStuck = 0; // Marks that the GPU is stuck, skip future events
353352
int32_t mNStreams = 1; // Number of parallel GPU streams
354353
int32_t mMaxHostThreads = 0; // Maximum number of OMP threads

GPU/GPUTracking/Base/GPUReconstructionCPU.cxx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ int32_t GPUReconstructionCPU::InitDevice()
211211
if (mProcessingSettings.inKernelParallel) {
212212
mBlockCount = mMaxHostThreads;
213213
}
214-
mThreadId = GetThread();
215214
mProcShadow.mProcessorsProc = processors();
216215
return 0;
217216
}
@@ -241,12 +240,6 @@ int32_t GPUReconstructionCPU::RunChains()
241240
return retVal;
242241
}
243242
} else {
244-
if (mThreadId != GetThread()) {
245-
if (mProcessingSettings.debugLevel >= 2) {
246-
GPUInfo("Thread changed, migrating context, Previous Thread: %d, New Thread: %d", mThreadId, GetThread());
247-
}
248-
mThreadId = GetThread();
249-
}
250243
if (mSlaves.size() || mMaster) {
251244
WriteConstantParams(); // Reinitialize // TODO: Get this in sync with GPUChainTracking::DoQueuedUpdates, and consider the doublePipeline
252245
}

GPU/GPUTracking/Base/GPUReconstructionDeviceBase.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ int32_t GPUReconstructionDeviceBase::InitDevice()
102102
GPUError("Too many straems requested %d > %d\n", mProcessingSettings.nStreams, GPUCA_MAX_STREAMS);
103103
return (1);
104104
}
105-
mThreadId = GetThread();
106105

107106
void* semLock = nullptr;
108107
if (mProcessingSettings.globalInitMutex && GetGlobalLock(semLock)) {

0 commit comments

Comments
 (0)