MuGdxy / muda

μ-Cuda, COVER THE LAST MILE OF CUDA. With features: intellisense-friendly, structured launch, automatic cuda graph generation and updating.
https://mugdxy.github.io/muda-doc/
Apache License 2.0
144 stars 7 forks source link

mini: consider add a GraphVarPool as a related global GraphVar manager #29

Closed MuGdxy closed 11 months ago

MuGdxy commented 11 months ago

GraphVars in GraphVarPool, can be shared by different graphs, thus, we can only update graph var at GraphVarPool rather than update at graph.

MuGdxy commented 11 months ago

we also need to modify the graph node closure, we only allow graph.find_var() and not allow user to capture or copy anything into graph node closure.

MuGdxy commented 11 months ago

covered by this commit https://github.com/MuGdxy/muda/commit/1d24dee66ce86326da4f37406c9a562652193eee