OpenCL and OpenCV conflict
In our project, we decided to port OpenCL to improve image processing. After migration, the project didn't work. So, we tried the minimal code from OpenCL and determined that if OpenCV is in use, the project doesn't work.
Example
int main(){
cv::Mat mat;
std::vector<cl::Platform> all_platforms;
cl::Platform::get(&all_platforms);
std::cout <<"fertig.";
return 0;
}
crash in cl :: Platform :: get ().
terminate called after throwing an instance of 'cl::Error'
what(): clGetPlatformIDs
I compiled it with
gcc test.cpp -lOpenCl -lopencv_core -lopencv_highgui
If I issue this little command line "cv :: Mat mat" everything is fine. So what's the problem?
I am using Intel OpenCl Driver: 1.2-4.4.0.117.
+3
source to share
No one has answered this question yet
Check out similar questions: