Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6442 Discussions

OpenCL cl2.hpp installation in Windows

Seunghyuk_P_Intel
1,480 Views

 

OS: Windows 11

OpenVINO version: 2022.2.0

 

I'm writing a sample which is using ov::intel_gpu::ocl::D3DContext with including,  

#include <openvino/runtime/intel_gpu/ocl/dx.hpp>
And I get build error,
C:/Program Files (x86)/Intel/openvino_2022/runtime/include\openvino/runtime/intel_gpu/ocl/ocl_wrapper.hpp(44,10): fatal  error C1083: Cannot open include file: 'CL/cl2.hpp': No such file or directory
 
In case Linux, it's resolved if I install opencl-headers.
But, I don't know how I can prepare OpenCL dependencies for Windows.
 
Could you give any instruction for OpenCL dependencies preparation for Windows?
 
0 Kudos
1 Solution
Peh_Intel
Moderator
1,251 Views

Hi Seunghyuk_P_Intel,


OpenCL headers are located in thirdparty/ocl/cl_headers in OpenVINO source distribution. In case if you build from sources you can reuse them, otherwise please install from Khronos repository: https://github.com/KhronosGroup/OpenCL-CLHPP



Regards,

Peh


View solution in original post

0 Kudos
9 Replies
Peh_Intel
Moderator
1,434 Views

Hi Seunghyuk_P_Intel,


I was able to duplicate the same error as you. It might be due to OpenCL is not build with OpenVINO.


I have to check with development team and come back to you at the earliest.



Regards,

Peh


0 Kudos
Farhâd
Novice
1,421 Views

cv.dnn.readNet

 

Keep getting the error when trying to read openvino ir :

 

import cv2 as cv

net = cv.dnn.readNet(XML, BIN)

cv2.error: OpenCV(4.5.2-openvino) /home/pi/opencv/modules/dnn/src/dnn.cpp:3901: error: (-2:Unspecified error) Build OpenCV with Inference Engine to enable loading models from Model Optimizer. in function 'readFromModelOptimizer'

 

I did install openvino and  run the initialization script on my raspberry pi4b ( with MYRIAD )  as per instructions in:

https://www.intel.com/content/www/us/en/support/articles/000057005/boards-and-kits.html

 

The initialization command is: 

source /home/pi/openvino_dist/bin/setupvars.sh

How can I use cv.dnn.readNet without the error ?

0 Kudos
Farhâd
Novice
1,397 Views
0 Kudos
Seunghyuk_P_Intel
1,396 Views

@Farhâd I just `thanks`ed because Peh said .. will check my issue with dev team.

I don't know why you posted your question in my thread :), but..

Why don't you create new thread since your issue is not related to mine?

0 Kudos
Farhâd
Novice
1,395 Views

I did create a new thread but getting no answers yet.

0 Kudos
Peh_Intel
Moderator
1,370 Views

Hi Farhad,

 

Sorry for our late response.  We will response to your threads accordingly.

 

 

Regards,

Peh

0 Kudos
Peh_Intel
Moderator
1,252 Views

Hi Seunghyuk_P_Intel,


OpenCL headers are located in thirdparty/ocl/cl_headers in OpenVINO source distribution. In case if you build from sources you can reuse them, otherwise please install from Khronos repository: https://github.com/KhronosGroup/OpenCL-CLHPP



Regards,

Peh


0 Kudos
Peh_Intel
Moderator
1,181 Views

Hi Seunghyuk_P_Intel,


This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.



Regards,

Peh


0 Kudos
Reply