summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-16 21:05:41 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-09-19 17:03:21 +0200
commita9ca36c15f89b279e5e4aba4cd9649cc200fb24b (patch)
tree50dd6077c9a06107655f473d70bedb12e9044882
parent18a4ecaa25af108589fda0108f72115a6db6325b (diff)
reintroduce changes from Tor
Change-Id: I3b32e6754f8b86e7875ff6dd09b4dd0f38f8df4e
-rw-r--r--sc/source/core/opencl/openclwrapper.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/opencl/openclwrapper.cxx b/sc/source/core/opencl/openclwrapper.cxx
index b99dd12c3483..95190188f9a6 100644
--- a/sc/source/core/opencl/openclwrapper.cxx
+++ b/sc/source/core/opencl/openclwrapper.cxx
@@ -268,7 +268,8 @@ int OpenclDevice::generatBinFromKernelSource( cl_program program, const char * c
{
unsigned int i = 0;
cl_int clStatus;
- size_t *binarySizes, numDevices;
+ size_t *binarySizes;
+ cl_uint numDevices;
cl_device_id *mpArryDevsID;
char **binaries, *str = NULL;
@@ -451,7 +452,7 @@ int OpenclDevice::compileKernelFile( GPUEnv *gpuInfo, const char *buildOption )
const char *source;
size_t source_size[1];
int b_error, binary_status, binaryExisted, idx;
- size_t numDevices;
+ cl_uint numDevices;
cl_device_id *mpArryDevsID;
FILE *fd, *fd1;
const char* filename = "kernel.cl";