Skip to content

Commit 7d86cc2

Browse files
committed
GPU: Memory size of slaves must not be overridden
1 parent 003df86 commit 7d86cc2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

GPU/GPUTracking/Base/GPUReconstructionCPU.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ int GPUReconstructionCPU::GetThread()
156156
int GPUReconstructionCPU::InitDevice()
157157
{
158158
if (mProcessingSettings.memoryAllocationStrategy == GPUMemoryResource::ALLOCATION_GLOBAL) {
159-
if (mDeviceMemorySize > mHostMemorySize) {
160-
mHostMemorySize = mDeviceMemorySize;
161-
}
162159
if (mMaster == nullptr) {
160+
if (mDeviceMemorySize > mHostMemorySize) {
161+
mHostMemorySize = mDeviceMemorySize;
162+
}
163163
mHostMemoryBase = operator new(mHostMemorySize GPUCA_OPERATOR_NEW_ALIGNMENT);
164164
}
165165
mHostMemoryPermanent = mHostMemoryBase;

0 commit comments

Comments
 (0)