We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 003df86 commit 7d86cc2Copy full SHA for 7d86cc2
GPU/GPUTracking/Base/GPUReconstructionCPU.cxx
@@ -156,10 +156,10 @@ int GPUReconstructionCPU::GetThread()
156
int GPUReconstructionCPU::InitDevice()
157
{
158
if (mProcessingSettings.memoryAllocationStrategy == GPUMemoryResource::ALLOCATION_GLOBAL) {
159
- if (mDeviceMemorySize > mHostMemorySize) {
160
- mHostMemorySize = mDeviceMemorySize;
161
- }
162
if (mMaster == nullptr) {
+ if (mDeviceMemorySize > mHostMemorySize) {
+ mHostMemorySize = mDeviceMemorySize;
+ }
163
mHostMemoryBase = operator new(mHostMemorySize GPUCA_OPERATOR_NEW_ALIGNMENT);
164
}
165
mHostMemoryPermanent = mHostMemoryBase;
0 commit comments