P4 to Git Change 1528884 by vsytchen@vsytchen-ocl-win10 on 2018/03/19 11:36:48

SWDEV-133818 - PAL support for Linux Pro: Coarse Grain SVM for OpenCL 2.0

	1. This change enables OCL 2.0 on Linux for devices using PAL backend.
	2. Set the alignment for Coarse Grain SVM allocations to be the gpu fragment size (2MB on Linux).

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

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#52 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/runtime/platform/memory.cpp#128 edit
This commit is contained in:
foreman
2018-03-19 11:55:32 -04:00
parent 320062f843
commit 3683b3d03c
3 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ Memory::Memory(Context& context, Type type, Flags flags, size_t size, void* svmP
forceSysMemAlloc_(false),
mapCount_(0),
svmHostAddress_(svmPtr),
svmPtrCommited_(false),
svmPtrCommited_(flags & CL_MEM_SVM_FINE_GRAIN_BUFFER ? true : false),
canBeCached_(true),
lockMemoryOps_("Memory Ops Lock", true) {}