I am trying to profile my software which has embedded Python with VTune but the software hangs when trying to invoke a Python function from C++ as soon as VTune is attached. I do not use multi-threading within my code but I have called PyEval_InitThreads() just after Py_Initialize() call but that also does not seem to help.
Link Copied
Hello,
Is it possible for you to share some more details on the issue (like Python version), or, even better, to have a small reproducer that you could share with us?
Thanks,
Vasilij
For more complete information about compiler optimizations, see our Optimization Notice.