tqchen edited a comment on pull request #6959:
URL: https://github.com/apache/incubator-tvm/pull/6959#issuecomment-732405908


   In that case the function will need to be registered at the startup time of 
libtvm (since the popen worker also import tvm during startup). Otherwise it 
won't be available in the subprocess. Closures can still be passed via 
cloudpickle.  To make registeration of any place work we will need to use fork 
(note that multiprocessing + spawn only works when registeration happens in 
global scope as well).
   
   This is not a general purpose pool, but could be used to solve the 
particular problem of tir compilation when we most of the control the behavior 
inside the 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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to