Make `no_cache=True` the default in `LinkerOptions`?
未关闭
还没有人认领这个 Issue。
cuda.core
RFC
- 主要语言
- Cython
- 星标
- 3.4k
- 派生
- 329
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 116
描述
During the investigation of #920, I noticed that nvJitLink internally also has its own cache (likely sharing the driver cache). But it is confusing as a PTX developer when monitoring the info log: The first compilation I see this
self.get_info_log()='ptxas info : 0 bytes gmem\nptxas info : Function properties for add\nptxas . 24 bytes stack frame, 16 bytes spill stores, 16 bytes spill loads\nptxas info : Compile time = 2.002 ms\ninfo : 16 bytes gmem\n\x00'
but second time onward it's only
self.get_info_log()='info : 16 bytes gmem\n\x00'
Because the PTX is not re-compiled.
We already have a plan for caching (#176). I feel we should turn off nvJitLink's cache by default.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 LinkerOptions 的入口点,并检查 nvJitLink 缓存如何影响重复的 PTX 编译和 info logs。比较 #920 和 #176 中的缓存方案,然后定义预期的默认值以及一个验证所得编译行为的测试。
由索引模型根据 Issue 内容生成。
评估
- 领域
- compilers
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100