SWDEV-308843 - Increase MaxPinnedXferSize to 128

This allows experimenting with env var GPU_PINNED_XFER_SIZE which is
still at a default of 32MB

Change-Id: I85ade700ed58d498eba29d1737601dc74d4c26a4
This commit is contained in:
Saleel Kudchadker
2021-11-30 10:36:06 -08:00
parent 102aa9d6d9
commit 3f82b99f5d
+1 -1
View File
@@ -68,7 +68,7 @@ Settings::Settings() {
// Initialize transfer buffer size to 1MB by default
xferBufSize_ = 1024 * Ki;
const static size_t MaxPinnedXferSize = 32;
const static size_t MaxPinnedXferSize = 128;
pinnedXferSize_ = std::min(GPU_PINNED_XFER_SIZE, MaxPinnedXferSize) * Mi;
pinnedMinXferSize_ = std::min(GPU_PINNED_MIN_XFER_SIZE * Ki, pinnedXferSize_);