Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenVINO Wheel does not install Debug libraries when CMAKE_BUILD_TYPE is Debug #18786

Closed
sspintel opened this issue Jul 25, 2023 · 2 comments · Fixed by #19197
Closed

OpenVINO Wheel does not install Debug libraries when CMAKE_BUILD_TYPE is Debug #18786

sspintel opened this issue Jul 25, 2023 · 2 comments · Fixed by #19197
Labels
category: build OpenVINO cmake script / infra support_request
Milestone

Comments

@sspintel
Copy link

  • OpenVINO Source => GitHub
  • OpenVINO Version => master branch
  • Operating System / Platform =>Ubuntu 20
  • Compiler => Cmake 3.27.0
  • Problem classification: Python Wheel
  • Device use: CPU

When building OpenVINO runtime and the python wheel using Debug mode, the libs installed onto the Python wheel seem to be Release libs. The runtime Debug libs are not being installed into the wheel. This makes it hard to debug OpenVINO libs when working with the Python API during development.

My CMake command:

cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_MODELS=OFF -DENABLE_VALIDATION_SET=OFF -DENABLE_AVX2=ON -DENABLE_AVX512F=ON -DENABLE_TESTS=OFF -DENABLE_FUNCTIONAL_TESTS=OFF -DENABLE_PROFILING_ITT=ON -DENABLE_INTEL_GPU=ON -DENABLE_INTEL_CPU=ON -DENABLE_ONEDNN_FOR_GPU=OFF -DENABLE_PYTHON=OFF -DENABLE_INTEL_MYRIAD_COMMON=OFF -DENABLE_INTEL_MYRIAD=OFF -DENABLE_GAPI_TESTS=OFF -DENABLE_DATA=OFF -DENABLE_BEH_TESTS=OFF -DENABLE_OV_ONNX_FRONTEND=OFF -DENABLE_OV_PADDLE_FRONTEND=OFF -DENABLE_OV_TF_FRONTEND=OFF -DENABLE_OV_TF_LITE_FRONTEND=OFF -DENABLE_PLUGINS_XML=ON -DENABLE_INTEL_GNA=OFF -DENABLE_OPENCV=ON -DUSE_Z7=1 -DENABLE_PYTHON=ON -DENABLE_WHEEL=ON -DENABLE_OV_PYTORCH_FRONTEND=ON

Relates to #18029

@sspintel sspintel added bug Something isn't working support_request labels Jul 25, 2023
@ilya-lavrenov
Copy link
Contributor

You don't need to build wheels to debug Python API.
Just build OpenVINO and set PYTHONPATH to <source dir>/bin/intel64/Debug/python

@avitial avitial added category: build OpenVINO cmake script / infra and removed bug Something isn't working labels Jul 25, 2023
@sspintel
Copy link
Author

Hi Ilya, Thanks for the suggestion but I get this when I set PYTHONPATH instead of using the wheel. It's also a bit counterintuitive that we get wheels with release mode libs when building in debug mode. Earlier we used to get debug libs in the wheel.

pybind11::handle::inc_ref() is being called while the GIL is either not held or invalid. Please see https://pybind11.readthedocs.io/en/stable/advanced/misc.html#common-sources-of-global-interpreter-lock-errors for debugging advice.The failing pybind11::handle::inc_ref() call was triggered on a NoneType object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra support_request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants