P4 to Git Change 1789549 by vsytchen@vsytchen-remote-ocl-win10 on 2019/05/30 10:15:29

SWDEV-188631 - Allocating large buffers produce wrong kernel result on Windows

	1. Set a limit for USWC allocations to 2GB on Windows.
	2. Allocations larger than the specified limit will get placed into pinned memory instead.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/17407/diff/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#138 edit
... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#310 edit
This commit is contained in:
foreman
2019-05-30 10:28:59 -04:00
parent 1a2d3ebbab
commit 66cda9d97a
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -183,6 +183,9 @@ release(bool, GPU_ENABLE_WGP_MODE, true, \
"Enables WGP Mode in HW if available") \
release(bool, OCL_DUMP_CODE_OBJECT, false, \
"Enable dump code object") \
release(uint, GPU_MAX_USWC_ALLOC_SIZE, 2048, \
"Set a limit in Mb on the maximum USWC allocation size" \
"-1 = No limit")
namespace amd {