Skip to content

Commit 36b13b4

Browse files
committed
GPU: Fix direct memory allocation debug message
1 parent 705c73c commit 36b13b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GPU/GPUTracking/Base/GPUReconstruction.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ void* GPUReconstruction::AllocateDirectMemory(size_t size, int32_t type)
764764
}
765765
UpdateMaxMemoryUsed();
766766
if (GetProcessingSettings().allocDebugLevel >= 2) {
767-
std::cout << "Allocated (unmanaged " << (type == GPUMemoryResource::MEMORY_GPU ? "gpu" : "host") << "): " << size << " - available: " << ptrDiff(poolend, pool) << "\n";
767+
std::cout << "Allocated (unmanaged " << ((type & GPUMemoryResource::MEMORY_GPU) ? "gpu" : "host") << "): " << size << " - available: " << ptrDiff(poolend, pool) << "\n";
768768
}
769769
return retVal;
770770
}

0 commit comments

Comments
 (0)