junrushao1994 commented on pull request #7919:
URL: https://github.com/apache/tvm/pull/7919#issuecomment-947059638


   @areusch `PyMem_RawMalloc` is a minimalist example. Actually we might want 
to call `PyGILState_Ensure` and `PyGILState_Release` as indicated in python 
documentation here: 
https://docs.python.org/3/c-api/init.html#non-python-created-threads, so that 
we can call back to python without deadlocks in C++-created threads.
   
   We don't care about performance for now (if we do, we should completely get 
rid of python), and this is not a dependency to our project (we have already 
got rid of this behavior), just curious if such functionality could be done in 
TVM


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to