SWDEV-391858 - Reduce the size of step transfer

Change-Id: I78e9ed3c6550c497d6abdcf2b9e1a6d5bcdf7315


[ROCm/clr commit: 930d1f04c2]
This commit is contained in:
German Andryeyev
2023-04-14 16:45:17 -04:00
parent 8ae30e036d
commit 53d0d75d8c
@@ -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;