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:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user