Skip to content

Commit

Permalink
Merge pull request opencv#6467 from ohnozzy:Doc-for-ocl-Kernel-Run
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed Apr 25, 2016
2 parents e587721 + d66ed31 commit df6eb10
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion modules/core/include/opencv2/core/ocl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,18 @@ class CV_EXPORTS Kernel
i = set(i, a6); i = set(i, a7); i = set(i, a8); i = set(i, a9); i = set(i, a10); i = set(i, a11);
i = set(i, a12); i = set(i, a13); i = set(i, a14); set(i, a15); return *this;
}

/*
Run the OpenCL kernel.
@param dims the work problem dimensions. It is the length of globalsize and localsize. It can be either 1, 2 or 3.
@param globalsize work items for each dimension.
It is not the final globalsize passed to OpenCL.
Each dimension will be adjusted to the nearest integer divisible by the corresponding value in localsize.
If localsize is NULL, it will still be adjusted depending on dims.
The adjusted values are greater than or equal to the original values.
@param localsize work-group size for each dimension.
@param sync specify whether to wait for OpenCL computation to finish before return.
@param q command queue
*/
bool run(int dims, size_t globalsize[],
size_t localsize[], bool sync, const Queue& q=Queue());
bool runTask(bool sync, const Queue& q=Queue());
Expand Down

0 comments on commit df6eb10

Please sign in to comment.