MasterJH5574 opened a new pull request, #15401:
URL: https://github.com/apache/tvm/pull/15401

   This PR introduces the warp-level shuffle primitives used in Metal Shading 
Language, and uses them in the implementation of allreduce lowering.
   
   The introduced primitives are:
   * `simd_shuffle`,
   * `simd_shuffle_up`,
   * `simd_shuffle_down`.
   
   See section 6.9.2 of 
https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf for 
details.
   
   The correctness are validated by `test_allreduce_cuda` with the backend 
changed to Metal. Given we do not have Metal CI tests, the correctness is 
checked only locally.
   
   Given the Metal shuffle primitives do not support (or need) masking, the 
pass LowerThreadAllreduce is updated to support such backend which does not 
have masks. One unit test for metal is added to ensure that no mask is used.


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