cuda-streams
A contributor skill in the PyTorch repository about tensor lifetimes when a tensor is used on a CUDA stream other than the one that allocated it.
スキルの内容
A contributor skill in the PyTorch repository about tensor lifetimes when a tensor is used on a CUDA stream other than the one that allocated it. Because PyTorch's caching allocator only reuses memory on the allocating stream, cross-stream use needs either an explicit sync back to that stream, which is predictable and preferred, or record_stream, which ties memory reuse to GPU progress and can raise memory use. The skill sorts cases into avoidable, unavoidable with the current API, worth a redesign and hard to avoid, and asks that every record_stream call carry a comment explaining why the free point cannot be controlled.
できること
ドキュメントに記載なし
概要
- 公開元
- PyTorch
インストール
プロジェクトのドキュメントに、確認できるインストール手順がありません。 プロジェクトの手順を見る
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
詳細
出典
- GitHubリポジトリgithub.com/pytorch/pytorch · 根拠となる項目:公開元, 活動状況2026年11月11日
- スキルファイル(SKILL.md)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む, ライセンス2026年11月10日
- リポジトリ内のフォルダ(cuda-streams)github.com/pytorch/pytorch · 根拠となる項目:スクリプトを含む2026年11月10日