tqchen commented on pull request #7717:
URL: https://github.com/apache/tvm/pull/7717#issuecomment-817315512


   To followup on the per pipeline UBO. This was fine for single threaded case, 
but can also be problematic under a multi-threaded setting when multiple 
threads are launching the same kernel A. 
   
   To make the runtime thread-safe, we normally needs to divide the data 
structure into constants(e.g. pipeline) and runtime structure(e.g. staging 
buffer, streams). The runtime structure part belongs to VulkanThreadEntry that 
comes with a thread-local copy to avoid threading issue. So we would want to do 
that, and uses a similar logic as StagingBuffer to create staging buffer for UBO


-- 
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:
[email protected]


Reply via email to