TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

PyGraph: Robust Compiler Support for CUDA Graphs in PyTorch

84 点作者 mfiguiere16 天前

5 条评论

damnitbuilds16 天前
Python can be used for many types of graphs. This package is for CUDA Graphs, so wouldn't "PyCudaGraph" be a better name?
infocollector16 天前
The lack of a readily available, installable package (pip install pygraph - has no relation to this paper as far as i can tell) makes it difficult to fully assess the reproducibility and practical applicability of the work.
评论 #43790202 未加载
saagarjha16 天前
This is neat, although it would be nice to see it merged into PyTorch instead of just a paper :) The key seems to be (beyond &quot;obvious&quot; optimizations like not running graphs that are measured to be slower) is that graphs &quot;bake-in&quot; parameters and if those change then the graph needs to be thrown away. The solution is indirecting more, so that what gets captured is a pointer that can remain constant, while the data behind it is changed. This also saves the need to copy in and out of a graph-captured buffer because you can just swap out the pointer instead. Of course there is overhead to this approach (I don&#x27;t think the authors actually explore this much) in that you throw away information (divisibility, for example) that would allow for constructing better kernels, but often this is still worth it. (Or you could pass this through too.)<p>Something worth exploring later would be getting better support for the rest of CUDA graphs into PyTorch, like conditional nodes.
tho423i4323416 天前
Nice to see work by IISc show up on HN.<p>Uday Bondhugula, the lead developer of Pluto framework for polyhedral comp. is also at IISc, whose group has spun out a startup,<p><a href="https:&#x2F;&#x2F;www.polymagelabs.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.polymagelabs.com&#x2F;</a><p>Nice to see IISc support cool stuff like this (incl. their ArtPark initiative.)
OutOfHere16 天前
I don&#x27;t see any source code.
评论 #43794837 未加载