Skip to content

Commit

Permalink
Merge pull request #475 from stweil/fix
Browse files Browse the repository at this point in the history
opencl: Fix type of parameters for OpenCL functions
  • Loading branch information
zdenop authored Nov 13, 2016
2 parents a461592 + 4ca6ba9 commit 8bff1e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opencl/openclwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ int OpenclDevice::GeneratBinFromKernelSource( cl_program program, const char * c
{
unsigned int i = 0;
cl_int clStatus;
size_t *binarySizes, numDevices=0;
size_t *binarySizes;
cl_uint numDevices;
cl_device_id *mpArryDevsID;
char **binaries, *str = NULL;

Expand Down Expand Up @@ -595,7 +596,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";
Expand Down

0 comments on commit 8bff1e6

Please sign in to comment.