echuraev opened a new pull request #8206:
URL: https://github.com/apache/tvm/pull/8206


   Reduced default number of threads in reduction kernels for Metal.
   Default code generation generated thread block with the following size:
   32x32x1. With this size number of threads per threadgroup was equal to
   1024 (32 * 32 * 1). Sometimes device doesn't have enough resources and
   in this case we will get an exception that the block size is greater
   than value of maxTotalThreadsPerThreadgroup.
   To prevent such situation we decrease default number of threads. With
   this fix every model should work with default codegen and auto-tuning or
   auto-scheduling will select the optimal number of threads.
   
   Thanks for contributing to TVM!   Please refer to guideline 
https://tvm.apache.org/docs/contribute/ for useful information and tips. After 
the pull request is submitted, please request code reviews from 
[Reviewers](https://github.com/apache/incubator-tvm/blob/master/CONTRIBUTORS.md#reviewers)
 by @ them in the pull request thread.
   


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