tkonolige commented on code in PR #13003:
URL: https://github.com/apache/tvm/pull/13003#discussion_r995202196
##########
python/tvm/utils/roofline/cuda.py:
##########
@@ -234,3 +259,63 @@ def estimate_peak_bandwidth(
b = nd.empty((blocks, 4, warp_size), dtype="float32", device=dev)
times = f.time_evaluator(f.entry_name, dev, repeat=10, number=1)(a, b)
return a.numpy().size * 4 / times.min # 4 bytes per float32
+
+
[email protected]_peak_bandwidth.register("cuda")
+def estimate_peak_bandwidth(
Review Comment:
Renamed `estimate_peak_bandwidth_global` to
`estimate_peak_bandwidth_global_mem`. Hopefully this makes it clear that
`estimate_peak_bandwidth_global_mem` estimates the peak bandwidth to global
memory. `estimate_peak_bandwidth` estimates the peak bandwidth depending on the
primfunc and features.
--
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]