csullivan commented on code in PR #12647:
URL: https://github.com/apache/tvm/pull/12647#discussion_r958658461
##########
python/tvm/topi/adreno/utils.py:
##########
@@ -571,6 +572,39 @@ def get_texture_storage(shape):
return "global.texture-weight"
+@register_func("tvm.info.mem.global.texture")
+def mem_info_global_texture():
+ return tvm.ir.make_node(
+ "MemoryInfo",
+ unit_bits=16,
+ max_num_bits=16384 * 16384 * 4 * 32,
+ max_simd_bits=4 * 32,
+ head_address=None,
+ )
Review Comment:
This looks to be repeated in each mem_info function so perhaps a common
function called in each to prevent accidental changes in one and not the
others.
--
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]