Hi,
I want to use opencl on windows 10 My program is :
m = mOriginal + m2;
I have got an exception :
OpenCV Error: Unknown error code -220 (OpenCL error Unknown OpenCL error (999) during call: clCreateContext) in cv::ocl::Context::Impl::setDefault, file G:\Lib\opencv\modules\core\src\ocl.cpp, line 1327
I cannot find error code 999 in opencl.
Stack trace is > opencv_core331d.dll!cv::ocl::Context::Impl::setDefault() Ligne 1326 C++
opencv_core331d.dll!cv::ocl::Context::getDefault(bool initialize) Ligne 1725 C++
opencv_core331d.dll!cv::ocl::Device::getDefault() Ligne 970 C++
opencv_core331d.dll!cv::ocl::useOpenCL() Ligne 261 C++
opencv_core331d.dll!cv::arithm_op(const cv::debug_build_guard::_InputArray & _src1, const cv::debug_build_guard::_InputArray & _src2, const cv::debug_build_guard::_OutputArray & _dst, const cv::debug_build_guard::_InputArray & _mask, int dtype, void(*)(const unsigned char *, unsigned __int64, const unsigned char *, unsigned __int64, unsigned char *, unsigned __int64, int, int, void *) * tab, bool muldiv, void * usrdata, int oclop) Ligne 623 C++
opencv_core331d.dll!cv::add(const cv::debug_build_guard::_InputArray & src1, const cv::debug_build_guard::_InputArray & src2, const cv::debug_build_guard::_OutputArray & dst, const cv::debug_build_guard::_InputArray & mask, int dtype) Ligne 926 C++
opencv_core331d.dll!cv::MatOp_AddEx::assign(const cv::MatExpr & e, cv::Mat & m, int _type) Ligne 1260 C++
ocr_exemple1.exe!cv::Mat::operator=(const cv::MatExpr & e) Ligne 3296 C++
ocr_exemple1.exe!main(int argc, char * * argv) Ligne 78 C++
When I run exactly same program with admin right there is no error. Only difference I found is dll call : with user right C:\Windows\System32\nvptxJitCompiler.dll'. is loaded when line is executed. exception is thrown at next line.
May be it's only driver problem opencv 3.3-dev win 10 version 1703 GTX970 (driver 22.21.13.8569)