Building OpenVINO from source on Windows 11!

Raymond Lo, PhD
2 min readNov 4, 2022

--

Man … Windows is so hard to use.

Ok, it is 10pm PST time, and it’s time to code (sleep). I should have stopped but I started.

My objective is really to get my dGPU running at its best performance, and what I learnt today is 2022.3 built will be ideal with all the new optimizations. But, it’s not released yet, and that leave me with one option:

To kick start, you will need to install all the dependencies…

Here is a list I got through:

  1. Microsoft Visual Studio 2022 Community Edition https://visualstudio.microsoft.com/vs/community/
  2. Python 3.8.10 https://www.python.org/downloads/release/python-3810/
  3. CMake https://cmake.org/download/
  4. Git https://git-scm.com/downloads

Then, follow through all installation and nonstop restarting. Here is the tricky part! What’s on wiki isn’t what’s on my machine. Here is a list of things I have to change up…

Since Python is a different path and I’m using Visual Studio 2022, here is the updated version to the make script.

cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DENABLE_PYTHON=ON -DPYTHON_EXECUTABLE="C:\Users\raymo\AppData\Local\Programs\Python\Python38\python.exe" -DPYTHON_LIBRARY="C:\Users\raymo\AppData\Local\Programs\Python\Python38\libs\python38.lib" -DPYTHON_INCLUDE_DIR="C:\Users\raymo\AppData\Local\Programs\Python\Python38\include" ..

Then, again error with cython is missing. Please also make sure you install the requirement.txt from wiki step.

pip install cython

start the compiling… Finally.

And finished after… I don’t remember how long… :)

Ok, lastly, set the PATH variable for tbb (or it will not run…)

C:\Users\raymo\Documents\openvino\temp\tbb\bin

And here I have the benchmark tool working! :)

Running Benchmark…

And you can find the wheels inside this folder.

Wheels for OpenVINO :)

Ok, that’s all! :) Happy coding.

--

--

Raymond Lo, PhD
Raymond Lo, PhD

Written by Raymond Lo, PhD

@Intel - OpenVINO AI Software Evangelist. ex-Google, ex-Samsung, and ex-Meta (Augmented Reality) executive. Ph.D. in Computer Engineer — U of T.

No responses yet