From 930d1f04c2ecbc4c310e0d9dc5f05ae0f26a7e85 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Fri, 14 Apr 2023 16:45:17 -0400 Subject: [PATCH] SWDEV-391858 - Reduce the size of step transfer Change-Id: I78e9ed3c6550c497d6abdcf2b9e1a6d5bcdf7315 --- opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp b/opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp index cd6ea46eb5..6120d5b12f 100644 --- a/opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp +++ b/opencl/tests/ocltst/module/runtime/OCLCreateBuffer.cpp @@ -90,7 +90,9 @@ void OCLCreateBuffer::run(void) { } #endif void *resultBuf = NULL; - ; + // Reduce the buffer for the step transfers ahead of the allocation, + // since huge buffers may cause paging and very low performance + maxSteps /= 16; while ((resultBuf = malloc(maxSteps)) == NULL) { maxSteps /= 2; continue;