P4 to Git Change 1307417 by lmoriche@lmoriche_opencl_dev on 2016/08/26 01:38:31

SWDEV-94610 - Setup the (hidden) arguments for global_offset [x,y,z].

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#10 edit


[ROCm/clr commit: bd32c277bb]
Cette révision appartient à :
foreman
2016-08-26 01:47:40 -04:00
Parent 49c3a3a45f
révision e834d19c28
2 fichiers modifiés avec 24 ajouts et 2 suppressions
+2 -2
Voir le fichier
@@ -1024,7 +1024,7 @@ namespace roc {
}
// for OpenCL default hidden kernel arguments assuming there is no printf
size_t numHiddenKernelArgs = 0; // FIXME_lmoriche:3;
size_t numHiddenKernelArgs = 3; // FIXME_Wilkin
// Fix the kernel name issue that causes string comparison does not work
// due to an extra character at the end
@@ -1040,7 +1040,7 @@ namespace roc {
// TODO: remove the workaround
// add 24 bytes for global offsets as workaround for LC reporting
// excluded the hidden arguments
kernargSegmentByteSize /* FIXME_lmoriche:+24*/,
kernargSegmentByteSize + numHiddenKernelArgs * sizeof(size_t),
kernargSegmentAlignment,
numHiddenKernelArgs
);