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


[ROCm/clr commit: 3f82b99f5d]
This commit is contained in:
Saleel Kudchadker committed 2021-12-01 20:37:56 -05:00
1 parent 02e46ec231
commit 97456a157b
1 file changed
+1 -1
@@ -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_);