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

   The previous comment 
https://github.com/apache/tvm/pull/3163#discussion_r283733488 would make it 
work for temp data allocations(change 
https://github.com/apache/tvm/blob/8146a9bf2c9288103c4af834a5f14f13b50aa3c8/src/tir/transforms/ir_utils.h#L166
 to depend on Target and return different value in different setting).
   
   For buffer declarations, the main issue is that Buffer creation is not 
target dependent as of now, as a result, 
https://github.com/apache/tvm/blob/main/src/tir/ir/buffer.cc#L570 defaults to 
the global valu.
   
   We can introduce a minimum_data_alignment  attr to target, and modify 
buffer->data_alignment when the user run things through build.
   
   


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