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


   The way device side works is through creating a struct.
   
   say the original function is ```fn(int32 arg0, int64 arg1)```
   
   We generate the following device code:
   
   ```
   struct ArgBuffer {
      // always generate two int values to pad things to the same alignment
      int32 arg0[2];
      int64 arg1
   };
   
   fn (ArgBuffer* arg_buffer) {
      int32 arg0 = arg_buffer->arg0[0];
      int64 arg1 = arg_buffer->arg1;
   }
   ```


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