Skip to content

Commit

Permalink
CL/maxWorkingGroupSize for ARM Mali decreased by 2 times for evaluati…
Browse files Browse the repository at this point in the history
…on of opencv#13108 - OpenCL error CL_OUT_OF_RESOURCES issue
  • Loading branch information
ayaromenok committed Nov 26, 2018
1 parent c6daa4a commit 8b544a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/core/include/opencv2/core/ocl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ class CV_EXPORTS_W_SIMPLE Device
UNKNOWN_VENDOR=0,
VENDOR_AMD=1,
VENDOR_INTEL=2,
VENDOR_NVIDIA=3
VENDOR_NVIDIA=3,
VENDOR_ARM=4
};
CV_WRAP int vendorID() const;
// FIXIT
Expand Down
8 changes: 8 additions & 0 deletions modules/core/src/ocl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,14 @@ struct Device::Impl
vendorID_ = VENDOR_INTEL;
else if (vendorName_ == "NVIDIA Corporation")
vendorID_ = VENDOR_NVIDIA;
else if (vendorName_ == "ARM Platform")
{
std::cout << "vendor name: " << vendorName_ << std::endl;
vendorID_ = VENDOR_ARM;
std::cout << "max WG Size by driver: " << maxWorkGroupSize_ << std::endl;
maxWorkGroupSize_ = maxWorkGroupSize_/2;
std::cout << "max WG Size by test: " << maxWorkGroupSize_ << std::endl;
}
else
vendorID_ = UNKNOWN_VENDOR;

Expand Down

0 comments on commit 8b544a8

Please sign in to comment.