Added knearest neighbor of OpenCL version.
It includes the accuracy/performance test and the implementation of KNN.
This commit is contained in:
@@ -1033,6 +1033,14 @@ namespace cv
|
||||
return impl->maxComputeUnits;
|
||||
}
|
||||
|
||||
unsigned long queryLocalMemInfo()
|
||||
{
|
||||
Info::Impl* impl = Context::getContext()->impl;
|
||||
cl_ulong local_memory_size = 0;
|
||||
clGetDeviceInfo(impl->devices[impl->devnum], CL_DEVICE_LOCAL_MEM_SIZE, sizeof(cl_ulong), (void*)&local_memory_size, 0);
|
||||
return local_memory_size;
|
||||
}
|
||||
|
||||
void* Context::oclContext()
|
||||
{
|
||||
return impl->oclcontext;
|
||||
|
||||
Reference in New Issue
Block a user