Unable to use opencl with user right on win10 [closed]

asked 2017-11-08 08:43:53 -0600

LBerger gravatar image

updated 2017-11-08 13:50:38 -0600

Hi,

I want to use opencl on windows 10 My program is :

ocl::setUseOpenCL(true);

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::error(const cv::Exception & exc) Ligne 965  C++
opencv_core331d.dll!cv::error(int _code, const cv::String & _err, const char * _func, const char * _file, int _line) Ligne 969  C++
opencv_core331d.dll!cv::ocl::Context::Impl::setDefault() Ligne 1327 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::setUseOpenCL(bool flag) Ligne 276  C++
ExempleML.exe!main(int argc, char * * argv) Ligne 122   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)

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by LBerger
close date 2017-11-11 08:21:09.886802

Comments

close -> issue

LBerger gravatar imageLBerger ( 2017-11-11 08:20:56 -0600 )edit

back to driver 21.21.13.7653 and opencl is OK

LBerger gravatar imageLBerger ( 2017-11-16 07:11:01 -0600 )edit