Skip to content

Commit 524f6d3

Browse files
committed
GPU: Not strictly needed since cleaned later anyway, but make sure we are in a clean state here to avoid confusion
1 parent 7867a86 commit 524f6d3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Detectors/TPC/workflow/src/CATrackerSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ DataProcessorSpec getCATrackerSpec(CompletionPolicyData* policyData, ca::Config
536536
if (debug) {
537537
end = std::chrono::high_resolution_clock::now();
538538
std::chrono::duration<double> elapsed_seconds = end - start;
539-
LOG(INFO) << "Allocation time for " << name << " (" << size << "bytes)" << ": " << elapsed_seconds.count() << "s";
539+
LOG(INFO) << "Allocation time for " << name << " (" << size << " bytes)" << ": " << elapsed_seconds.count() << "s";
540540
}
541541
return (buffer.second = buffer.first->get().data()) + offset;
542542
};

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ int GPUReconstruction::Init()
186186
if (retVal) {
187187
return retVal;
188188
}
189+
ClearAllocatedMemory();
189190
for (unsigned int i = 0; i < mSlaves.size(); i++) {
190191
mSlaves[i]->mDeviceMemoryPermanent = mDeviceMemoryPermanent;
191192
mSlaves[i]->mHostMemoryPermanent = mHostMemoryPermanent;
@@ -194,6 +195,7 @@ int GPUReconstruction::Init()
194195
GPUError("Error initialization slave (after device init)");
195196
return retVal;
196197
}
198+
mSlaves[i]->ClearAllocatedMemory();
197199
}
198200
return 0;
199201
}

0 commit comments

Comments
 (0)