cupy
cupy copied to clipboard
Add a Jupyter cell magic that wraps a cell with `cupyx.profiler.benchmark`
As title. The %timeit magic is very useful but it is CPU-only, and often causes confusions for first-time GPU users programming in an IPython or Jupyter environment. Based on the teaching experience @brycelelbach suggested offline that we could add a Jupyter magic like, say, %gpu_timeit, that wraps a cell with cupyx.profiler.benchmark for GPU timing purposes.
hey @leofang can i work on this?
Yes of course. Feel free to give it a shot.
thanks!! @leofang
@leofang i have opened a PR, it would be really helpful if you take a look!!