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
Esse commit está contido em:
foreman
2016-08-26 01:47:40 -04:00
commit bd32c277bb
2 arquivos alterados com 24 adições e 2 exclusões
+2 -2
Ver Arquivo
@@ -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
);