tqchen commented on PR #11448:
URL: https://github.com/apache/tvm/pull/11448#issuecomment-1152312317

   Thanks @sunjiweiswift . In this case the busy waiting(spinning) is 
intentional. This is based on the assumption that most of the cases the job in 
the parallel launcher are symmetric, and the workload is so fine grianed that 
waiting on conditional variable would result in additional overhead. We want to 
ensure low overhead of small jobs and can afford to waste a bit of resources
   
   In computation the particular CPU thread is pinned and won't be scheduled 
for other jobs, while there is wasted cpu cycles (to wait for other jobs to 
finish), it is less likely going to cause a resource contention.
   
   


-- 
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